/* WooCommerce controls restyled for the dark/gold creator templates.
   The default woocommerce-general stylesheet is dequeued on these views
   (see ioi_dequeue_woocommerce_styles), so the add-to-cart form, variation
   selector and review list are styled here instead. */

/* ---------- add to cart / variations ---------- */
.ioi-cart .variations {
  width: 100%;
  border: 0;
  margin: 0 0 1rem;
  border-collapse: collapse;
}

.ioi-cart .variations th,
.ioi-cart .variations td {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 0;
}

.ioi-cart .variations th {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.ioi-cart .variations td {
  margin-bottom: 1rem;
}

.ioi-cart select {
  width: 100%;
  height: 44px;
  padding: 0 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6c27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
}

.ioi-cart select option {
  background: #131315;
  color: #fff;
}

.ioi-cart .reset_variations {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ioi-cart .reset_variations:hover {
  color: #e6c27a;
}

.ioi-cart .woocommerce-variation-price {
  margin-bottom: 1rem;
}

.ioi-cart .woocommerce-variation-price .price {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: #e6c27a;
}

.ioi-cart .woocommerce-variation-availability p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* A booking is a single slot — quantity is removed server-side via
   woocommerce_is_sold_individually. This is a belt-and-braces hide in case a
   product is ever saved without that flag. */
.ioi-cart .quantity {
  display: none;
}

/* ---------- header badges (saved + cart) ---------- */
.ioi-icon-link {
  position: relative;
}

.ioi-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #000;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  border-radius: 9999px;
}

.ioi-badge.is-empty {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.ioi-cart button[type="submit"],
.ioi-cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 0 60px -15px rgba(212, 175, 55, 0.6), 0 0 120px -30px rgba(212, 175, 55, 0.3);
  transition: opacity 0.2s;
}

.ioi-cart button[type="submit"]:hover,
.ioi-cart .single_add_to_cart_button:hover {
  opacity: 0.9;
}

.ioi-cart .single_add_to_cart_button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.ioi-cart .stock.out-of-stock {
  color: #f87171;
}

/* ---------- notices ---------- */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #fff;
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e6c27a;
  border-radius: 0.75rem;
}

.woocommerce-notices-wrapper .woocommerce-error {
  border-left-color: #f87171;
}

/* WooCommerce's own ::before status icon is absolutely positioned and collides
   with our text (it printed over "Error:"). Hide it — the coloured left border
   already signals the notice type. */
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.ioi-store .woocommerce-message::before,
.ioi-store .woocommerce-info::before,
.ioi-store .woocommerce-error::before {
  display: none;
}

.woocommerce-notices-wrapper a {
  color: #e6c27a;
  text-decoration: underline;
}

/* ---------- my-account (classic shortcode form) ---------- */
.ioi-store .woocommerce {
  color: #fff;
}

.ioi-store .woocommerce h2,
.ioi-store .woocommerce h3,
.ioi-store .woocommerce legend {
  color: #fff;
}

.ioi-store .woocommerce form.login,
.ioi-store .woocommerce form.register,
.ioi-store .woocommerce-MyAccount-content,
.ioi-store .woocommerce-Address-title,
.ioi-store .woocommerce .col-1,
.ioi-store .woocommerce .col-2 {
  color: #fff;
}

.ioi-store .woocommerce form.login,
.ioi-store .woocommerce form.register {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
}

.ioi-store .woocommerce label {
  color: rgba(255, 255, 255, 0.7);
}

.ioi-store .woocommerce input[type="text"],
.ioi-store .woocommerce input[type="email"],
.ioi-store .woocommerce input[type="password"],
.ioi-store .woocommerce input[type="tel"],
.ioi-store .woocommerce input.input-text {
  width: 100%;
  height: 48px;
  padding: 0 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
}

.ioi-store .woocommerce input:focus {
  border-color: #e6c27a;
  outline: none;
  box-shadow: 0 0 0 1px #e6c27a;
}

.ioi-store .woocommerce .password-input {
  display: block;
  position: relative;
  width: 100%;
}
/* The eye toggle is a small icon pinned to the right and vertically centred —
   never full-width (that pushed it off). */
.ioi-store .woocommerce .password-input input {
  padding-right: 2.75rem;
}
.ioi-store .woocommerce .show-password-input {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: auto;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.ioi-store .woocommerce .button,
.ioi-store .woocommerce button.button,
.ioi-store .woocommerce input.button {
  padding: 0.7rem 1.75rem;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  border: 0;
  border-radius: 9999px;
}

.ioi-store .woocommerce .button:hover {
  opacity: 0.9;
}

.ioi-store .woocommerce-MyAccount-navigation ul {
  padding: 0;
  list-style: none;
}

.ioi-store .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ioi-store .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.6rem 0;
  color: rgba(255, 255, 255, 0.75);
}

.ioi-store .woocommerce-MyAccount-navigation .is-active a,
.ioi-store .woocommerce-MyAccount-navigation a:hover {
  color: #e6c27a;
}

.ioi-store .woocommerce a {
  color: #e6c27a;
}

/* ---------- reviews ---------- */
.ioi-reviews .commentlist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ioi-reviews .comment_container {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ioi-reviews .comment_container img {
  flex-shrink: 0;
  border-radius: 9999px;
}

.ioi-reviews .comment-text {
  flex: 1;
}

.ioi-reviews .woocommerce-review__author {
  font-weight: 600;
  color: #fff;
}

.ioi-reviews .woocommerce-review__published-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.ioi-reviews .description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* spacing for the no-reviews / form intro (WooCommerce base CSS is dequeued) */
.ioi-reviews .woocommerce-noreviews,
.ioi-reviews #review_form_wrapper p {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.ioi-reviews #reply-title {
  display: block;
  margin: 0.5rem 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #fff;
}

.ioi-reviews .comment-form-rating label,
.ioi-reviews .comment-form-comment label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- read-only average stars (existing reviews) ----- */
.ioi-reviews .star-rating {
  position: relative;
  display: inline-block;
  width: 6em;
  height: 1.2em;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  font-family: inherit;
}
.ioi-reviews .star-rating::before {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.25);
}
.ioi-reviews .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  padding-top: 1.5em;
}
.ioi-reviews .star-rating span::before {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  letter-spacing: 2px;
  color: #e6c27a;
}

/* ----- interactive rating in the review form ----- */
.ioi-reviews .comment-form-rating .stars {
  display: inline-flex;
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  line-height: 1;
}
.ioi-reviews .comment-form-rating .stars a {
  position: relative;
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  text-indent: -999em;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}
.ioi-reviews .comment-form-rating .stars a::before {
  content: "★";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  text-indent: 0;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.12s;
}
.ioi-reviews .comment-form-rating .stars:hover a::before { color: #e6c27a; }
.ioi-reviews .comment-form-rating .stars a:hover ~ a::before { color: rgba(255, 255, 255, 0.25); }
.ioi-reviews .comment-form-rating .stars.selected a:not(.active)::before { color: #e6c27a; }
.ioi-reviews .comment-form-rating .stars.selected a.active::before { color: #e6c27a; }
.ioi-reviews .comment-form-rating .stars.selected a.active ~ a::before { color: rgba(255, 255, 255, 0.25); }

.ioi-reviews input[type="text"],
.ioi-reviews input[type="email"],
.ioi-reviews textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
}
.ioi-reviews input:focus,
.ioi-reviews textarea:focus {
  border-color: #e6c27a;
  outline: none;
}

.ioi-reviews .comment-form-cookies-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.ioi-reviews .comment-form-cookies-consent input { width: auto; margin: 0.2rem 0 0; }

.ioi-reviews .submit,
.ioi-reviews input#submit {
  padding: 0.7rem 1.75rem;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  border: 0;
  border-radius: 9999px;
}
.ioi-reviews .submit:hover { opacity: 0.9; }

/* ---------- prose (About / FAQ / legal content) ---------- */
.ioi-prose {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}
.ioi-prose > * + * { margin-top: 1.15rem; }
.ioi-prose h2 {
  margin-top: 2.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: #fff;
}
.ioi-prose h3 {
  margin-top: 1.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: #fff;
}
.ioi-prose a { color: #e6c27a; text-decoration: underline; }
.ioi-prose strong { color: #fff; }
.ioi-prose ul,
.ioi-prose ol { padding-left: 1.25rem; }
.ioi-prose li { margin-top: 0.5rem; }
.ioi-prose blockquote {
  padding: 1rem 1.25rem;
  border-left: 3px solid #e6c27a;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  font-style: italic;
  color: #fff;
}

/* FAQ accordions (native <details>) */
.ioi-prose details {
  padding: 1.1rem 1.35rem;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}
.ioi-prose details[open] { border-color: rgba(212, 175, 55, 0.4); }
.ioi-prose summary {
  cursor: pointer;
  list-style: none;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.ioi-prose summary::-webkit-details-marker { display: none; }
.ioi-prose summary::after {
  content: "+";
  color: #e6c27a;
  font-size: 1.4rem;
  line-height: 1;
}
.ioi-prose details[open] summary::after { content: "–"; }
.ioi-prose details > *:not(summary) {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Contact Form 7 (dark theme) ---------- */
.ioi-cf7 .wpcf7-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ioi-cf7-grid {
  display: grid;
  gap: 1rem;
}
/* Full-width fields: one column at every breakpoint. */

.ioi-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.5rem;
}

.ioi-cf7 input.wpcf7-form-control,
.ioi-cf7 textarea.wpcf7-form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  outline: none;
}
.ioi-cf7 textarea.wpcf7-form-control { min-height: 150px; resize: vertical; }
.ioi-cf7 input.wpcf7-form-control::placeholder,
.ioi-cf7 textarea.wpcf7-form-control::placeholder { color: rgba(255, 255, 255, 0.35); text-transform: none; letter-spacing: 0; }
.ioi-cf7 input.wpcf7-form-control:focus,
.ioi-cf7 textarea.wpcf7-form-control:focus { border-color: #e6c27a; }

.ioi-cf7 input.wpcf7-submit,
.ioi-cf7 input[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  font-weight: 500;
  color: #000 !important;
  cursor: pointer;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%) !important;
  border: 0 !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 60px -15px rgba(212, 175, 55, 0.6);
}
.ioi-cf7 input.wpcf7-submit:hover { opacity: 0.9; }

.ioi-cf7 .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #f87171;
  text-transform: none;
  letter-spacing: 0;
}
.ioi-cf7 .wpcf7-not-valid { border-color: #f87171 !important; }

.ioi-cf7 .wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 3px solid #e6c27a !important;
  border-radius: 0.75rem;
}
.ioi-cf7 form.invalid .wpcf7-response-output,
.ioi-cf7 form.failed .wpcf7-response-output { border-left-color: #f87171 !important; }
.ioi-cf7 form.sent .wpcf7-response-output { border-left-color: #34d399 !important; }

.ioi-cf7 .wpcf7-spinner { background-color: rgba(255, 255, 255, 0.4); }

/* ---------- pagination (blog) ---------- */
.ioi-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  text-decoration: none;
}
.ioi-pagination .page-numbers.current {
  color: #000;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  border-color: transparent;
}
.ioi-pagination .page-numbers:hover:not(.current) { color: #e6c27a; }

/* --- Trusted-by brands marquee --------------------------------------- */
.ioi-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ioi-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ioi-marquee 60s linear infinite;
}
/* Even margin on every item (incl. the wrap boundary) keeps the -50% loop seamless. */
.ioi-marquee-item { white-space: nowrap; margin: 0 1.75rem; }
.ioi-marquee:hover .ioi-marquee-track { animation-play-state: paused; }
@keyframes ioi-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ioi-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* --- Get Started (auth) + Dashboard forms ---------------------------- */
.ioi-auth-tab { color: rgba(255,255,255,0.6); }
.ioi-auth-tab.is-active {
  color: #000;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  box-shadow: 0 4px 14px rgba(212,175,55,0.25);
}
.ioi-auth-tab:not(.is-active):hover { color: #e6c27a; }

/* Checkboxes / radios pick up the gold accent even if Tailwind's accent-* util
   isn't in the precompiled build. */
[data-ioi-dashboard] input[type="checkbox"],
[data-ioi-dashboard] input[type="radio"] { accent-color: #d4af37; }

/* File inputs — style the native button consistently across the dashboard. */
[data-ioi-dashboard] input[type="file"] { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
[data-ioi-dashboard] input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}
[data-ioi-dashboard] input[type="file"]::file-selector-button:hover { background: rgba(230,194,122,0.2); }

/* Multi-select (languages) dark styling. */
[data-ioi-dashboard] select[multiple] option { padding: 4px 6px; }
[data-ioi-dashboard] select[multiple]:focus option:checked {
  background: linear-gradient(#d4af37, #d4af37);
  color: #000;
}

/* --- Home slide-up reveal on scroll ---------------------------------- */
/* Gated on body.ioi-anim (added server-side for the home template) so the
   hidden state only applies when the reveal script is present. */
body.ioi-anim [data-ioi-reveal],
body.ioi-anim [data-ioi-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
body.ioi-anim [data-ioi-reveal].is-visible,
body.ioi-anim [data-ioi-reveal-group].is-visible > * {
  opacity: 1;
  transform: none;
}
/* Fallbacks: reveal immediately when motion is reduced or JS is unavailable. */
@media (prefers-reduced-motion: reduce) {
  body.ioi-anim [data-ioi-reveal],
  body.ioi-anim [data-ioi-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (scripting: none) {
  body.ioi-anim [data-ioi-reveal],
  body.ioi-anim [data-ioi-reveal-group] > * { opacity: 1; transform: none; }
}

/* --- Login card (my-account, logged out) ----------------------------- */
.ioi-login .woocommerce-form-login,
.ioi-login form.login {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
.ioi-login .woocommerce-form-row,
.ioi-login .form-row,
.ioi-login .form-row-first,
.ioi-login .form-row-last,
.ioi-login .form-row-wide {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 1.25rem;
  padding: 0;
}
/* WooCommerce's login template ships its own "Lost your password?" link — hide
   it so only the single Forgot/Create row below the card remains. */
.ioi-login .woocommerce-LostPassword,
.ioi-login .lost_password { display: none; }
.ioi-login label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.ioi-login input[type="text"],
.ioi-login input[type="email"],
.ioi-login input[type="password"],
.ioi-login input.input-text {
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  outline: none;
}
.ioi-login input:focus { border-color: #e6c27a; box-shadow: 0 0 0 1px #e6c27a; }
.ioi-login .woocommerce-form-login__submit,
.ioi-login button[type="submit"],
.ioi-login .button {
  width: 100%;
  height: 3.5rem;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
  border: 0;
  border-radius: 1rem;
  transition: opacity 0.2s;
}
.ioi-login .button:hover { opacity: 0.9; }
/* Remember-me row: compact, muted. */
.ioi-login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.ioi-login .woocommerce-form-login__rememberme input { width: auto; height: auto; accent-color: #d4af37; }
.ioi-login .woocommerce-form-login__rememberme span { line-height: 1; }
/* The password field's show/hide eye icon. */
.ioi-login .password-input { position: relative; display: block; }
.ioi-login .password-input input { padding-right: 2.75rem; }
.ioi-login .show-password-input { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: auto; color: rgba(255,255,255,0.5); cursor: pointer; }

/* --- Creator card meta rows: stacked on mobile, two-column on desktop -- */
.ioi-card-right { margin-top: 0.75rem; }
@media (min-width: 768px) {
  .ioi-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .ioi-card-foot .ioi-card-right {
    margin-top: 0;
    text-align: right;
    flex-shrink: 0;
  }
}

/* --- CTA newsletter (Contact Form 7) — inline pill ------------------- */
.ioi-cta-form .wpcf7-form { margin: 0; }
/* CF7 wraps the fields in a <p>; turn that into the pill row. */
.ioi-cta-form .wpcf7-form p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
.ioi-cta-form .wpcf7-form-control-wrap { flex: 1; display: block; }
.ioi-cta-form input[type="email"] {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  color: #fff;
  background: transparent;
  border: 0;
  outline: none;
}
.ioi-cta-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.ioi-cta-form .wpcf7-submit {
  flex: 0 0 auto;
  height: 2.75rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 9999px;
  color: #000;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
}
.ioi-cta-form .wpcf7-submit:hover { opacity: 0.9; }
/* Mobile: stack the email above the button (no cramped inline pill). */
@media (max-width: 639px) {
  .ioi-cta-form .wpcf7-form p {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    border-radius: 1.25rem;
    padding: 0.6rem;
  }
  .ioi-cta-form input[type="email"] { text-align: center; }
  .ioi-cta-form .wpcf7-submit { width: 100%; }
}
.ioi-cta-form .wpcf7-spinner { position: absolute; }
.ioi-cta-form .wpcf7-response-output {
  margin: 0.75rem 0 0 !important;
  padding: 0.6rem 0.9rem !important;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* --- Mobile filters: hidden until toggled, always shown on desktop ---- */
.ioi-filters { display: none; }
.ioi-filters.is-open { display: block; }
@media (min-width: 1024px) {
  /* Pin the filter column in place while the results scroll. align-self:start
     stops the grid item stretching (which would leave nothing to stick), and
     it scrolls internally if the filters ever exceed the viewport height. */
  .ioi-filters {
    display: block;
    position: sticky;
    top: 7rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .ioi-filters::-webkit-scrollbar { display: none; }
}

/* --- Portfolio items + lightbox -------------------------------------- */
.ioi-pf-item { display: block; width: 100%; cursor: pointer; padding: 0; border: 0; }

/* View counts sit over portfolio thumbnails that may be light, so force a
   solid white label with a shadow (and drop-shadow the gold icon) to keep it
   readable regardless of the image behind it. */
.ioi-pf-views { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7); }
.ioi-pf-views svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9)); }

.ioi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.ioi-lightbox[hidden] { display: none; }
.ioi-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ioi-lightbox-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
}
.ioi-lightbox-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
/* Shrinks to wrap the media exactly, so the close X lands on the media's own
   top-right corner rather than floating in the surrounding gap. */
.ioi-lightbox-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ioi-lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
}
.ioi-lightbox-video {
  display: block;
  width: min(900px, 92vw);
  max-width: 100%;
  max-height: 78vh;
  background: #000;
}
.ioi-lightbox-frame {
  position: relative;
  width: min(900px, 92vw);
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
.ioi-lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ioi-lightbox-link {
  color: #000;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f5e1a4 0%, #d4af37 50%, #a8842a 100%);
}
/* Close sits on the image's top-right corner. */
.ioi-lightbox-x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ioi-lightbox-x:hover { color: #e6c27a; border-color: #e6c27a; }

/* --- Star rating input (Reviews tab) --------------------------------- */
/* Radios are reversed in the DOM (5→1) and laid out row-reverse, so the
   general-sibling selector can fill the hovered/checked star and every lower
   one — a pure-CSS star picker, no JS. */
.ioi-star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
}
.ioi-star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ioi-star-input label {
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  line-height: 0;
  transition: color 0.15s, transform 0.1s;
}
.ioi-star-input label svg { display: block; }
.ioi-star-input label:hover,
.ioi-star-input label:hover ~ label,
.ioi-star-input input:checked ~ label { color: #e6c27a; }
.ioi-star-input label:active { transform: scale(1.15); }
.ioi-star-input input:focus-visible + label { outline: 2px solid #e6c27a; outline-offset: 2px; border-radius: 4px; }

/* --- Slideable tab pills (creator detail) ---------------------------- */
.ioi-tablist {
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.ioi-tablist::-webkit-scrollbar { display: none; }
/* Distribute the tabs evenly across the full width. */
.ioi-tablist [role="tab"] { flex: 1 1 0; text-align: center; padding-left: 0.5rem; padding-right: 0.5rem; }

/* --- Dashboard section spacing (space-y-8 isn't in the compiled build) - */
[data-ioi-dashboard] > * + * { margin-top: 2rem; }

/* --- Prevent horizontal overflow shifting the page off-centre -------- */
/* `clip` (not `hidden`) stops horizontal scroll WITHOUT creating a scroll
   container. Applied to <body>, NOT the root <html>: a Chromium bug makes
   `overflow: clip` on the root element break `position: sticky` for its
   descendants (the filter sidebar + booking rail would scroll away instead of
   pinning). `clip` never turns <body> into a scroll container, so sticky stays
   relative to the viewport. */
body.ioi { overflow-x: clip; }

/* --- Detail main column: contain wide content (grid item min-width) ---- */
.ioi-detail-col {
  overflow: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Long unbroken strings (e.g. a bio with no spaces) must wrap, or they force the
   whole column wider and push the layout/portfolio off-screen. */
.ioi-detail-col,
.ioi-detail-col p,
.ioi-detail-col h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --- Home creator rows: 1 per row + only 2 shown on mobile ------------ */
@media (max-width: 639px) {
  .ioi-home-row > *:nth-child(n + 3) { display: none; }
}

/* --- Mobile sticky "Get Started" CTA --------------------------------- */
.ioi-sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40; /* under the header (z-50); hidden once the footer scrolls in */
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ioi-sticky-cta.is-hidden {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

/* --- Dashboard accordions -------------------------------------------- */
[data-ioi-dashboard] .ioi-acc-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
/* The JS adds .ioi-acc-head to the <h2> itself, so zero its margin directly
   (varying Tailwind mb-* per section otherwise made collapsed boxes unequal). */
[data-ioi-dashboard] h2.ioi-acc-head,
[data-ioi-dashboard] .ioi-acc-head > h2 { margin-bottom: 0; }
[data-ioi-dashboard] .ioi-acc-body { margin-top: 1.5rem; }
[data-ioi-dashboard] .ioi-acc-chev {
  margin-left: auto;
  color: #e6c27a;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
[data-ioi-dashboard] .ioi-acc-head.is-collapsed .ioi-acc-chev { transform: rotate(-90deg); }

/* --- Unverified badge (explicit red; Tailwind red-* classes aren't compiled) - */
.ioi-unverified {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.6);
}

/* --- Native controls render dark (fixes white <select> option popups) ------ */
html.dark { color-scheme: dark; }
[data-ioi-dashboard] select option,
.ioi-store select option { background-color: #17171a; color: #fff; }

/* --- Dashboard: language checkbox spacing + even media previews ----------- */
.ioi-lang-list { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.ioi-media-preview {
  display: block;
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* --- Dashboard: compact collapsed accordion boxes + tighter stack -------- */
[data-ioi-dashboard] section { scroll-margin-top: 7rem; }
[data-ioi-dashboard] section.ioi-collapsed {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
[data-ioi-dashboard] > * + * { margin-top: 1.25rem; }

/* --- Dim placeholders a touch + keep validated fields clear of the header --- */
html.dark input::placeholder,
html.dark textarea::placeholder { color: rgba(255, 255, 255, 0.22); }
html.dark input,
html.dark select,
html.dark textarea { scroll-margin-top: 8rem; }
/* Chrome scrolls invalid form controls using the scroll container's padding,
   so this (on the actual scroll root) keeps the "Please fill in this field"
   bubble below the fixed header. */
html { scroll-padding-top: 8rem; }

/* --- Bottom "See more" on home is mobile-only (sm:hidden isn't compiled) --- */
@media (min-width: 640px) {
  .ioi-see-more-mobile { display: none; }
}

/* --- Events nav link: gold "running border" pulse --- */
@property --ioi-nav-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.ioi-nav-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  color: #e6c27a !important;
  font-weight: 600;
}
.ioi-nav-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1.5px; /* border thickness */
  background: conic-gradient(from var(--ioi-nav-ang), rgba(230, 194, 122, 0.15) 0deg, #e6c27a 60deg, rgba(230, 194, 122, 0.15) 140deg, rgba(230, 194, 122, 0.15) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ioi-nav-run 2.6s linear infinite;
  pointer-events: none;
}
@keyframes ioi-nav-run {
  to { --ioi-nav-ang: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .ioi-nav-pulse::before { animation: none; }
}

/* --- Brand dashboard: Quick Actions category chips --- */
.ioi-quick-actions { margin-top: 2rem; }
.ioi-quick-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ioi-quick-cats a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(230, 194, 122, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s;
}
.ioi-quick-cats a:hover {
  color: #e6c27a;
  border-color: rgba(230, 194, 122, 0.6);
}
