/* 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: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.company-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.company-accordion-item:hover {
    border-color: #cbd5e1;
}

.company-accordion-item.item-active {
    border: 2px solid #c29115;
    background: #fffdf9;
    box-shadow: 0 4px 14px rgba(194, 145, 21, 0.08);
}

.company-card {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.company-card:hover {
    background: rgba(0, 0, 0, 0.015);
}

.company-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-circle-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.company-accordion-item.item-active .check-circle-node {
    background: #c29115;
    border-color: #c29115;
    color: #ffffff;
}

.brand-avatar-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-avatar-box.logo-image-avatar {
    border: 1px solid #f1f5f9;
    background: #ffffff;
    padding: 2px;
}

.brand-avatar-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.company-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-brand-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.si-markup-badge, .markup-stat-row {
    display: none !important;
    visibility: hidden !important;
}
.si-markup-badge-unused {
    font-size: 10px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.2;
}

.installment-starting-teaser {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.installment-starting-teaser strong {
    color: #334155;
    font-family: inherit;
}

.chevron-arrow-node {
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-accordion-item.item-active .chevron-arrow-node {
    transform: rotate(180deg);
    color: #c29115;
}

/* Accordion details expanded directly underneath */
.company-accordion-details {
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 14px;
}

.plans-accordion-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plans-duration-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 4px;
}

.duration-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

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

.duration-pill:hover {
    border-color: #c29115;
    background: #fffdf7;
}

.duration-pill.duration-active {
    border-color: #c29115;
    background: #fffbf0;
    box-shadow: 0 0 0 1px #c29115;
}

.duration-pill .dur-num {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

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

.duration-pill .dur-lbl {
    font-size: 10px;
    color: #64748b;
}

.duration-pill .dur-monthly {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    margin-top: 2px;
}

.duration-pill.duration-active .dur-monthly {
    color: #b45309;
}

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

/* Computed stats panel inside accordion */
.computed-stats-dashboard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 7px;
}

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

.stat-lbl {
    color: #64748b;
}

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

.main-monthly-stat {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 7px;
    margin-bottom: 7px;
}

.main-monthly-stat .stat-lbl {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.main-monthly-stat .primary-highlight {
    font-size: 16px;
    font-weight: 800;
    color: #c29115;
}

.total-payable-stat {
    border-top: 1px dashed #e2e8f0;
    padding-top: 7px;
    margin-top: 7px;
}

.total-payable-stat .stat-lbl {
    font-weight: 700;
    color: #1e293b;
}

.total-payable-stat .stat-val {
    font-weight: 700;
    color: #0f172a;
}

.si-markup-base-row .stat-val {
    color: #b45309;
}

/* 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;
}
