/* Hide google recaptcha badge */
.grecaptcha-badge {
  @apply sr-only;
}

.swiper-pagination-bullet {
  @apply w-2 h-2 border border-white;
}

.swiper-pagination-bullet-active {
  @apply !bg-white;
}

.rich-text.a-normal p a {
  @apply no-underline;
}

.swiper-slide-thumb-active {
  @apply border-2 border-white;
}

/**
 * Vanilla Radix State Styles
 */

/* 1. Accordion / Collapsible (Scoped to content) */
.accordion-content[data-state="closed"],
[data-collapsible-content][data-state="closed"],
[data-accordion-content][data-state="closed"] {
    display: none;
}

.accordion-content[data-state="open"],
[data-collapsible-content][data-state="open"],
[data-accordion-content][data-state="open"] {
    display: block;
}

/* 2. Tabs */
[data-radix-tabs-content][data-state="inactive"] {
    display: none;
}
[data-radix-tabs-content][data-state="active"] {
    display: block;
}

/* 3. Popover / Select */
[data-radix-popover-content],
[data-radix-select-content] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-radix-popover-content][data-state="closed"],
[data-radix-select-content][data-state="closed"] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    display: none;
}

[data-radix-popover-content][data-state="open"],
[data-radix-select-content][data-state="open"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    display: block;
}

/* 4. Toasts */
[data-radix-toast-viewport] {
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    width: 400px;
    max-width: 100vw;
    margin: 0;
    list-style: none;
    z-index: 2147483647;
    outline: none;
}

.toast {
    @apply bg-black-primary border border-white/10 p-4 rounded-lg shadow-2xl relative;
    transition: all 0.3s ease;
}

.toast[data-state="open"] {
    animation: slideIn 0.3s ease-out;
}

.toast[data-state="closed"] {
    animation: hide 0.1s ease-in forwards;
}

.toast-title {
    @apply font-nord font-bold text-white mb-1;
}

.toast-description {
    @apply text-white/60 text-sm;
}

.toast-close {
    @apply absolute top-2 right-2 text-white/40 hover:text-white transition-colors;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes hide {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Hide browser default number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

/* Intl-Tel-Input Styles */
div.iti {
  display: flex !important;
  width: 100% !important;
}

div.iti input.iti__tel-input {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 52px !important;
  padding-right: 16px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  background-color: #f0f0f0 !important; /* bg-grey-light */
  color: #0f0f0f !important; /* black-darkest */
  font-weight: 300 !important;
  border: solid 1px #d0d0d0 !important; /* border-grey-medium */
  border-radius: 0.375rem !important; /* matched to rounded-md */
  outline: none !important;
  height: auto !important;
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

.iti__country-list {
  background-color: #ffffff;
  color: #0f0f0f;
  z-index: 100;
}

.iti__selected-flag {
  background-color: transparent !important;
}
