/* ========================================
   RATES MODAL
======================================== */

.rates-modal {
  position: fixed !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  display: none;

  align-items: center !important;
  justify-content: center !important;

  padding: 60px 20px 20px !important;

  box-sizing: border-box !important;

  background: rgba(0, 0, 0, 0.78) !important;

  z-index: 999999 !important;
  overflow: hidden !important;

  /* Light theme */
  color: #08102b;
}

/* ========================================
   POPUP CONTENT
======================================== */

.rates-modal-content {
  position: relative !important;

  width: 100% !important;
  max-width: 720px !important;

  max-height: calc(100vh - 80px) !important;

  margin: 0 auto !important;

  /* Light theme */
  background: #fff !important;

  color: #08102b;

  border-radius: 16px !important;

  overflow: hidden !important;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
}

/* ========================================
   DARK THEME
======================================== */

body.drK .rates-modal {
  color: #fffdfc;
}

body.drK .rates-modal-content {
  background: #1e1e1e !important;
  color: #fffdfc;
}

/* ========================================
   INNER
======================================== */

.rates-inner {
  width: 100%;

  max-height: calc(100vh - 80px);

  overflow-y: auto;

  padding: 28px;

  box-sizing: border-box;

  color: inherit;
}

/* ========================================
   HEADER
======================================== */

.rates-header {
  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 24px;
}

.rates-icon {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: color-mix(in srgb, currentColor 10%, transparent);

  color: inherit;
}

.rates-icon svg {
  width: 27px;
  height: 27px;

  color: inherit;
}

.rates-header h2 {
  margin: 0;

  color: inherit;

  font-size: 25px;
  line-height: 1.25;
}

.rates-header p {
  margin: 4px 0 0;

  color: color-mix(in srgb, currentColor 60%, transparent);

  font-size: 14px;
}

/* ========================================
   RATE LIST
======================================== */

.rates-list {
  display: grid;

  gap: 12px;
}

.rate-card {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 17px 18px;

  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);

  border-radius: 12px;

  background: color-mix(in srgb, currentColor 4%, transparent);

  color: inherit;
}

.rate-card.featured {
  border-color: color-mix(in srgb, currentColor 25%, transparent);
}

/* ========================================
   RATE INFO
======================================== */

.rate-info {
  min-width: 0;
}

.rate-info strong {
  display: block;

  color: inherit;

  font-size: 16px;
  line-height: 1.3;
}

.rate-info span {
  display: block;

  margin-top: 3px;

  color: color-mix(in srgb, currentColor 58%, transparent);

  font-size: 13px;
}

/* ========================================
   PRICE
======================================== */

.rate-price {
  flex-shrink: 0;

  text-align: right;
}

.rate-price strong {
  display: block;

  color: inherit;

  font-size: 22px;
  line-height: 1.2;
}

.rate-price span {
  display: block;

  margin-top: 2px;

  color: color-mix(in srgb, currentColor 58%, transparent);

  font-size: 12px;
}

/* ========================================
   LONG STAY NOTE
======================================== */

.rate-note {
  margin-top: 18px;

  padding: 15px 16px;

  border-radius: 12px;

  background: color-mix(in srgb, currentColor 6%, transparent);

  color: inherit;
}

.rate-note strong {
  display: block;

  color: inherit;

  font-size: 15px;
}

.rate-note span {
  display: block;

  margin-top: 4px;

  color: color-mix(in srgb, currentColor 62%, transparent);

  font-size: 13px;

  line-height: 1.5;
}

/* ========================================
   PAYMENT SECTION
======================================== */

.rates-section {
  margin-top: 24px;
}

.rates-section h3 {
  margin: 0 0 12px;

  color: inherit;

  font-size: 17px;
}

.rates-row {
  display: grid;

  grid-template-columns: 170px 1fr;

  gap: 14px;

  padding: 11px 0;

  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.rates-row:last-child {
  border-bottom: 0;
}

.rates-row strong {
  color: inherit;

  font-size: 14px;
}

.rates-row span {
  color: color-mix(in srgb, currentColor 65%, transparent);

  font-size: 13px;

  line-height: 1.55;
}

.rates-row b {
  color: inherit;
}

/* ========================================
   FOOTER
======================================== */

.rates-footer {
  margin-top: 18px;

  color: color-mix(in srgb, currentColor 52%, transparent);

  font-size: 12px;

  line-height: 1.5;
}

/* ========================================
   CLOSE BUTTON
======================================== */

.rates-close-btn {
  position: absolute !important;

  top: 12px !important;
  right: 12px !important;

  width: 36px !important;
  height: 36px !important;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;

  border: 0 !important;

  border-radius: 50% !important;

  background: color-mix(in srgb, currentColor 8%, transparent) !important;

  color: inherit !important;

  font-size: 25px !important;

  line-height: 1 !important;

  cursor: pointer !important;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease !important;

  z-index: 5 !important;
}

.rates-close-btn:hover {
  background: currentColor !important;

  color: #fff !important;

  transform: rotate(90deg);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 479px) {
  .rates-modal {
    padding: 50px 12px 12px !important;
  }

  .rates-modal-content {
    max-height: calc(100vh - 62px) !important;

    border-radius: 14px !important;
  }

  .rates-inner {
    max-height: calc(100vh - 62px);

    padding: 22px 16px;
  }

  .rates-header {
    margin-bottom: 20px;
  }

  .rates-header h2 {
    font-size: 21px;
  }

  .rates-icon {
    width: 42px;
    height: 42px;

    flex-basis: 42px;
  }

  .rate-card {
    padding: 14px;
  }

  .rate-price strong {
    font-size: 19px;
  }

  .rates-row {
    grid-template-columns: 1fr;

    gap: 4px;
  }
}

/* ========================================
   TABLET
======================================== */

@media (min-width: 480px) and (max-width: 768px) {
  .rates-modal {
    padding: 55px 16px 16px !important;
  }

  .rates-modal-content {
    max-height: calc(100vh - 71px) !important;
  }

  .rates-inner {
    max-height: calc(100vh - 71px);

    padding: 24px;
  }
}
