/* Add-to-cart confirmation modal — Strong logic, Liftstock brand (#222246) */
body.liftstock-atc-modal-open {
    overflow: hidden;
}

.liftstock-atc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.liftstock-atc-modal[hidden]:not(.is-open) {
    display: none !important;
}

.liftstock-atc-modal.is-open {
    display: flex !important;
}

.liftstock-atc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.liftstock-atc-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.liftstock-atc-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: "Roboto Condensed", Helvetica, Arial, sans-serif;
}

.liftstock-atc-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(34, 34, 70, 0.08);
    color: #6b6d80;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}

.liftstock-atc-modal__close:hover,
.liftstock-atc-modal__close:focus {
    background: rgba(34, 34, 70, 0.14) !important;
    color: #222246 !important;
}

.liftstock-atc-modal__header {
    background: linear-gradient(135deg, #f5f6fa 0%, #eceef5 100%);
    padding: 36px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.liftstock-atc-modal__header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 18px;
    background: #fff;
    border-radius: 18px 18px 0 0;
}

.liftstock-atc-modal__check {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(34, 34, 70, 0.1);
    color: #222246;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.liftstock-atc-modal__check svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.liftstock-atc-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222246;
    line-height: 1.25;
}

.liftstock-atc-modal__product {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 24px 0;
}

.liftstock-atc-modal__img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f6fa;
    border: 1px solid #d8d9e3;
    flex-shrink: 0;
}

.liftstock-atc-modal__info {
    flex: 1;
    min-width: 0;
}

.liftstock-atc-modal__name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liftstock-atc-modal__price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222246;
    font-variant-numeric: tabular-nums;
}

.liftstock-atc-modal__price .woocommerce-Price-amount {
    color: inherit;
}

.liftstock-atc-modal__divider {
    height: 1px;
    background: #eceef5;
    margin: 18px 24px 0;
}

.liftstock-atc-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px 24px;
}

.liftstock-atc-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.liftstock-atc-modal__btn--primary {
    background: #222246;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 34, 70, 0.25);
}

.liftstock-atc-modal__btn--primary:hover,
.liftstock-atc-modal__btn--primary:focus {
    background: #2d2d58 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 34, 70, 0.3);
}

.liftstock-atc-modal__btn--primary:active {
    transform: translateY(0);
}

.liftstock-atc-modal__btn--ghost {
    background: #fff;
    color: #222246;
    border: 1px solid #d8d9e3;
    font-weight: 600;
}

.liftstock-atc-modal__btn--ghost:hover,
.liftstock-atc-modal__btn--ghost:focus {
    background: #f5f6fa !important;
    border-color: #222246 !important;
    color: #222246 !important;
}

.woocommerce .liftstock-atc-modal__btn--ghost:hover,
.woocommerce .liftstock-atc-modal__btn--ghost:focus,
.woocommerce .liftstock-atc-modal__close:hover,
.woocommerce .liftstock-atc-modal__close:focus {
    color: #222246 !important;
}

@media (max-width: 767px) {
    .liftstock-atc-modal {
        align-items: flex-end;
        padding: 0;
    }

    .liftstock-atc-modal__panel {
        border-radius: 16px 16px 0 0;
    }

    .liftstock-atc-modal__dialog {
        max-width: 100%;
    }
}
