/* ==========================================================
   PRODUCT DETAIL - CART SUCCESS MODAL
   ========================================================== */

body.pdp-quote-modal-open {
    overflow: hidden;
}

.pdp-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdp-quote-modal.is-open {
    display: flex;
}

.pdp-quote-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.pdp-quote-modal__content {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pdp-quote-modal.is-open .pdp-quote-modal__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pdp-quote-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.pdp-quote-modal__close:hover {
    background: #f3f3f3;
}

.pdp-quote-modal__body {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-right: 25px;
}

.pdp-quote-modal__image {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.pdp-quote-modal__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-quote-modal__details {
    flex: 1;
    min-width: 0;
}

.pdp-quote-modal__details h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.pdp-quote-modal__message {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

.pdp-quote-modal__product strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.pdp-quote-modal__price {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
}

.pdp-quote-modal__quantity {
    font-size: 14px;
}

.pdp-quote-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.pdp-quote-modal__continue,
.pdp-quote-modal__view {
    flex: 1;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pdp-quote-modal__continue:hover,
.pdp-quote-modal__view:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pdp-quote-modal__continue {
    border: 1px solid #ddd;
    background: #fff;
}

.pdp-quote-modal__view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: #111;
    color: #fff;
}

@media (max-width: 575px) {
    .pdp-quote-modal {
        padding: 14px;
    }

    .pdp-quote-modal__content {
        max-height: calc(100vh - 28px);
        padding: 24px 18px 20px;
        border-radius: 14px;
    }

    .pdp-quote-modal__body {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-right: 0;
    }

    .pdp-quote-modal__image {
        flex-basis: auto;
        width: 110px;
        height: 110px;
    }

    .pdp-quote-modal__details h2 {
        font-size: 21px;
    }

    .pdp-quote-modal__actions {
        flex-direction: column;
    }
}
