/* Premium Orange / Black stylesheet for e-commerce widgets and slide drawer popup */

.smart-installments-product-teaser {
    background: #fdf6ec;
    border: 1px solid #ffe8cc;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.smart-installments-product-teaser .teaser-text {
    font-size: 14px;
    color: #495057;
}

.smart-installments-product-teaser .teaser-price {
    font-size: 16px;
    color: #ff6b6b;
}

.smart-installments-btn-trigger {
    background: #ff6b6b;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.smart-installments-btn-trigger:hover {
    background: #fa5252;
}

.smart-installments-btn-trigger:active {
    transform: scale(0.98);
}

/* Modal Backdrops and overlays */
#smart-installments-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    transition: opacity 0.3s ease;
}

/* Side Drawer (Sliding panel) */
#smart-installments-drawer {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #ffffff;
    z-index: 100001;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#smart-installments-drawer[dir="rtl"] {
    right: 0 !important;
    left: auto !important;
}

#smart-installments-drawer[dir="ltr"] {
    left: 0 !important;
    right: auto !important;
}

/* Positioning dynamic transitions */
.smart-installments-modal-hidden {
    opacity: 0;
    pointer-events: none;
}

#smart-installments-drawer.smart-installments-modal-hidden[dir="rtl"] {
    transform: translateX(100%);
}

#smart-installments-drawer.smart-installments-modal-hidden[dir="ltr"] {
    transform: translateX(-100%);
}

.smart-installments-modal-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
}

/* Scroll lockers */
body.smart-installments-lock-scroll {
    overflow: hidden !important;
}

/* Drawer UI Parts */
.drawer-header {
    background: #111111; /* Carbon black */
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.smart-installments-close-btn {
    display: -webkit-inline-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.smart-installments-close-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}

.smart-installments-close-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    display: block !important;
}

.drawer-product-bar {
    background: #c29115; /* Signature Gold */
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.drawer-product-bar .product-info-price {
    font-size: 16px;
    font-weight: 700;
}

/* Tabs */
.drawer-tabs {
    display: flex;
    border-bottom: 2px solid #eeeeee;
}

.drawer-tab-btn {
    flex: 1;
    background: #f8f9fa;
    color: #495057;
    border: none;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.drawer-tab-btn.tab-active {
    background: #ffffff;
    color: #c29115;
    font-weight: 700;
    border-bottom: 3px solid #c29115;
}

/* Search bar */
.drawer-search-wrapper {
    padding: 12px 16px;
    background: #fafafa;
}

#drawer-provider-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

#drawer-provider-search:focus {
    border-color: #c29115;
}

/* Cards List */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.providers-deck-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.company-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.company-card:hover {
    border-color: var(--border-brand-color, #c29115);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.company-card.card-active {
    border-color: var(--border-brand-color, #c29115);
    border-width: 2px;
    background: rgba(194, 145, 21, 0.02);
}

.brand-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-inline-end: 12px;
}

.company-card-info {
    flex: 1;
}

.company-brand-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #212529;
}

.installment-starting-teaser {
    font-size: 12px;
    color: #6c757d;
}

.check-node {
    display: none;
    background: #c29115;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
}

.company-card.card-active .check-node {
    display: block;
}

/* Duration Selector Pills */
.plans-duration-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin: 15px 0 10px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 6px;
}

.duration-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.duration-pill {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-pill .dur-num {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.duration-pill .dur-lbl {
    font-size: 11px;
    color: #6c757d;
}

.duration-pill:hover, .duration-pill.duration-active {
    border-color: #c29115;
    background: #fff8f5;
}

.duration-pill.duration-active .dur-num {
    color: #c29115;
}

.zero-interest-tag {
    font-size: 9px;
    background: #00ce9b;
    color: #ffffff;
    border-radius: 3px;
    padding: 1px 4px;
    margin-top: 4px;
}

/* Computed stats panel */
.computed-stats-dashboard {
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.stat-line:last-child {
    margin-bottom: 0;
}

.stat-lbl {
    color: #495057;
}

.stat-val {
    font-weight: 600;
    color: #212529;
}

.primary-highlight {
    color: #c29115;
    font-size: 18px;
    font-weight: 700;
}

/* Spinner & loaders */
.si-spinner-loading {
    text-align: center;
    font-size: 14px;
    padding: 40px 0;
    color: #888;
}

.si-err-msg, .si-no-results {
    text-align: center;
    color: #ced4da;
    padding: 30px;
    font-size: 14px;
}

/* Submit Footer */
.drawer-footer {
    padding: 16px;
    border-top: 1px solid #eeeeee;
}

.drawer-submit-cta {
    width: 100%;
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.drawer-submit-cta:hover {
    background: #c29115;
}
