/* =====================================================
   Crosby Checkout Pro — Stylesheet
   ===================================================== */

/* ── OTP Login Box ── */
.ccp-otp-login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ccp-otp-login-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.ccp-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.ccp-prefix {
    background: #f5f5f5;
    padding: 10px 12px;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #ddd;
    font-size: 14px;
}
.ccp-input-group input {
    flex: 1;
    border: none !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    outline: none;
}
.ccp-btn-primary {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .5px;
}
.ccp-btn-primary:hover { background: #333; }
.ccp-btn-link { background: none; border: none; color: #c8963e; cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ── OTP Digit Boxes ── */
.ccp-otp-boxes { display: flex; gap: 8px; margin: 16px 0; justify-content: center; }
.ccp-otp-digit {
    width: 46px !important;
    height: 52px !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    transition: border-color .2s;
    padding: 0 !important;
    box-shadow: none !important;
}
.ccp-otp-digit:focus { border-color: #c8963e !important; outline: none; }

@keyframes ccp-shake {
    0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)}
}
.ccp-shake { animation: ccp-shake .5s ease; }

.ccp-otp-notice { font-size: 13px; color: #555; margin-bottom: 8px; }
.ccp-resend-row { text-align: center; margin-top: 12px; font-size: 12px; color: #888; }
.ccp-success { color: #27ae60; font-weight: 600; font-size: 15px; text-align: center; padding: 16px; }
.ccp-error { color: #c0392b; font-size: 12px; margin-top: 6px; min-height: 18px; }
.ccp-or-divider { text-align: center; margin: 20px 0 0; color: #aaa; font-size: 12px; position: relative; }
.ccp-or-divider::before, .ccp-or-divider::after { content:''; position:absolute; top:50%; width:40%; height:1px; background:#eee; }
.ccp-or-divider::before { left:0; } .ccp-or-divider::after { right:0; }

/* ── Saved Addresses ── */
.ccp-saved-addresses-box {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

/* ── MapMyIndia Dropdown ── */
.ccp-mmi-dropdown {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.ccp-mmi-item { padding: 10px 14px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.ccp-mmi-item:hover { background: #fff9f0; }
.ccp-mmi-item small { color: #888; font-size: 11px; }

/* ── Offer Bar ── */
.ccp-offers-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
}
.ccp-offers-icon { font-size: 18px; flex-shrink: 0; }
.ccp-offers-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.ccp-offer-item { font-size: 13px; color: #f5c842; margin-right: 40px; }
.ccp-view-offers-btn { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.ccp-view-offers-btn:hover { background: rgba(255,255,255,.1); }

/* ── Offers Panel ── */
.ccp-offers-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}
.ccp-offers-panel-header {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.ccp-offers-panel-header button { background: none; border: none; color: #aaa; cursor: pointer; font-size: 16px; }
.ccp-offers-list { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; }

.ccp-offer-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}
.ccp-offer-badge {
    background: #c8963e;
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 12px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    flex-shrink: 0;
}
.ccp-offer-body { padding: 12px 14px; flex: 1; }
.ccp-offer-title { font-weight: 700; font-size: 13px; color: #1a1a1a; margin-bottom: 4px; }
.ccp-offer-desc { font-size: 12px; color: #666; margin-bottom: 8px; }
.ccp-offer-code {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f8f8;
    border: 1px dashed #c8963e;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #c8963e;
}
.ccp-offer-code button { padding: 3px 8px; font-size: 11px; border: 1px solid #ddd; border-radius: 3px; cursor: pointer; background: #fff; }
.ccp-auto-badge { font-size: 11px; color: #27ae60; font-weight: 600; }

/* ── Flash Sale Timer ── */
.ccp-flash-timer {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0;
    display: inline-block;
}
.ccp-countdown { font-family: monospace; font-size: 15px; }

/* ── Recommendations ── */
.ccp-recommendations {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}
.ccp-rec-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.ccp-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.ccp-rec-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}
.ccp-rec-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.ccp-rec-img-wrap { display: block; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.ccp-rec-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ccp-rec-info { padding: 10px; }
.ccp-rec-name { font-size: 12px; font-weight: 600; color: #1a1a1a; text-decoration: none; display: block; margin-bottom: 4px; line-height: 1.4; }
.ccp-rec-name:hover { color: #c8963e; }
.ccp-rec-price { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.ccp-quick-add {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 7px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .2s;
}
.ccp-quick-add:hover { background: #c8963e; }

/* ── Mini recommendations (checkout) ── */
.ccp-checkout-recs { margin: 0 0 20px; }
.ccp-rec-mini-title { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 10px; }
.ccp-rec-mini-grid { display: flex; gap: 10px; overflow-x: auto; }
.ccp-rec-mini {
    min-width: 100px;
    max-width: 100px;
    flex-shrink: 0;
}
.ccp-rec-mini .ccp-rec-name { font-size: 11px; }
.ccp-rec-mini .ccp-rec-price { font-size: 12px; }

/* ── Thank you recs ── */
.ccp-thankyou-recs { margin: 32px 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .ccp-otp-login-box { padding: 20px 16px; }
    .ccp-otp-digit { width: 38px !important; height: 44px !important; font-size: 18px !important; }
    .ccp-rec-grid { grid-template-columns: repeat(2, 1fr); }
    .ccp-offers-list { grid-template-columns: 1fr; }
}
