.button-loader {
  display: inline-block;
  width: 24px;
  text-align: center;
  margin-left: 8px;
}

.button-loader span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 1px;
  background: #fff;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out both;
}

.button-loader span:nth-child(1) { animation-delay: -0.24s; }
.button-loader span:nth-child(2) { animation-delay: -0.12s; }
.button-loader span:nth-child(3) { animation-delay:  0s; }

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

 .myorderwait {
  text-align: center;
}
.myorderwait button {
  display: inline-block;
} 

    .lang-select {
      text-align: center;
      margin-bottom: 20px;
    }

  .sim-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 20px;
}

    .sim-card {
      background: white;
      border-radius: 24px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      padding: 24px;
      width: 350px;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

 .sim-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
}
    .sim-data  { font-size: 24px; font-weight: 700; }
    .sim-days  { background: #f1f3f6; color: #555; font-size: 13px; border-radius: 10px; padding: 4px 10px; display: inline-block; }
    .sim-note  { font-size: 13px; color: #777; }
    .sim-price { font-size: 17px; font-weight: 600; color: #00af11; }

.sim-buy-btn {
  background: linear-gradient(to bottom, #3a3a3c, #2c2c2e);
  color: #f5f5f7;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 1px solid #505050;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-buy-btn:hover {
  background: linear-gradient(to bottom, #48484a, #2e2e30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}


    .sim-view-btn {
      background: linear-gradient(to right, var(--secondary), var(--primary));
      border: none;
      color: #fff;
      padding: 10px;
      border-radius: 20px;
      font-weight: 500;
      font-size: 13px;
      margin: 10px auto 0;
      cursor: pointer;
      width: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .arrow-icon {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-bottom: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(45deg);
      transition: transform 0.3s ease;
    }

    .sim-view-btn.open .arrow-icon {
      transform: rotate(-135deg);
    }

    .sim-details {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, opacity 0.4s ease;
      text-align: left;
      font-size: 13px;
      color: #555;
      margin-top: 10px;
      border-top: 1px solid #eee;
      padding-top: 8px;
    }

    .sim-details.open {
      max-height: 400px;
      opacity: 1;
    }

    .accordion {
      border-top: 1px solid #eee;
      padding: 8px 4px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
      color: #444;
    }

    .accordion-icon {
      width: 8px;
      height: 8px;
      border-bottom: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: rotate(45deg);
      transition: transform 0.3s ease;
    }

    .accordion.open .accordion-icon {
      transform: rotate(-135deg);
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      padding-left: 10px;
      border-left: 2px solid #ddd;
      font-size: 13px;
      color: #666;
      transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .accordion.open + .accordion-content {
      max-height: 200px;
      opacity: 1;
      padding-top: 4px;
    }

  .flag {
    width: 32px;
    margin: 0 10px 0 0;
    display: block;
    border-radius: 4px;
}
    .lang-select {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

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

.lang-select 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;
}

.lang-select select:focus {
  outline: none;
  border-color: var(--primary, #4fc5ea);
  box-shadow: 0 0 0 3px rgba(79, 197, 234, 0.2);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
 
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 14px;
    font-size: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #df0e0e;
    transition: color 0.2s ease;
}

.modal-close:hover {
  color: #000;
}

body.modal-open {
  overflow: hidden;
}

/* Полноэкранное на мобилках */
@media (max-width: 600px) {
  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 20px;
     display: flex;
        justify-content: center;
        align-items: center;
         z-index: 9999;
  }
}
.order-summary h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #333;
}

.summary-box {
  background: #f6f8fa;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.summary-box .price {
  font-weight: bold;
  color: #2a8f45;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-form label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}



.submit-order {
  background: linear-gradient(to right, #4fc5ea, #7d50e2);
  color: white;
  padding: 12px;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
      width: 90%;
}

.submit-order:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(125, 80, 226, 0.3);
}
.note {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
  text-align: center;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin: 16px 0 8px;
}
.order-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
 
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}


    .esim-card-visual {
      background: linear-gradient(145deg, #ffffff, #f0f4ff);
      border-radius: 18px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
      padding: 10px 20px 10px 24px;
         margin: 0 0 10px 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
      border: 1px solid #e0e8f0;
    }

    .esim-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .flag-circle {
      
      border-radius: 50%;
      font-size: 20px;
      width: 42px;
      height: 42px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .esim-meta {
      flex-grow: 1;
      margin-left: 12px;
    }

    .esim-country {
      font-size: 16px;
      font-weight: 600;
      color: #222;
    }

    .esim-tag {
      font-size: 13px;
      color: #666;
    }

    .esim-price {
      font-size: 18px;
      font-weight: bold;
      color: #2a8f45;
    }

    .esim-details {
      border-top: 1px solid #e0e0e0;
      padding-top: 12px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .esim-detail {
      font-size: 14px;
      color: #444;
    }

    .esim-detail .icon {
      margin-right: 6px;
    }

    .esim-note {
      font-size: 12.5px;
      color: #888;
      background: #f8fafd;
      border-radius: 10px;
      padding: 10px 14px;
      margin-top: 8px;
      line-height: 1.4;
    }
.esim-details-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.esim-details-wrapper.open {
  max-height: 300px;
  opacity: 1;
}

.toggle-details {
  background: none;
  border: none;
  color: #4fc5ea;
  font-weight: 500;
 
  cursor: pointer;
  font-size: 14px;
}
