body.stylish-atc-open {
    overflow: hidden;
}

.stylish-atc-hidden {
    display: none !important;
}

.stylish-atc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.stylish-atc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.stylish-atc-box {
    position: relative;
    width: 720px;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    animation: stylishAtcIn 0.18s ease-out;
}

@keyframes stylishAtcIn {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stylish-atc-header {
    min-height: 54px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
}

.stylish-atc-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.stylish-atc-content {
    display: flex;
    gap: 28px;
    padding: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.stylish-atc-image-wrap {
    width: 210px;
    min-width: 210px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.stylish-atc-image {
    max-width: 190px;
    max-height: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.stylish-atc-info {
    flex: 1;
    min-width: 0;
    color: #111;
}

.stylish-atc-product-title {
    margin: 0 0 12px;
    color: #4f7cff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.stylish-atc-price {
    margin-bottom: 24px;
    font-size: 15px;
    color: #111;
}

.stylish-atc-price del,
.stylish-atc-price ins {
    text-decoration: none;
}

.stylish-atc-attr,
.stylish-atc-qty {
    margin: 0 0 16px;
    font-size: 14px;
    color: #111;
}

.stylish-atc-attr strong,
.stylish-atc-qty strong {
    font-weight: 700;
}

.stylish-atc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 18px 30px 22px;
}

.stylish-atc-btn {
    min-height: 48px;
    border: 0;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
}

.stylish-atc-btn-secondary {
    background: #f4f4f4;
    color: #222;
}

.stylish-atc-btn-secondary:hover {
    background: #e9e9e9;
    color: #222;
}

.stylish-atc-btn-primary {
    background: #4f83f1;
    color: #fff !important;
}

.stylish-atc-btn-primary:hover {
    background: #3f73df;
    color: #fff !important;
}

@media (max-width: 640px) {
    .stylish-atc-modal {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .stylish-atc-box {
        width: 100%;
    }

    .stylish-atc-content {
        display: block;
        padding: 22px 18px;
    }

    .stylish-atc-image-wrap {
        width: 100%;
        min-width: 0;
        margin-bottom: 18px;
    }

    .stylish-atc-image {
        max-width: 160px;
        max-height: 160px;
    }

    .stylish-atc-product-title {
        font-size: 19px;
    }

    .stylish-atc-actions {
        grid-template-columns: 1fr;
        padding: 14px 18px 18px;
    }
}
