/* =================================================================== */
/* ============== СТИЛИ ДЛЯ "СУПЕР-КАЛЬКУЛЯТОРА" ============== */
/* (v7.21.0 - Checklist Styles Added) */
/* =================================================================== */

/* Основной контейнер калькулятора */
.bccgc-calc-wrapper {
    --main-font-family: 'Rubik', sans-serif;
    font-family: var(--main-font-family) !important; 
    color: #f0f0f0 !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.3s ease !important; 
    /* border-radius: var(--calc-border-radius, 0px) !important; */
    max-width: var(--calc-max-width, 100%) !important;
    margin-top: var(--calc-margin-top, 0) !important;
    margin-bottom: var(--calc-margin-bottom, 0) !important;
    margin-left: var(--calc-margin-left, auto) !important;
    margin-right: var(--calc-margin-right, auto) !important;
    border-left: var(--border-width, 4px) solid var(--color-calculator, #c66) !important;
	
}

/* Блок 1: Выбранная вариация */
.bccgc-calc-variation-selector {
    background-color: #1e1e1e !important;
    border: 0px solid #444 !important;
    border-radius: 10px !important;
    padding: 0px 0px 0px 10px !important;
    margin-bottom: 15px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}
.bccgc-calc-variation-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    cursor: default; 
}
.bccgc-calc-variation-label {
    color: #c3c3c3 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    text-shadow: 4px 4px 4px rgb(0 0 0) !important;
}
.bccgc-calc-variation-name {
color: #bbbbbb !important;
    font-size: 20px !important;
    font-weight: 100 !important;
    flex-grow: 1 !important;
    text-align: center !important;
    margin: 16px 0px 0px 8px !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 2px rgb(0 0 0) !important;
    position: relative !important;
    text-decoration: none !important;
    display: inline-block !important;
    overflow: hidden !important;
}

/* Блок 2: Выбранный товар-компонент (И Чек-лист) */
.bccgc-calc-component-selector {
    background-color: #1e1e1e !important;
    border: 0px solid #444 !important;
    border-radius: 10px !important;
    padding: 5px !important;
    margin-bottom: 15px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}
.bccgc-calc-component-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0px !important;
    border-radius: 10px !important;
    cursor: default; 
}
.bccgc-calc-component-label {
    color: #d7b57a !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap;
}
.bccgc-calc-component-name {

    color: #d1d1d1 !important;
    font-size: 12px !important;
    font-weight: 100 !important;
    flex-grow: 1 !important;
    text-align: center !important;
    margin: 0px 0px 0px 10px !important;
    text-shadow: 1px 1px 1px rgb(0 0 0) !important;
    position: relative !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 90%;
}

/* --- (!!) СТИЛИ ЧЕК-ЛИСТА --- */
.bccgc-checklist-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start; /* Выравнивание влево */
    width: 100%;
    padding: 5px 0;
}
.bccgc-check-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
    width: 100%;
    transition: color 0.3s ease;
}
/* Состояние OK (Выбрано) */
.bccgc-check-item.bccgc-step-ok {
    color: #90dfb0; /* Зеленый */
    font-weight: 500;
}
/* Состояние MISSING (Не выбрано) */
.bccgc-check-item.bccgc-step-missing {
    color: #e0e0e0; /* Обычный */
}
/* Состояние OPTIONAL */
.bccgc-check-item.bccgc-step-optional {
    color: #888;
    font-style: italic;
}
/* Иконки */
.bccgc-check-icon {
    margin-right: 8px;
    color: #90dfb0;
    font-weight: bold;
    font-size: 1.2em;
    min-width: 20px;
}
.bccgc-opt-icon {
    margin-right: 8px;
    color: #666;
    font-size: 1.2em;
    min-width: 20px;
}
/* -------------------------- */


/* Блок 3: Поле ввода и кнопки */
.bccgc-calc-input-wrapper {
display: none;
    background-color: #1b1b1b !important;
    border: 0px solid #444 !important;

    padding: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 0px !important;
    border-radius: 0px 14px 14px 0px;
}
.bccgc-calc-input-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    padding: 8px 2px 0px !important;
}
.bccgc-input-column {
    display: flex;
    flex-direction: column;
    flex: 1; 
    min-width: 0;
}
.bccgc-quantity-input-label {
    display: block;
    text-align: left;
    color: #fbd38d;
    font-size: 0.9em;
    text-transform: none;
    letter-spacing: normal;
    margin-left: 4px !important;
    margin-bottom: 0px !important;
}
.bccgc-calc-input-with-controls {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    flex-grow: 1;
}
.bccgc-calc-input-with-controls input[type="number"] {
    flex-grow: 1 !important;
    padding: 6px 20px !important;
    font-size: 25px !important;
    border: 1px solid #2e2e2e !important;
    border-radius: 8px !important;
    background-color: #2c2c2c !important;
    color: #dbdbdb !important;
    text-align: center !important;
    
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    min-width: 50px !important;
    caret-color: #fbd38d !important;
    margin: 0px !important;
}
.bccgc-calc-input-with-controls input[type="number"]:focus {
    outline: none !important;
    border-color: #fbd38d73 !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}
.bccgc-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    justify-content: center;
    flex-shrink: 0 !important;
}
.bccgc-control-btn {
background-color: #303030 !important;
    border: none !important;
    padding: 0px !important;
    cursor: pointer !important;
    height: 28px !important;
    width: 56px !important;
    border-radius: 4px !important;
    color: #fdd998bf !important;
    font-size: 19px !important;
    line-height: 1 !important;
    display: flex !important
;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}
.bccgc-control-btn:hover { 
    background-color: #dbbe8c !important; 
    color: #242424 !important; 
    transform: scale(1.05) !important; 
}
.bccgc-control-btn:active { 
    transform: scale(0.95) !important; 
    background-color: #dbbe8c !important; 
}

/* Блок 4: "Сума:" */
.bccgc-calc-result {
    display: none; 
    position: relative; 
    background-color: #1e1e1e !important;
    border: 0px solid #444 !important;
    
    padding: 0px !important;
    margin-top: 0px;
    overflow: hidden;
	border-radius: 0px 14px 14px 0px;
}

.bccgc-calc-button-group {
    display: flex !important;
    gap: 10px !important;
    margin: 0px !important;
	margin-bottom: 5px !important;
    margin-top: 10px;
}
.bccgc-calc-button-group button {
    flex: 1 !important;
    padding: 10px 10px;
    font-size: 18px !important;
    font-weight: 100 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}

.price-label-green { color: #90dfb0 !important; font-weight: 100 !important; }
.price-label-blue { color: #b4d8f7 !important; font-weight: 100 !important; }
.price-label-rate { color: #fbd38d !important; font-weight: 100 !important; }
.price-value { color: #fbd38d !important; font-weight: 100 !important; margin-right: 10px; }

.bccgc-calc-result-toggle { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 5px 10px; 
    border-radius: 0px; 
    cursor: pointer; 
    margin-bottom: 0px; 
    transition: background-color 0.3s ease; 
}
.bccgc-calc-result-toggle span { 
	
    font-size: 24px; 

	
}
.bccgc-calc-result-toggle:not(.open):hover {
    background-color: #1b1b1b !important; 
	border-radius: 0px 14px 14px 0px;
}

.bccgc-calc-button-group .single_add_to_cart_button { background-color: #d7b57a !important; color: #1e1e1e !important; box-shadow: none !important; }
.bccgc-calc-button-group .single_add_to_cart_button:hover { background-color: #d7b57a !important; transform: translateY(-1px) !important;}

/* --- (!!) ИЗМЕНЕНИЕ: Серый цвет для неактивной кнопки --- */
.bccgc-calc-button-group .single_add_to_cart_button:disabled { 
    background-color: #444444 !important; /* Серый */
    color: #888 !important; 
    cursor: not-allowed !important; 
    transform: none !important; 
    box-shadow: none !important; 
}

/* --- (!!) ИЗМЕНЕНИЕ: Зеленый цвет для процесса/успеха с полной непрозрачностью --- */
/* Добавили .single_add_to_cart_button для усиления приоритета над :disabled */
.bccgc-calc-button-group .single_add_to_cart_button.add-to-cart-processing { 
    background-color: #10b981 !important; /* Зеленый */
    color: #fff !important; 
    transform: scale(0.98) !important; 
    opacity: 1 !important; /* Убираем прозрачность */
}

.bccgc-calc-button-group button.bccgc-checkout-button { 
    background-color: #5e7db5 !important; 
    color: #000000 !important; 
    box-shadow: none !important; 
    border: none !important; 
    font-weight: 600 !important; 
    letter-spacing: normal !important; 
	font-size: 13px !important;
}
.bccgc-calc-button-group button.bccgc-checkout-button:hover { 
    background-color: #6e93d6 !important; 
    transform: translateY(-2px) !important; 
}

@media (max-width: 1400px) { 
    .bccgc-calc-button-group { flex-direction: column !important; gap: 10px !important; } 
}

.bccgc-calc-input-with-controls input[type="number"] { -moz-appearance: textfield; }
.bccgc-calc-input-with-controls input[type="number"]::-webkit-outer-spin-button, 
.bccgc-calc-input-with-controls input[type="number"]::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Блок 5: Прайс-лист */
.bccgc-calc-readonly-box {
    background-color: #1b1b1b !important;
    border: 0px solid #444 !important;
    
    padding: 0px !important;
    margin-bottom: 0px !important;
	margin-top: 12px !important;
	border-radius: 0px 14px 14px 0px;

}
.bccgc-calc-price-list-toggle {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 10px; 
    border-radius: 0px; 
    cursor: pointer; 
    margin-bottom: 0px; 
    transition: background-color 0.3s ease; 
}
.bccgc-calc-price-list-toggle span {
    font-size: 16px; 
	font-weight: 100 !important;
}
.bccgc-toggle-price-list-btn {
    background: none; 
    border: none; 
    color: #fbd38d; 
    font-size: 20px; 
    cursor: pointer; 
    transition: transform 0.3s ease;
}
.bccgc-toggle-price-list-btn.open {
    transform: rotate(180deg);
}
.bccgc-user-price-info { 
    font-size: 18px !important; 
    color: #bdbcbb !important; 
    text-align: center !important; 
    font-weight: 500 !important; 
}
.bccgc-user-price-info strong { 
    color: #fbd38d !important; 
    font-weight: 200 !important; 
}
.bccgc-calc-price-list-toggle:not(.open):hover {
    background-color: #fad28d0f !important; 
	border-radius: 0px 14px 14px 0px;
}
.bccgc-calc-price-list-content {
    display: none; 
}
.bccgc-calc-price-list-content .price-list-item {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    margin-left: 5px !important;
    border-bottom: 1px solid #2c2c2c !important;
    padding: 3px 5px;
}
.bccgc-calc-price-list-content .price-list-item:last-child {
    border-bottom: none !important;
}

/* Индикатор скидки (справа от суммы) */
.bccgc-user-discount-display {
    display: none; 
    background-color: #74e34f9e !important;
    color: #ffdbdb;
	border: 0px solid #444 !important;
    border-radius: 10px; 
    padding: 5px 5px; 
    font-size: 13px; 
    font-weight: 400;
    line-height: 1; 
    white-space: nowrap; 
    vertical-align: middle; 
    margin-left: auto;
    margin-right: 10px; 
    position: relative; 
    cursor: help;
}

.bccgc-user-discount-display::after,
.bccgc-user-discount-display:hover::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.bccgc-full-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333; 
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 20;
    display: none; 
    white-space: pre-wrap;
    pointer-events: none; 
}

/* ... (Предыдущие стили остаются без изменений) ... */

/* (!!) НОВЫЕ СТИЛИ ДЛЯ "ЧЕКА" (RECEIPT) */
.bccgc-receipt-row {
    display: flex;
    align-items: flex-end; /* Выравниваем точки по низу текста */
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
    font-family: var(--main-font-family, 'Rubik', sans-serif);
}

.bccgc-receipt-name {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
    max-width: 50%; /* Ограничиваем ширину, чтобы цена влезла */
}

.bccgc-receipt-parent {
    font-size: 0.85em;
    color: #a5a5a5;
    font-weight: normal;
}

.bccgc-receipt-variant {
    font-size: 0.8em;
    color: #e0e0e0;
    font-weight: 200;
}

/* Пунктирная линия */
.bccgc-receipt-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #555;
    margin: 0 8px 4px 8px; /* margin-bottom 4px чтобы попасть в базовую линию */
    min-width: 20px; /* Минимальная ширина точек */
}

.bccgc-receipt-price {
    color: #fbd38d; /* Золотой акцент */
    font-weight: none;
    font-size: 1em;
    white-space: nowrap; /* Цена не переносится */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ... (Предыдущие стили) ... */

.bccgc-receipt-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
    font-family: var(--main-font-family, 'Rubik', sans-serif);
}

.bccgc-receipt-name {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
    max-width: 65%;
}

.bccgc-receipt-parent {
    font-size: 0.85em;
    color: #a5a5a5;
    font-weight: normal;
}

.bccgc-receipt-variant {
    font-size: 1em;
    color: #e0e0e0;
    font-weight: 500;
}

.bccgc-receipt-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #fbd38d66;
    margin: 0% 11% 3% 0%;
    min-width: 10%;
}

.bccgc-receipt-price {
    color: #fbd38d;

    font-size: 1em;
    white-space: nowrap;
        text-shadow: 4px 4px 2px rgb(0 0 0 / 52%);
}

/* (!!) НОВЫЙ СТИЛЬ: НЕДОСТУПНО */
.bccgc-price-unavailable {
    color: #e06c75 !important; /* Мягкий красный */
    font-size: 0.9em;
    font-style: italic;
    font-weight: normal;
}

/* =================================================================== */
/* ============== АНИМАЦИЯ "BOUNCING DOTS" (v7.38.0) ============== */
/* =================================================================== */

.bccgc-loader-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 20px; /* Фиксируем высоту, чтобы строка не прыгала */
    vertical-align: middle;
}

.bccgc-loader-dot {
    width: 8px;
    height: 8px;
    background-color: #fbd38d; /* Ваш акцентный цвет */
    border-radius: 50%;
    animation: bccgcBounce 1.4s infinite ease-in-out both;
}

.bccgc-loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.bccgc-loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bccgcBounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1);
    }
}

/* Переопределение для "Dimmed" (Затемненных) элементов
   Цена остается видимой, НО только если бейдж не пустой!
*/
.bccgc-dimmed .bccgc-item-price-badge:not(:empty) {
    /* Снимаем скрытие */
    display: flex !important; 
    visibility: visible !important;
    opacity: 1 !important; 
    
    /* Стили как у выбранного */
    background: #fbd38d !important;
    color: #191919 !important; 
}