  .langSwitch {
 
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.langSwitch label {
  font-size: 20px;
  color: #444;
}

.langSwitch select {
  appearance: none;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 14px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.langSwitch select:focus {
  outline: none;
  border-color: var(--primary, #4fc5ea);
  box-shadow: 0 0 0 3px rgba(79, 197, 234, 0.2);
}


/*new style*/
.container {
    max-width: 500px;
    margin: 0 auto;
  
}

/* --- Оповещения и сообщения --- */
.error-display-area,
.notification-area {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.alert-error {
    background-color: #fcebeb;
    color: #cc0000;
    border: 1px solid #ebcccc;
}

.alert-info {
    background-color: #e6f7ff;
    color: #004085;
    border: 1px solid #b3e0ff;
}

.alert-success {
    background-color: #e6ffe6;
    color: #007300;
    border: 1px solid #b3ffb3;
}

.notification-area {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(76, 175, 80, 0.95); /* Green */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: none; /* Скрыто по умолчанию */
}

/* Показать уведомление */
.notification-area.show {
    opacity: 1;
    display: block;
    transform: translateX(-50%) translateY(0);
}


/* --- Макет карточки заказа --- */
.order-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eee;
    transition: transform 0.2s ease-in-out;
}

.order-container:hover {
    transform: translateY(-3px);
}

.order-header {
    display: flex
;
    justify-content: space-between;
    /* align-items: center; */
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: space-around;
}

.order-header h3 {
    margin: 0;
    font-size: 1.6em;
    color: #2c3e50;
}

.order-time {
    font-size: 0.9em;
    color: #7f8c8d;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    color: #fff;
    text-transform: uppercase;
    min-width: 90px;
    text-align: center;
}

.status-badge.green {
    background-color: #27ae60;
}

.status-badge.orange {
    background-color: #f39c12;
}

.status-badge.red {
    background-color: #e74c3c;
}

.status-badge.gray {
    background-color: #95a5a6; /* По умолчанию для неизвестного статуса */
}

/* --- Информация о продукте и детали SIM --- */
.product-info-card, .esim-card-visual {
    background-color: #fcfcfc;
    padding: 15px;
    border-radius: 8px;
   
    border: 1px solid #eee;
}

.product-info-card .product {
    font-size: 1.1em;
    color: #34495e;
   
    display: block;
    font-weight: bold;
}

.product-info-card .price,
.product-info-card .tarif {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 3px;
}

.sim-detail {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.sim-detail div {
    margin-bottom: 5px;
}

/* --- Карточка активации eSIM QR --- */
.esim-activation-card {
    display: flex;
    flex-direction: column; /* Раздел снизу на маленьких экранах */
    gap: 20px;
    margin-top: 20px;
}



.qr-section {
    background-color: #ecf0f1;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-section h4 {
    margin-top: 0;
    color: #2c3e50;
}

.image-container.qr-code-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px; /* Обеспечить пространство для QR-кода */
    min-width: 150px;
    margin: 15px auto;
    border: 1px solid #ddd; /* Рамка для QR-кода */
    border-radius: 5px;
    background-color: #fff;
}

.image-container canvas {
    border-radius: 5px;
}

.esimCodes {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9em;
    background-color: #fcfcfc;
    text-align: center;
    word-break: break-all; /* Обеспечить перенос длинных кодов */
    user-select: all; /* Позволяет легко выделить весь текст */
}

.install-btn, .copy-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap; /* Предотвратить слишком ранний перенос текста кнопки */
    font-size: 0.95em;
    border: none;
}

.install-btn {
    background-color: #3498db;
    color: #fff;
}

.install-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.copy-btn {
    background-color: #f1c40f;
    color: #333;
}

.copy-btn:hover {
    background-color: #f39c12;
    transform: translateY(-2px);
}

.info-section {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    flex-grow: 1; /* Позволяет секции занимать доступное пространство */
}

.info-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.esim-warning-box {
    background-color: #fffde7; /* Светло-желтый фон */
    border: 1px solid #ffe082; /* Желтая рамка */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #555;
}

.esim-warning-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.esim-warning-box li {
    margin-bottom: 8px;
}

.esim-warning-box li b {
    color: #c0392b; /* Более яркий цвет для предупреждений */
}

.thank-you {
    margin-top: 20px;
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* --- Раздел оплаты --- */
.payment-options {
    display: flex;
    flex-wrap: wrap; /* Разрешить перенос на маленьких экранах */
    gap: 15px;
    justify-content: center; /* Центрировать опции оплаты */
    margin-bottom: 20px;
}

.payment-option-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 calc(50% - 30px); /* Две колонки с промежутком */
    min-width: 280px; /* Минимальная ширина перед переносом */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.payment-option-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    transform: translateY(-3px);
}

.payment-option-card img {
    max-width: 100%;
    height: auto;
    margin: 5px 10px;
}

.payment-option-card .inline-block-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Разрешить перенос изображений */
}

.rf-payment-info {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #fefefe;
    font-size: 0.95em;
    color: #030303;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.rf-payment-info h5 {
    margin-top: 0;
    color: #2c3e50;
}

.rf-payment-info .small-text {
    font-size: 0.85em;
    color: #777;
}

.inline-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.content-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-weight: bold;
}

.content-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* --- Визуал Travel eSIM --- */
/* Общие стили для esim-card-visual */
.esim-card-visual {
    display: flex; /* Используем flexbox */
    align-items: center; /* Выравнивание по центру по вертикали */
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    gap: 10px; /* Промежуток между элементами */
    flex-wrap: wrap; /* Разрешить перенос на новую строку для маленьких экранов */
}

.esim-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1; /* Позволяет занимать доступное пространство */
}

.flag-circle {
    width: 40px;
   
    border-radius: 2%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Не сжимать */
}

.flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esim-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Позволяет занимать доступное пространство */
}

.esim-country {
    font-weight: bold;
    font-size: 1.1em;
}

.esim-tag {
    font-size: 0.9em;
    color: #666;
}

.esim-price {
    font-weight: bold;
    font-size: 1.2em;
    color: #007bff; /* Примерный цвет */
    white-space: nowrap; /* Запрещает перенос строки */
    margin-left: auto; /* Отталкивает цену вправо */
    flex-shrink: 0; /* Не сжимать */
}

/* Медиа-запрос для мобильных устройств (примерно до 768px) */
@media (max-width: 768px) {
    .esim-card-visual {
        flex-direction: row; /* На мобильных устройствах оставим в ряд */
        /* Если нужно, чтобы элементы ВСЕГДА были в одну линию, можно убрать flex-wrap: wrap;
           Но тогда могут быть переполнения, если контент длинный.
           flex-wrap: wrap; с justify-content: space-between; может быть лучше */
        justify-content: space-between; /* Распределяем пространство */
    }

    /* Можем уменьшить размер текста для мобильных */
    .esim-country {
        font-size: 1em;
    }

    .esim-tag {
        font-size: 0.8em;
    }

    .esim-price {
        font-size: 1.1em;
    }

    /* Если нужно, чтобы все элементы в esim-card-header тоже были в ряд */
    .esim-card-header {
        
        align-items: center;
    }
}

/* Добавьте стили для новой кнопки инструкции */
.instruction-button {
    display: inline-block;
    padding: 8px 15px;
    margin-top: 10px; /* Отступ сверху от других элементов */
    background-color: #28a745; /* Зеленый цвет */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.instruction-button:hover {
    background-color: #218838; /* Темнее при наведении */
}
/* --- Вспомогательные классы --- */
hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.important-text {
    font-size: 14px;
    color: red;
    margin: 10px;
}

/* --- Адаптивные настройки --- */
@media (max-width: 600px) {
    .order-container {
        padding: 15px;
    }

    .order-header {
       
        align-items: flex-start;
    }

    .status-badge {
        margin-top: 10px;
       
    }

    .payment-option-card {
        flex: 1 1 100%; /* Одна колонка на очень маленьких экранах */
    }

    .inline-buttons {
        flex-direction: column;
    }

    .content-button {
        width: 100%;
        text-align: center;
    }

    .esim-card-header {
        
        text-align: center;
    }
    .esim-meta, .esim-price {
        margin-top: 10px;
    }
}