/**
 * Gift selection widget — styles from Figma Make (Mobile gift selection form widget)
 * Scoped to .gift-selection-widget. No dependencies on existing app CSS.
 */

 .radio-group input[type="radio"]:checked + span {
  background-color: transparent;
  color: #00004c;
 }

.gift-selection-widget {
  --gsw-bg: #e6e6ff;
  --gsw-text: #00004d;
  --gsw-text-alt: #00004c;
  --gsw-primary: #8080ff;
  --gsw-success: #0bdc0b;
  --gsw-border: #cacae4;
  --gsw-muted: #c4c4de;
  --gsw-tooltip-bg: #00004c;
  font-size: 18px;
  padding-left: 5px;
  font-family: 'simplistic_sans_newnormal', Arial, Helvetica, Sans, FreeSans, NimbusSansL, Garuda, sans-serif;
  font-smooth: auto;
  -webkit-font-smoothing: antialiased;
}


.gift-selection-widget *,
.gift-selection-widget *::before,
.gift-selection-widget *::after {
  box-sizing: border-box;
}

/* Header */
.gift-selection-widget__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--gsw-text);
}

/* Section labels */
.gift-selection-widget__label {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 16px 0;
  padding-left: 0;
  text-align: left;
  color: var(--gsw-text-alt);
  font-family: simplistic_sans, SimplisticSans, Arial, Helvetica, Sans, FreeSans, Nimbus Sans L, Garuda, sans-serif;
  font-weight: 500;
  color: #00004c;
}

label.items-center {
  font-size: 14px;
}

/* Amount input */
.gift-selection-widget__amount-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.gift-selection-widget__currency {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gsw-text-alt);
  pointer-events: none;
}

.gift-selection-widget__amount-input {
  width: 100%;
  height: 2rem;
  padding-left: 1.75rem;
  border: 1px solid var(--gsw-primary);
  border-radius: 3px;
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
  color: var(--gsw-text-alt);
}

.gift-selection-widget__amount-input::placeholder {
  color: #666;
}

.gift-selection-widget__amount-input:focus {
  outline: none;
  border-color: var(--gsw-primary);
}

/* Yes/No buttons */
.gift-selection-widget__yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 170px;
  margin-bottom: 16px;
}

.gift-selection-widget__btn-yn {
  padding: 0.5rem 1rem;
  font-size: 18px;
  background: transparent;
  border: 1px solid var(--gsw-primary);
  border-radius: 3px;
  font-family: simplistic_sans, SimplisticSans, Arial, Helvetica, Sans, FreeSans, Nimbus Sans L, Garuda, sans-serif;
  font-weight: 500;
  color: #00004c;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gift-selection-widget__btn-yn::-moz-focus-inner {
  border: 0;
}

/* Geen browser-default (zwarte) focusring na klik; wel zichtbare focus bij Tab */
.gift-selection-widget__btn-yn:focus {
  outline: none;
  box-shadow: none;
}

.gift-selection-widget__btn-yn:focus-visible {
  outline: 2px solid var(--gsw-primary);
  outline-offset: 2px;
}

.gift-selection-widget__btn-yn--active {
  background: var(--gsw-primary);
}

.gift-selection-widget__btn-yn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* T-shirt grid */
.gift-selection-widget__shirt-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  text-align: left;
  font-size: 16px;
}

.gift-selection-widget__shirts {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 1rem 0;
}

@media (max-width: 480px) {
  .gift-selection-widget__shirts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* Dialoog: kleine pijlen (px i.p.v. rem → niet meeschalen met systeem-lettergrootte) + max. ruimte voor preview */
  .gift-selection-widget__dialog-preview {
    gap: 4px;
  }

  .gift-selection-widget__dialog-nav {
    padding: 8px;
  }

  .gift-selection-widget__dialog-swatch {
    max-width: min(320px, calc(100vw - 4.5rem));
    max-height: min(300px, 52vmin);
  }
}

.gift-selection-widget__shirt {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gift-selection-widget__shirt:disabled {
  cursor: not-allowed;
}

.gift-selection-widget__shirt-swatch {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s, filter 0.2s;
}

.gift-selection-widget__shirt--disabled .gift-selection-widget__shirt-swatch {
  opacity: 0.4;
  filter: grayscale(1);
}

.gift-selection-widget__shirt--soldout .gift-selection-widget__shirt-swatch {
  opacity: 0.5;
}

.gift-selection-widget__shirt--soldout .gift-selection-widget__shirt-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(
    to top left,
    transparent calc(50% - 2px),
    var(--gsw-muted) calc(50% - 2px),
    var(--gsw-muted) calc(50% + 2px),
    transparent calc(50% + 2px)
  );
}

.gift-selection-widget__shirt-swatch-wrap {
  position: relative;
}

.gift-selection-widget__shirt-indicator {
  height: 5px;
  width: 60px;
  border-radius: 9999px;
  background: var(--gsw-primary);
  margin-top: 2px;
}

.gift-selection-widget__shirt-indicator[hidden] {
  display: none;
}

/* Selected shirt summary */
.gift-selection-widget__summary {
   font-weight: 600;
  margin-top: 0.5rem;
  text-align: left;
  color: var(--gsw-text-alt);
  font-size: 14px;
}

/* Primary CTA */
.gift-selection-widget__continue {
  width: 100%;
  height: 3.5rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gsw-text-alt);
  background: var(--gsw-success);
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s;
}

.gift-selection-widget__continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Gift selection summary (fieldset): tekst links, shirt-thumbnail rechts */
.gift-selection-summary {
  margin-bottom: 1.25em;
  padding: 1em 0;
  border-bottom: 1px solid #e5e5e5;
}

.gift-selection-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.gift-selection-summary .gift-summary-text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
}

.gift-selection-summary .gift-summary-donation,
.gift-selection-summary .gift-summary-shirt {
  margin: 0 0 0.5em 0;
  font-size: 1em;
  line-height: 1.4;
}

.gift-selection-summary .gift-summary-donation-value,
.gift-selection-summary .gift-summary-shirt-name,
.gift-selection-summary .gift-summary-shirt-size {
  font-weight: 600;
}

.gift-selection-summary .gift-summary-shirt-block.gift-summary-shirt-block--hidden,
.gift-selection-summary .gift-summary-shirt-image.gift-summary-shirt-image--hidden,
.gift-selection-summary .gift-summary-no-shirt-block.gift-summary-no-shirt-block--hidden {
  display: none !important;
}

.gift-selection-summary .gift-summary-shirt-maat.gift-summary-shirt-maat--hidden {
  display: none;
}

.gift-selection-summary .gift-summary-shirt-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 4px;
  box-sizing: border-box;
}

.gift-selection-summary .gift-summary-aanpassen {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #00004d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: opacity 0.2s;
  margin-bottom: 10px;
}

.gift-selection-summary .gift-summary-aanpassen-label {
  text-transform: lowercase;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.gift-selection-summary .gift-summary-no-shirt {
  margin: 0.5em 0 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #00004c;
  text-decoration: none;
  cursor: default;
}

.gift-selection-summary .gift-summary-no-shirt:hover {
  cursor: default;
  text-decoration: none;
}

.gift-selection-summary .gift-summary-no-shirt-block .gift-summary-aanpassen {
  margin-top: 1rem;
}

.gift-selection-summary .gift-summary-aanpassen:hover {
  opacity: 0.8;
}

.gift-selection-summary .gift-summary-aanpassen:focus {
  outline: 2px solid #00004d;
  outline-offset: 2px;
}

/* T-shirt color swatches (actual colors from Make) */
.gift-selection-widget__shirt-swatch--black { background: #000; }
.gift-selection-widget__shirt-swatch--blue { background: #2563eb; }
.gift-selection-widget__shirt-swatch--green { background: #15803d; }
.gift-selection-widget__shirt-swatch--orange { background: #ea580c; }
.gift-selection-widget__shirt-swatch--white {
  background: #fff;
  border: 2px solid #d1d5db;
}

.gift-selection-widget__shirt-swatch--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gift-selection-widget__shirt-swatch--default {
  background: #c4c4de;
}

/* Tooltip */
.gift-selection-widget__tooltip {
  position: absolute;
  z-index: 10;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  background: var(--gsw-tooltip-bg);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.gift-selection-widget__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--gsw-tooltip-bg);
}

/* Dialog overlay */
.gift-selection-widget__dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gift-selection-widget__dialog-overlay[hidden] {
  display: none;
}

.gift-selection-widget__dialog-overlay:not([hidden]) {
  overscroll-behavior: contain;
}

/* Achtergrond niet scrollen; alleen .gift-selection-widget__dialog scrollt (overflow-y: auto) */
html:has(.gift-selection-widget__dialog-overlay:not([hidden])),
body:has(.gift-selection-widget__dialog-overlay:not([hidden])) {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Site-header verbergen zolang shirt-maat dialoog open is */
body:has(.gift-selection-widget__dialog-overlay:not([hidden])) header {
  visibility: hidden;
}

.gift-selection-widget__dialog {
  position: relative;
  background: #fff;
  max-width: 425px;
  width: 100%;
  border-radius: 0;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.gift-selection-widget__dialog-title {
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--gsw-text);
  font-size: 18px;
}

/* Dialog t-shirt preview */
.gift-selection-widget__dialog-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.gift-selection-widget__dialog-swatch {
  flex: 1 1 0;
  min-width: 0;
  max-width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 1rem;
  border: none;
  box-shadow: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.gift-selection-widget__dialog-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: 9999px; /* rounded-full */
  color: #374151;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gift-selection-widget__dialog-nav:hover {
  background: #f3f4f6; /* gray-100 */
}

.gift-selection-widget__dialog-nav:active {
  border-color: transparent;
}

.gift-selection-widget__dialog-nav-icon {
  display: block;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

/* Dialog thumbnails (per-shirt images; arrows navigate between shirts) */
.gift-selection-widget__dialog-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.gift-selection-widget__dialog-thumb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-right: 6px;
}

.gift-selection-widget__dialog-thumb {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.gift-selection-widget__dialog-thumb:hover {
  opacity: 0.85;
}

.gift-selection-widget__dialog-thumb--active {
  opacity: 1;
  border-color: var(--gsw-primary, #8080ff);
}

.gift-selection-widget__dialog-thumb-indicator {
  height: 5px;
  width: 60px;
  max-width: 100%;
  border-radius: 9999px;
  background: var(--gsw-primary, #8080ff);
  flex-shrink: 0;
}

.gift-selection-widget__dialog-thumb-indicator[hidden] {
  visibility: hidden;
  height: 5px;
}

button.w-full.h-14.text-lg {
  font-size: 18px;
}

.gift-selection-widget__dialog-desc {
  font-size: 14px;
  color: #4b5563;
  text-align: center;
  margin-bottom: 1rem;
  padding: 16px;
}

.gift-selection-widget__dialog-desc p {
  margin: 0.5em 0;
}

.gift-selection-widget__dialog-desc p:first-child {
  margin-top: 0;
}

.gift-selection-widget__dialog-desc p:last-child {
  margin-bottom: 0;
}

/* Size grid */
.gift-selection-widget__sizes-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 16px;
}

.gift-selection-widget__sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gift-selection-widget__size-btn {
  padding: 0.75rem 0.5rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--gsw-text-alt);
  background: transparent;
  border: 1px solid var(--gsw-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.gift-selection-widget__size-btn--active {
  background: var(--gsw-primary);
}

.gift-selection-widget__size-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gift-selection-widget__confirm {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gsw-text-alt);
  background: var(--gsw-success);
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s;
}

.gift-selection-widget__confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Popup-knoppen: geen browser-default (zwarte) ring na klik; Tab = paarse :focus-visible */
.gift-selection-widget__dialog-nav,
.gift-selection-widget__dialog-thumb,
.gift-selection-widget__size-btn,
.gift-selection-widget__confirm,
.gift-selection-widget__dialog [data-gsw-dialog-close],
.gift-selection-widget__warning-close,
.gift-selection-widget__warning-ok {
  -webkit-tap-highlight-color: transparent;
}

.gift-selection-widget__dialog-nav::-moz-focus-inner,
.gift-selection-widget__dialog-thumb::-moz-focus-inner,
.gift-selection-widget__size-btn::-moz-focus-inner,
.gift-selection-widget__confirm::-moz-focus-inner,
.gift-selection-widget__dialog [data-gsw-dialog-close]::-moz-focus-inner,
.gift-selection-widget__warning-close::-moz-focus-inner,
.gift-selection-widget__warning-ok::-moz-focus-inner {
  border: 0;
}

.gift-selection-widget__dialog-nav:focus,
.gift-selection-widget__dialog-thumb:focus,
.gift-selection-widget__size-btn:focus,
.gift-selection-widget__confirm:focus,
.gift-selection-widget__dialog [data-gsw-dialog-close]:focus,
.gift-selection-widget__warning-close:focus,
.gift-selection-widget__warning-ok:focus {
  outline: none;
}

.gift-selection-widget__dialog-nav:focus-visible,
.gift-selection-widget__dialog-thumb:focus-visible,
.gift-selection-widget__size-btn:focus-visible,
.gift-selection-widget__confirm:focus-visible,
.gift-selection-widget__dialog [data-gsw-dialog-close]:focus-visible,
.gift-selection-widget__warning-close:focus-visible,
.gift-selection-widget__warning-ok:focus-visible {
  outline: 2px solid var(--gsw-primary, #8080ff);
  outline-offset: 2px;
}

.gift-selection-widget__soldout-msg {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

/* Warning dialog (Figma: title, Ok full-width, X top-right) */
.gift-selection-widget__warning-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  padding-top: 2.5rem;
  border-radius: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  text-align: center;
}

.gift-selection-widget__warning-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 0;
}

.gift-selection-widget__warning-close:hover {
  opacity: 1;
}

.gift-selection-widget__warning-header {
  text-align: center;
}

.gift-selection-widget__warning-title {
  font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
    color: #00004c;
    margin: 0;
    padding: 20px 12px;
}

.gift-selection-widget__warning-ok {
  width: fit-content;
    height: 3rem;
    margin-top: 1rem;
    font-size: 16px;
    padding: 20px;
    line-height: 1px;
    font-weight: 700;
    color: #00004c;
    background: var(--gsw-primary, #8080ff);
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
  }

.gift-selection-widget__warning-ok:hover {
  opacity: 0.92;
}

/* Warning overlay: hidden by default, flex when shown */
.gift-selection-widget__warning-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gift-selection-widget__warning-overlay:not([hidden]) {
  display: flex;
}

.text-lg
 {
    font-size: 18px;
}

.text-sm {
  font-size: 14px;
}


a.volgende.btn.short-form-btn.btn-primary.step_verstuur {
  width: calc(100% - 25px);
  float: left;
}

.radio-group input[type="radio"] + span.active, .radio-group input[type="checkbox"] + span.active {
  background-color: #8080ff !important;
}

.radio-group input[type="radio"]+span {
  border: 1px solid #8080ff;
}

aside div[class*="set_"] {
  border-bottom: none;
  padding-bottom: 5px;
}

.formtitle.inactive {
  height: 0 !important;
  padding: 0;
  margin: 0;
}

ul#tab-container-nav li:first-child {
  padding-right: 10px;
}

a.back.btn.short-form-btn.btn-primary {
  display: none;
}

.form-group.pull-right.short_buttons.last {
  margin-left: 10px;
}

button.btn.btn-primary.btn-block.short-last {
  width: calc(100% - 15px);
  padding: 14px 0 7px 0;
}
