/* WC Upsell Popup – Packing Station v1.0.4 */

/* Force color variables at highest specificity */
html body .wc-upsell-overlay,
html body #wc-upsell-overlay {
    --wc-upsell-btn-bg:    #1B6CA8;
    --wc-upsell-btn-text:  #ffffff;
    --wc-upsell-btn-hover: #154f7a;
}

.wc-upsell-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}
.wc-upsell-overlay.is-open { display: flex; }

.wc-upsell-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: wc-upsell-fadein 0.25s ease;
    overflow: hidden;
}
@keyframes wc-upsell-fadein {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close */
html body .wc-upsell-modal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    color: #666 !important;
    line-height: 1 !important;
    z-index: 2 !important;
    box-shadow: none !important;
}
html body .wc-upsell-modal__close:hover { color: #111 !important; }

/* Title */
html body .wc-upsell-modal__title {
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 28px 50px 16px !important;
    color: #222 !important;
    line-height: 1.3 !important;
}

.wc-upsell-modal__content {
    overflow-y: auto;
    padding: 0 18px 8px;
    flex: 1;
}

/* Grid */
html body .wc-upsell-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card */
html body .wc-upsell-card {
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    text-align: center !important;
    background: #fff !important;
}
html body .wc-upsell-card.is-added {
    border-color: #1B6CA8 !important;
    background: #f0f5fb !important;
}

html body .wc-upsell-card__image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}
html body .wc-upsell-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html body .wc-upsell-card__info { padding: 8px 10px !important; }

html body .wc-upsell-card__name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 0 4px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .wc-upsell-card__price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 8px !important;
}
html body .wc-upsell-card__price del { color: #999 !important; font-weight: 400 !important; font-size: 12px !important; }
html body .wc-upsell-card__price ins { text-decoration: none !important; }

/* === BUTTON — blue bg, white text, no border === */
html body .wc-upsell-card__add-btn,
html body button.wc-upsell-card__add-btn {
    display: block !important;
    width: calc(100% - 20px) !important;
    margin: 0 10px 10px !important;
    padding: 9px 0 !important;
    background-color: #1B6CA8 !important;
    background: #1B6CA8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
html body .wc-upsell-card__add-btn:hover,
html body button.wc-upsell-card__add-btn:hover {
    background-color: #154f7a !important;
    background: #154f7a !important;
    color: #ffffff !important;
    border: none !important;
}
html body .wc-upsell-card__add-btn:focus,
html body button.wc-upsell-card__add-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
html body .wc-upsell-card__add-btn.is-loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}
html body .wc-upsell-card__add-btn.is-added,
html body button.wc-upsell-card__add-btn.is-added {
    background-color: #1B6CA8 !important;
    background: #1B6CA8 !important;
    color: #ffffff !important;
    border: none !important;
    pointer-events: none !important;
}

/* Footer */
html body .wc-upsell-modal__footer {
    padding: 14px 20px 22px !important;
    text-align: center !important;
}
html body .wc-upsell-modal__continue,
html body button.wc-upsell-modal__continue {
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    background-color: #1B6CA8 !important;
    background: #1B6CA8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
html body .wc-upsell-modal__continue:hover,
html body button.wc-upsell-modal__continue:hover {
    background-color: #154f7a !important;
    background: #154f7a !important;
    color: #ffffff !important;
    border: none !important;
}

/* Mobile */
@media (max-width: 480px) {
    html body .wc-upsell-modal__title { font-size: 17px !important; padding: 22px 44px 12px !important; }
    html body .wc-upsell-grid { gap: 8px !important; }
}
