/* Super Card Plugin Styles */

.super-card-container {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.super-card {
    flex: 1 1 auto;
    min-width: 300px;
    width: 100%;
    max-width: 770px;
    border-radius: 32px;
    padding: 30px;
    color: white;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.wrap-card-content {
    display: flex;
    gap: 20px;
}

/* Пластиковая карта - темный фон */
.super-card[data-card-type="plastic"] {
    background: radial-gradient(198.73% 141.42% at 100% 0%, #565354 0%, #0a0a0a 100%);
}

/* Виртуальная карта - темно-бордовый фон */
.super-card[data-card-type="virtual"] {
    background: radial-gradient(480.94% 141.42% at 100% 0%, #4c0000 0%, #0a0a0a 100%);
}

.card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 55px;
    font-weight: 500;
    margin: 0 0 24px 0;
    text-align: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Секция типа топлива */
.fuel-type-section label,
.quantity-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.fuel-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    
}

.fuel-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fuel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.fuel-btn.active {
    background:  rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Секция количества */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quantity-input {
    flex: 1;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    min-height: 46px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.quantity-input:focus {
    outline: none;
}

/* Скрытие ползунка (spinner) у input type="number" */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* Секция цен */
.price-section {
}


.service-row,
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.total-row {
    font-weight: bold;
    font-size: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.price-row {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-left: auto;
}


.wrap-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.variation-price {
    color: #fff;
    font-weight: bold;
    margin: 0 !important;
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.service-price,
.total-price {
    color: #ffffff;
    font-weight: bold;
}

/* Информационный текст */
.info-text {
    display: flex;
    align-items: center;
    gap: 8px;   
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 10px 0;
}

/* Кнопка оформления */
.order-btn {
    width: 100%;
    padding: 16px 24px;
    background: #ff4444;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0 10px 0;
}

.order-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.order-btn:active {
    transform: translateY(0);
}

/* Единоразовый платеж */
.one-time-payment {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 10px;
}

/* Адаптивная верстка */
@media (max-width: 768px) {
    .super-card-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .super-card {
        min-width: 100%;
        padding: 30px 20px;
    }
    
    .card-header h2 {
        font-size: 24px;
    }
    
    .fuel-buttons {
    }
    
    .fuel-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .super-card {
        padding: 30px 15px;

    }
    
    .card-header h2 {
        font-size: 20px;
    }
    
    .price-section {
        padding: 15px;
    }
    
    .price-row,
    .service-row,
    .total-row {
        font-size: 14px;
    }
    
    .total-row {
        font-size: 16px;
    }
}

/* Анимации загрузки */
.super-card.loading .order-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

.super-card.loading .order-btn::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Стили для ошибок */
.super-card .error-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff4444;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    color: #ffcccc;
    font-size: 14px;
    text-align: center;
}

/* ==================== SUPER FILLTABLE STYLES ==================== */

.super-filltable-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Обертка для выпадающего списка регионов */
.region-select-wrapper {
    margin-bottom: 20px;
}

.region-select-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.region-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* Кнопки типов топлива */
.fuel-type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fuel-type-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    background: #2C2C2C;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-color: #FF2B2B;
}

.fuel-type-btn:hover {
    border-color: #FF2B2B;
}

.fuel-type-btn.active {
    border-color: #FF2B2B;
}

.fuel-label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.fuel-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fuel-prices .regular-price {
    font-size: 24px;
    font-weight: 700;
    color: #FF2B2B;
}

.fuel-prices .sale-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* Стили для Select2 */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 45px;
    padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
}

.wrap-param {
    display: flex;  
    gap:25px;
}

@media (max-width: 1200px) {
    .wrap-card-content {
     flex-wrap: wrap;
    }

}
@media (max-width: 1024px) {
    .wrap-card-content ,
    .super-card-container {
        flex-direction: column;
    }
    .wrap-card-content {

    }

}
/* Адаптивность */
@media (max-width: 768px) {

.fuel-type-section label,
.quantity-section label {
    display: flex;
        justify-content: center;
}

    .card-header h2 {
        font-size: 32px !important;
        margin-top: 10px;
        line-height: 1;
    }
    .wrap-price {
        display: flex;
        flex-direction: row;
    }
    .wrap-param {
        flex-wrap: wrap;
        justify-content: center;

    }
    .price-row {
        margin-left: 0 !important;
    }
    .wrap-card-content {
        justify-content: center;
    }
    .fuel-type-buttons {
        flex-direction: column;
    }

    .fuel-type-btn {
        min-width: 100%;
    }

    .region-select {
        max-width: 100%;
    }
}
