/* Simply.IN Cart One-Click Offer */

.simplyin-one-click-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
}

.simplyin-one-click-offer-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.simplyin-one-click-offer-logo {
    flex-shrink: 0;
}

.simplyin-one-click-offer-text {
    display: flex;
    flex-direction: column;
}

.simplyin-one-click-offer-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.simplyin-one-click-offer-subtitle {
    font-size: 13px;
    color: #555;
}

.simplyin-one-click-offer-button {
    /* flex-basis 100% forces this onto its own row below .simplyin-one-click-offer-copy,
       regardless of container width - was flex-shrink:0 only, which put the button on the
       same line as the copy whenever the container was wide enough (Hyva's cart summary
       column vs. Luma's narrower one, same shared markup/CSS otherwise). */
    flex: 1 0 100%;
    background: #2d40f6;
    border-color: #2d40f6;
    color: #fff;
}

.simplyin-one-click-offer-button:hover {
    background: #212fc4;
    border-color: #212fc4;
}

.simplyin-one-click-offer-button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* OTP modal (hidden by default; opened via .active) */
.simplyin-cart-otp-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.simplyin-cart-otp-modal.active {
    display: flex;
}

/* Box background/width/padding come from the branded .simplyin-popup class (simplyin-modal.css,
   loaded on this page too) - checkout gets its rounded corners + shadow from the Magento_Ui modal
   wrapper around .simplyin-popup, which the cart page can't use (see one-click-offer.js
   docblock), so this file adds the same treatment directly. */
.simplyin-cart-otp-modal .simplyin-popup {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.simplyin-cart-otp-resend {
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.simplyin-cart-otp-resend button {
    border: none;
    background: none;
    color: #2d40f6;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
