/* Play Studio: social wall and concept configurator */
.play-studio-page {
  --studio-ink: #132c49;
  --studio-muted: #65788e;
  --studio-blue: #0e83d3;
  --studio-pink: #ed2d83;
  --studio-yellow: #ffbe18;
  color: var(--studio-ink);
}
.play-studio-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 88px) 0 40px;
  background:
    radial-gradient(circle at 12% 10%, rgb(9 165 230 / 13%), transparent 25%),
    radial-gradient(circle at 90% 4%, rgb(237 45 131 / 12%), transparent 27%),
    linear-gradient(135deg, #f7fcff, #fff9e9 55%, #fff7fb);
}
.play-studio-hero__inner,
.play-studio-main {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.play-studio-hero__eyebrow,
.funwaves-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 900;
  text-transform: uppercase;
  color: #1275b8;
}
.play-studio-hero h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: .99;
  letter-spacing: -.045em;
  color: #102b4b;
}
.play-studio-hero h1 span {
  background: linear-gradient(100deg, #0c9de3 0%, #8a4fd7 45%, #ec3180 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.play-studio-hero p {
  max-width: 720px;
  margin: 0;
  color: #536b83;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
}
.play-studio-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.play-studio-hero__chips span {
  padding: 8px 12px;
  border: 1px solid #dceaf5;
  border-radius: 999px;
  background: rgb(255 255 255 / 75%);
  color: #385570;
  font-size: 12px;
  font-weight: 800;
}
.play-studio-main { padding: 24px 0 84px; }
.funwaves-tabs {
  position: sticky;
  top: 8px;
  z-index: 30;
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  margin: 0 auto 30px;
  padding: 7px;
  border: 1px solid #deebf4;
  border-radius: 18px;
  background: rgb(255 255 255 / 93%);
  box-shadow: 0 10px 32px rgb(20 52 82 / 9%);
  backdrop-filter: blur(16px);
}
.funwaves-tab {
  min-height: 48px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #506780;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.funwaves-tab[aria-selected="true"] {
  background: linear-gradient(110deg, #117ec5, #6849c7);
  color: #fff;
  box-shadow: 0 5px 16px rgb(24 99 174 / 20%);
}
.funwaves-tab:focus-visible,
.play-studio-page button:focus-visible,
.play-studio-page a:focus-visible,
.play-studio-page select:focus-visible,
.play-studio-page input:focus-visible {
  outline: 3px solid #ef9e22;
  outline-offset: 3px;
}
.funwaves-tab-panel[hidden] { display: none !important; }
.funwaves-section-heading {
  margin: 0 0 23px;
  text-align: center;
}
.funwaves-section-heading h2 {
  margin: 8px 0 8px;
  color: #122f50;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.funwaves-section-heading p {
  max-width: 710px;
  margin: 0 auto;
  color: var(--studio-muted);
  font-size: 15px;
  line-height: 1.65;
}
.funwaves-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.funwaves-social-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0eaf2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(17 52 85 / 7%);
}
.funwaves-social-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f6;
}
.funwaves-social-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.funwaves-social-brand__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}
.funwaves-social-brand__icon--facebook { background: #1877f2; }
.funwaves-social-brand__icon--instagram {
  background: linear-gradient(135deg, #7650c9, #d93682 52%, #ff9c42);
}
.funwaves-social-brand strong {
  display: block;
  color: #172f4e;
  font-size: 15px;
}
.funwaves-social-brand small {
  display: block;
  margin-top: 3px;
  color: #73869a;
  font-size: 11px;
}
.funwaves-follow-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #0f84d0;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.funwaves-social-card:nth-child(2) .funwaves-follow-link { background: #b52d83; }
.funwaves-follow-link.is-unconfigured,
.funwaves-follow-link[aria-disabled="true"] {
  background: #edf2f6 !important;
  color: #7c8d9e;
  cursor: not-allowed;
  pointer-events: none;
}
.funwaves-social-card__body { padding: 16px; }
.funwaves-embed-frame {
  width: 100%;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid #e8eef4;
  border-radius: 15px;
  background: #f8fbfd;
}
.funwaves-embed-placeholder {
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: #60768e;
}
.funwaves-embed-placeholder__symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: #eaf5fb;
  color: #167dbd;
  font-size: 24px;
}
.funwaves-embed-placeholder strong { color: #193b5e; font-size: 14px; }
.funwaves-embed-placeholder p {
  max-width: 340px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.funwaves-social-iframe {
  display: block;
  width: 100%;
  border: 0;
}
#facebook-timeline .funwaves-social-iframe {
  height: 570px;
  min-height: 510px;
}
.funwaves-instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.funwaves-instagram-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8eef4;
  border-radius: 13px;
  background: #fff;
}
.funwaves-instagram-card iframe { min-height: 410px; }
.funwaves-post-open {
  display: block;
  padding: 9px 10px 11px;
  color: #a72d78;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.funwaves-feed-status {
  margin: 12px 2px 0;
  color: #718298;
  font-size: 11px;
  line-height: 1.55;
}
.funwaves-social-disclaimer {
  margin: 22px 0 0;
  padding: 12px 15px;
  border-left: 3px solid #f2b22b;
  border-radius: 0 10px 10px 0;
  background: #fff9e9;
  color: #745b26;
  font-size: 12px;
  line-height: 1.6;
}
.funwaves-custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 22px;
  align-items: start;
}
.funwaves-preview-card,
.funwaves-controls-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0eaf2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(17 52 85 / 7%);
}
.funwaves-preview-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}
.funwaves-preview-card__head h3 {
  margin: 4px 0 0;
  color: #173655;
  font-size: 19px;
}
.funwaves-preview-tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf5fc;
  color: #176f9f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.funwaves-canvas-wrap {
  position: relative;
  min-height: 365px;
  margin: 4px 14px 14px;
  overflow: hidden;
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 50% 85%, rgb(18 68 111 / 12%), transparent 45%),
    linear-gradient(145deg, #edf8ff, #f8f6ff 60%, #fff8e9);
}
#funwaves-configurator-canvas {
  display: block;
  width: 100%;
  height: 365px;
}
.funwaves-canvas-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 82%);
  color: #75889b;
  font-size: 10px;
  pointer-events: none;
}
.funwaves-preview-card__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 18px 18px;
}
.funwaves-swatch-note {
  padding: 10px;
  border: 1px solid #eaf0f5;
  border-radius: 12px;
  color: #677d92;
  font-size: 10px;
  line-height: 1.4;
}
.funwaves-swatch-note strong {
  display: block;
  margin-bottom: 3px;
  color: #25445f;
  font-size: 11px;
}
.funwaves-controls-card__head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #eaf0f5;
}
.funwaves-controls-card__head h3 {
  margin: 0 0 6px;
  color: #173655;
  font-size: 19px;
}
.funwaves-controls-card__head p {
  margin: 0;
  color: #72859a;
  font-size: 12px;
  line-height: 1.55;
}
.funwaves-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 12px;
  padding: 18px 22px 20px;
}
.funwaves-control {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.funwaves-control--wide { grid-column: 1 / -1; }
.funwaves-control label {
  color: #506a83;
  font-size: 11px;
  font-weight: 900;
}
.funwaves-control select {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 9px 30px 9px 11px;
  border: 1px solid #dce7f0;
  border-radius: 10px;
  background: #fbfdff;
  color: #193653;
  font: inherit;
  font-size: 12px;
}
.funwaves-control-colours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 22px 18px;
}
.funwaves-colour-control {
  display: grid;
  gap: 7px;
  color: #60778e;
  font-size: 11px;
  font-weight: 800;
}
.funwaves-colour-control input {
  width: 100%;
  height: 40px;
  padding: 3px;
  border: 1px solid #dce7f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.funwaves-build-summary {
  display: grid;
  gap: 0;
  margin: 0 22px 16px;
  border: 1px solid #e7eef4;
  border-radius: 13px;
  overflow: hidden;
}
.funwaves-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid #edf2f6;
  font-size: 11px;
}
.funwaves-summary-row:last-child { border-bottom: 0; }
.funwaves-summary-row span { color: #71849a; }
.funwaves-summary-row strong {
  max-width: 66%;
  color: #244662;
  text-align: right;
}
.funwaves-controls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 22px 20px;
}
.funwaves-controls-actions button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  flex: 1 1 130px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
#funwaves-whatsapp-enquiry {
  background: #159c63;
  color: #fff;
}
#funwaves-reset {
  border: 1px solid #dbe7f0;
  background: #fff;
  color: #526a82;
}
#funwaves-studio-status {
  min-height: 18px;
  padding: 0 22px 17px;
  color: #6b8096;
  font-size: 11px;
  line-height: 1.5;
}
.funwaves-concept-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 20px 0 0;
  padding: 15px 17px;
  border: 1px solid #f1dfaa;
  border-radius: 14px;
  background: #fff9e9;
  color: #725b2b;
  font-size: 12px;
  line-height: 1.6;
}
.funwaves-concept-note strong { display: block; margin-bottom: 3px; color: #604819; }
.funwaves-concept-note__icon { font-size: 20px; }
.play-studio-footer {
  padding: 28px 20px 36px;
  background: #112b49;
  color: #dbe7f4;
  text-align: center;
}
.play-studio-footer a { color: #fff; }
.play-studio-footer p { margin: 6px 0; font-size: 12px; }
@media (max-width: 900px) {
  .funwaves-custom-layout { grid-template-columns: 1fr; }
  .funwaves-controls-card { order: 1; }
  .funwaves-preview-card { order: 0; }
}
@media (max-width: 700px) {
  .play-studio-hero__inner,
  .play-studio-main { width: min(100% - 28px, 620px); }
  .funwaves-tabs {
    position: relative;
    top: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .funwaves-tab {
    padding: 10px 8px;
    font-size: 11px;
  }
  .funwaves-social-grid { grid-template-columns: 1fr; }
  .funwaves-social-card__head { padding: 14px; }
  .funwaves-social-card__body { padding: 11px; }
  .funwaves-embed-frame { min-height: 470px; }
  .funwaves-instagram-grid { grid-template-columns: 1fr; }
  .funwaves-preview-card__head { padding: 17px 17px 10px; }
  .funwaves-canvas-wrap { min-height: 290px; margin: 4px 10px 10px; }
  #funwaves-configurator-canvas { height: 290px; }
  .funwaves-control-grid { padding: 15px; gap: 11px; }
  .funwaves-control-colours { padding: 0 15px 15px; }
  .funwaves-build-summary { margin-inline: 15px; }
  .funwaves-controls-actions { padding-inline: 15px; }
  #funwaves-studio-status { padding-inline: 15px; }
  .funwaves-preview-card__foot { padding: 0 12px 14px; }
}


/* Owner-authorized Instagram Business feed carousel */
.funwaves-instagram-frame { min-height: 0; padding: 14px; }
.funwaves-instagram-carousel[hidden] { display: none !important; }
.funwaves-instagram-carousel { display: grid; gap: 12px; min-width: 0; }
.funwaves-instagram-carousel:focus-visible {
  outline: 3px solid #d34b92;
  outline-offset: 3px;
  border-radius: 12px;
}
.funwaves-instagram-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}
.funwaves-instagram-carousel__toolbar > span {
  color: #667e96;
  font-size: 11px;
  font-weight: 800;
}
.funwaves-instagram-carousel__buttons { display: flex; gap: 7px; }
.funwaves-instagram-carousel__buttons button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dce7f0;
  border-radius: 50%;
  background: #fff;
  color: #173b5e;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}
.funwaves-instagram-carousel__buttons button:hover:not(:disabled) {
  border-color: #c13283;
  background: #fff2fa;
  color: #a72d78;
}
.funwaves-instagram-carousel__buttons button:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.funwaves-instagram-carousel__viewport { width: 100%; overflow: hidden; }
.funwaves-instagram-track {
  --instagram-visible: 3;
  display: flex;
  gap: 14px;
  width: 100%;
  align-items: stretch;
  transition: transform .35s cubic-bezier(.2,.75,.25,1);
  will-change: transform;
}
.funwaves-instagram-card {
  display: flex;
  min-width: 0;
  flex: 0 0 calc((100% - 28px) / 3);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6edf4;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 17px rgb(17 52 85 / 5%);
}
.funwaves-instagram-card:hover {
  border-color: #e5bed6;
  box-shadow: 0 9px 22px rgb(17 52 85 / 10%);
  transform: translateY(-2px);
}
.funwaves-instagram-card__visual {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(145deg,#f0f8fd,#fff3f8);
}
.funwaves-instagram-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.funwaves-instagram-card__no-image {
  padding: 16px;
  color: #58728a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.funwaves-instagram-card__type {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgb(15 31 50 / 78%);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}
.funwaves-instagram-card__caption {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  margin: 0;
  padding: 9px 10px 2px;
  color: #425c75;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.funwaves-instagram-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding: 8px 10px 11px;
  color: #8a98a8;
  font-size: 9px;
  font-weight: 800;
}
.funwaves-instagram-carousel__hint {
  margin: 0;
  color: #8a98a8;
  font-size: 10px;
  text-align: right;
}
.funwaves-instagram-frame .funwaves-embed-placeholder { min-height: 460px; }
@media (max-width: 1050px) {
  .funwaves-instagram-track { --instagram-visible: 2; }
  .funwaves-instagram-card { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 700px) {
  .funwaves-instagram-frame { padding: 11px; }
  .funwaves-instagram-track { --instagram-visible: 1; gap: 0; }
  .funwaves-instagram-card { flex-basis: 100%; }
  .funwaves-instagram-card__visual { aspect-ratio: 4 / 4.2; }
  .funwaves-instagram-carousel__hint { text-align: center; }
}

/* Author styles must not override the hidden state toggled after feed hydration. */
.funwaves-embed-placeholder[hidden] { display: none !important; }
