/** Shopify CDN: Minification failed

Line 345:10 Expected identifier but found whitespace
Line 345:12 Unexpected "{"
Line 345:21 Expected ":"
Line 628:4 Unexpected "{"
Line 628:5 Expected identifier but found "%"
Line 629:25 Unexpected "{"
Line 629:26 Expected identifier but found "%"

**/
.image-loading-spinner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-navy-color);
  font-size: 1.2em;
}
.image-error {
  color: #b91c1c;
  text-align: center;
  padding: 20px;
}
.wizard-section {
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .wizard-hidden {
    display: none !important;
  }

  .wizard-section .personalised-showcase-section {
    border-radius: 8px;
    max-width: 45%;
  }

  .wizard-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;

    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;

    padding: 16px;
  }

  .wizard-tab {
    padding: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .wizard-mobile-header {
    display: none;
  }

  .wizard-mobile-header__item {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    position: relative;
  }

  .wizard-mobile-header__item svg {
    width: 24px;
    height: 24px;
  }

  .wizard-mobile-header__item h2 {
    text-align: center;
    font-size:24px;
    color: #000;
    flex-grow: 1;
  }

  .wizard-mobile-header__item.active {
    display: flex;
  }

  .wizard-tab svg {
    opacity: 0;
  }

  .wizard-tab.active, .wizard-tab.current {
    color: var(--main-navy-color);
  }

  .wizard-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    border-radius: 3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(197, 203, 224);
  }
  .wizard-tab.current::before {
    content: '';
    position: absolute;
    bottom: -2px;
    border-radius: 3px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--main-navy-color);
    z-index: 1;
  }
  .wizard-tab.active::after {
    background: var(--main-navy-color);
  }
  .wizard-tab.active svg {
    opacity: 1;
  }

  .wizard-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .wizard-content {
    display: none;

    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;

    margin-bottom: 40px;
  }

  .wizard-content[data-tab="preview"] {
    border: none;
    flex-direction: column;
    background: transparent;
  }


  .wizard-content.active {
    display: flex;
  }

  /* Child Info Form */
  .child-info-form {
    flex: 1;
    max-width: 60%;
    padding: 0 24px 24px;
    flex-grow: 1;
  }

  .upload-area, .preview-area {
    border: 1px dashed var(--main-navy-color);
    border-radius: 12px;
    padding: 0 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--color-cream);
    margin-bottom: 16px;
    position: relative;
  }

  .upload-area:hover {
    background: var(--color-cream-hover);
  }

  .upload-area.drag-over {
    border-color: var(--main-navy-color);
    background: var(--main-navy-faded);
    /* background: #f0e7ff; */
    transform: scale(1.02);
  }

  .upload-icon {
    margin: 16px auto 0;
  }

  .upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
  }

  .upload-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
  }

  .form-title {
    font-size: 30px;
    text-align: center;
    margin: 0;
    padding: 8px 16px;
  }

  .form-message {
    font-size: 12px;
    line-height: 1.2;
    color: #000;
    background: #fef08a;
    border: 1px dashed rgb(234 179 8);
    padding: 8px;
    border-radius: 8px;
    margin: 8px auto;
  }

  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .form-group {
    flex: 1;
  }

  .form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #000;
  }

  .form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgb(209 213 219);
    border-radius: 6px;
    font-size: 14px;
  }

  .form-input:focus {
    border-color: var(--main-navy-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--main-navy-color);
  }

  .preview-button {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none;
  }

  .preview-button--mobile {
    display: none;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: #fff;
    z-index: 100;
    border-top: 1px solid #e5e7eb;
  }


  .preview-button.enabled {
    opacity: 1;
    pointer-events: auto;
    background: var(--main-navy-color);
  }

  .preview-button:hover {
    opacity: 0.8;
    /* background: #a070e9; */
  }

  /* Personalised Stories Showcase */
  .personalised-showcase-section {
    flex: 1;
    border-radius: 12px;
    /* background: linear-gradient(317.92deg, rgba(197, 105, 255, 0.3) 2.92%, rgba(255, 255, 255, 0.3) 55.83%); */
    background: linear-gradient(317.92deg, rgba(10, 31, 68, 0.18) 2.92%, rgba(255, 255, 255, 0.3) 55.83%);
    border: 1px solid #e5e7eb;
    padding: 25px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .personalised-showcase-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .personalised-showcase-text {
    text-align: center;
  }

  .personalised-showcase-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
    font-size: 14px;
    color: var(--main-navy-color);
  }

  .personalised-showcase-title {
    font-family: var(--font-heading-family), sans-serif;
    /* font-family: 'Georgia', serif; */
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0;
    font-size: 32px;
    color: {{ section.settings.title_color }};
  }

  .personalised-showcase-title p {
    margin: 0;
  }

  .personalised-showcase-media {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .showcase-media-pair {
    display: none;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s;
  }

  .showcase-media-pair.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .showcase-profile-wrapper {
    flex-shrink: 0;
    position: relative;
    margin-top: auto;
    margin-bottom: 20px;
  }

  .showcase-profile {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
  }

  .showcase-arrow {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 144px;
    height: 144px;
    z-index: 2;
    pointer-events: none;
    color: rgb(var(--accent-color));
    transform: translateY(-100%);
  }

  .showcase-preview-wrapper {
    flex-shrink: 0;
    width: 330px;
    height: 330px;
  }

  .showcase-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
    transform: rotate(7deg) translateY(20px);
    background: #fff;
  }

  .image-input-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--main-navy-color);
    color: white;
    width: fit-content;
    margin: 0 auto;
    font-size: 14px;
  }

  .upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    margin-top: 16px;
    margin-bottom: 16px;
  }
  .upload-preview-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .upload-preview-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(180, 140, 242, 0.12);
  }
  .upload-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: #222;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(180, 140, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .upload-preview-success {
    margin-top: 24px;
    text-align: center;
  }
  .upload-preview-check {
    display: inline-block;
    color: var(--main-navy-color);
    font-size: 2rem;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
  }
  .upload-preview-text {
    font-size: 16px;
    color: #000;

  }

  .image-requirements-popup-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    gap: 10px;
    padding: 10px 0;
  }
  .image-requirements-popup-inner p {
    font-size: 14px;
    margin: 0
  }
  .image-requirements-popup svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  .image-requirements-popup-content-wrapper {
    display: none;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10px);
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
    z-index: 1000;
    width: 70%;
  }

  .image-requirements-popup-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    padding: 0px 14px 14px 14px;
    align-items: start;
    margin: 0 auto;
  }

  .image-requirements-popup--mobile {
    display: none;
    justify-content: center;
    align-items: center;
    border: 1px solid rgb(216 180 254);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    height: 40px;
  }

  .icon-default {
    color: #3f3f46;
    display: block;
  }
  .icon-success {
    color: green;
    display: none;
  }
  .icon-error {
    color: #b91c1c;
    display: none;
  }


  .image-requirements-popup-inner:hover + .image-requirements-popup-content-wrapper {
    display: block;
  }

  .image-requirements-popup-content .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .image-requirements-popup-content .info-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  .image-requirements-popup-content .info-label {
    font-size: 14px;
    text-align: left;
    color: #888;
    font-weight: 500;
    margin-bottom: 2px;
    text-wrap: nowrap;
  }

  .image-requirements-popup-content .info-value {
    font-size: 14px;
    text-align:left;
    color: #222;
    font-weight: 500;
    line-height: 1.2;
    text-wrap: nowrap;
  }

  .image-requirements-popup-content-header {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .image-requirements-popup-content-header svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0;
    color: #000 !important;
  }

  .image-requirements-popup-content-header span {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    font-weight: 400;
    margin-top: 1px;
  }

  .preview-area.error {
    {% comment %} border-color: #b91c1c;
    background: #fef2f2; {% endcomment %}
  }
  .upload-preview-error {
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
  }

  .upload-preview-error .image-requirements-popup-inner svg  {
    color: #b91c1c;
  }

  .floating-upload-error {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    border-left: 5px solid rgb(220 38 38);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    padding: 24px 32px 24px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 340px;
    max-width: 420px;
    font-size: 1.1em;
    color: #222;
    animation: fadeIn 0.3s;
  }

  .floating-upload-error .error-message {
    font-size: 16px;
    line-height: 1.4;
  }

  .floating-upload-error .error-icon {
  }
  .floating-upload-error .close-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 1.5em;
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .floating-upload-error .close-btn:hover {
    opacity: 1;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .input-with-counter {
    position: relative;
    display: flex;
    align-items: center;
  }
  .input-counter {
    position: absolute;
    right: 12px;
    color: #a3a3a3;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .mobile-image-requirements-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    height: 100vh;
  }
  .mobile-image-requirements-modal__overlay {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
  }
  .mobile-image-requirements-modal__content {
    position: relative;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    width: 100vw;
    margin: 0 auto;
    padding: 32px 48px 18px 48px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-height: 90vh;
    overflow-y: auto;
  }

  .mobile-image-requirements-modal__content h2 {
    font-family: var(--font-body-family), sans-serif !important;
    /* font-family: 'Atak', sans-serif !important; */
    /* font-family: 'Figtree', sans-serif !important; */
    font-size: 18px;
    text-align: center;
    margin: 0 auto 16px;
  }
  .mobile-image-requirements-modal__close {
    position: absolute;
    right: 18px;
    top: 14px;
    background: none;
    border: none;
    font-size: 2em;
    color: #222;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
  }
  .mobile-image-requirements-modal__tips {
    margin-bottom: 18px;
  }

  .mobile-image-requirements-modal__info {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
  }

  .mobile-image-requirements-modal__info-header {
    padding: 8px 32px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .mobile-image-requirements-modal__info-header svg {
    width: 18px;
    height: 18px;
  }
  .mobile-image-requirements-modal__info-header p {
    max-width: 70%;
  }
  .mobile-tip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .mobile-tip {
    flex: 1;
    min-width: 0;
  }
  .mobile-tip-img {
    background: #e5e7eb;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
  }

  .mobile-tip-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .mobile-tip-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
  }

  .mobile-tip-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  @media (max-width: 600px) {
    .mobile-image-requirements-modal__content {
      padding-left: 32px;
      padding-right: 32px;
    }
    .mobile-tip-img {
      width: 70px;
      height: 70px;
    }
  }

  
  .upload-image-tips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 16px 0;
  }

  .upload-image-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 0 5px;
  }

  .upload-image-tip:not(:last-child) {
    border-right: 1px solid #e5e7eb;
  } 

  .upload-tip-description {
    font-size: 12px;
    margin-top: 8px;
    color: #2d2d2d;
  }

  .preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .preview-product-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
  }

  .preview-product-details {
    font-size: 12px;
  }

  .preview-product-details span {
    font-weight: 500;
  }

  .preview-change-btn-container {
    position: relative;
  }

  .preview-change-btn {
    padding: 8px 18px;
    border-radius: 4px;
    height: 40px;
    background: #0a1f449a;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;

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

    /* font-family: 'Figtree', sans-serif; */
    font-family: var(--font-body-family), sans-serif;
  }

  .preview-change-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
  }
  .preview-change-btn.enabled {
    background: #0a1f44;
  }

  .preview-change-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 180px;
    z-index: 10;
  }

  .preview-change-menu-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
  }

  .child-info-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 10000;
    align-items: center;
    justify-content: center;
  }

  .child-info-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 32px 24px 32px;
    min-width: 320px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    position: relative;
  }

  .child-info-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .child-info-modal-field {
    margin-bottom: 18px;
  }

  .child-info-modal-label {
    font-size: 14px;
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .child-info-modal-input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  .child-info-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
  }

  .child-info-modal-message {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #fb923c;
    font-size: 14px;
  }

  .child-info-modal-message p {
    margin: 0;
  }

  .child-info-modal-message svg {
    height: 16px;
    width: 16px;
  }

  .child-info-modal-cancel, .child-info-modal-confirm {
    padding: 8px 18px;
    border-radius: 6px;
    height: 40px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: 500;
    cursor: pointer;
  }

  .child-info-modal-cancel {
    background: rgb(10 31 68 / 0.2);
    color: rgb(10 31 68);
  }

  .child-info-modal-confirm {
    background: var(--main-navy-color);
    /* background: #a855f7; */
    color: #fff;
  }

  .child-info-modal-confirm:disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  .preview-main-content {
    padding-top: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #a855f7;
  }

  #child-info-modal-form input {
    box-shadow: none;
    outline: none;
  }

  .upload-preview-check svg {
    width: 20px;
    height: 20px;
  }

  
  @media screen and (max-width: 1200px) {
    .image-requirements-popup-content-wrapper {
      width: 100%;
    }
    .image-requirements-popup-content {
      width: 100%;
      gap: 18px;
    }
    .mobile-image-requirements-modal__info .image-requirements-popup-content {
      padding-top: 16px;
    }
  }
  @media screen and (max-width: 900px) {
    .wizard-content.active {
      flex-direction: column;
    }

    .child-info-form {
      width: 100%;
      max-width: 100%;
    }

    .personalised-showcase-section {
      display: none;
    }
  }


  @media screen and (max-width: 768px) {
    .wizard-tabs {
      display: none;
    }
    .wizard-mobile-header {
      display: flex;
    }

    .form-title {
      display: none;
    }

    .wizard-content {
      border: none;
      background: transparent;
    }

    .child-info-modal-content {
      width: 96%;
      padding-left: 24px;
      padding-right: 24px;
    }

    .child-info-form {
      padding-left: 0;
      padding-right: 0;

      margin-bottom: 40px;
    }

    .preview-button--desktop {
      display: none;
    }

    .preview-button--mobile {
      display: block;
    }

    .image-requirements-popup--desktop {
    display: none;}

    .image-requirements-popup--mobile {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px;
      border: 1px solid rgb(216 180 254);
      border-radius: 10px;
      margin-bottom: 10px;
      width: fit-content;
      margin: 10px auto 0;
      font-size: 14px;
    }

    .image-requirements-popup--mobile p {
      margin: 0;
    }

    .preview-area {
      background: var(--main-navy-faded, rgba(10, 31, 68, 0.08));
    }

    .floating-upload-error {
      right: 20px;
    }

    .preview-header {
      display: none;
    }
  }

  .input-error {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 2px #fca5a5 !important;
  }



  /* personalisation tab */
  
  .preview-main-content-inner {
    display: flex;
  }

  .preview-main-content-inner-left {
    width: 12%;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .preview-thumb-wrapper:empty {
    border: none;
  }

  .preview-thumb-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 4px;

    border: 1px solid #d3d4d5;
  }

  .preview-thumb-wrapper[data-thumb-type="cover"] {
    flex-direction: column;
    border: 2px solid transparent;
    color: black; 
    font-size: 12px;
  }

  .preview-thumb-wrapper.active[data-thumb-type="cover"] {
    border-color: var(--main-navy-color);
  }

  .preview-main-content-inner-right {
    flex-grow: 1;
    width: 88%;
  }

  .preview-thumb {
    width: 80%;
    margin: 0 auto;
    height: auto;
    object-fit: cover;
    filter: blur(6px);
    transition: filter 0.3s;

    font-size: 12px;
    color: black;
  }

  .preview-thumb.unblurred {
    filter: none;
  }

  .preview-main-content-inner-previews[data-preview-type="cover"] {
    position: relative;
    max-width: 50%;
    margin: 0 auto 20px;
  }

  /* Page preview wrappers: 2 per row on desktop, 1 per row on mobile */
  .page-preview-img-wrapper {
    display: inline-block;
    width: 48%;
    margin-bottom: 20px;
    vertical-align: top;
    position: relative;
    overflow: hidden;
    box-shadow: 6px 8px 10px rgba(0, 0, 0, 0.4);
  }

  .page-preview-img-wrapper.preview-pages-1-column {
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  @media (max-width: 768px) {
    .page-preview-img-wrapper {
      display: block;
      width: 100%;
      margin-bottom: 20px;
    }

    .page-preview-img-wrapper.preview-pages-1-column {
      width: 100%;
    }
  }

  .preview-main-content-inner-previews .preview-image {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: filter 0.3s;
  }

  .preview-main-content-inner-previews .preview-image.unblurred {
    filter: none;
  }

  .preview-main-content-inner-previews .preview-image.cover {
    display: none;
    box-shadow: 6px 8px 10px rgba(0, 0, 0, 0.4);
    /* box-shadow: 0 12px 48px 0 rgba(30, 30, 40, 0.32), 0 4px 16px 0 rgba(30, 30, 40, 0.18); */
  }

  .preview-main-content-inner-previews .preview-image.cover.active {
    display: block;
  }

  .preview-regenerate-btn-inner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .preview-regenerate-options {
    position: absolute;
    top: calc(50% + 42px);
    right: 10px;
    background: #5f5f5f;
    border-radius: 6px;
    padding: 10px 0;
    
    width: fit-content;
    display: none;

    flex-direction: column;

  }

  .preview-regenerate-option {
    color: white;
    font-size: 14px;
    display:flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;

    padding: 6px 10px;
  }

  .preview-regenerate-option:hover {
    background: #6d6d6d;
  }

  .preview-regenerate-option svg {
    height: 15px;
  }

  @media screen and (max-width: 768px) {
    .preview-main-content-inner {
      flex-direction: column;
    }

    .preview-main-content-inner-left {
        display: none;
    }

    .preview-main-content-inner-right {
      width: 100%;
    }
  }
  
  .blur-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(20px);
    z-index: 2;
    flex-direction: column;
  }
  .blur-overlay-content {
    text-align: center;
    color: #222;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    max-width: 60%;
  }
  .blur-overlay-icon {
    height: 42px;
    display: block;
  }
  .progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    margin: 18px auto 10px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .progress-bar-fill {
    height: 100%;
    background: #5a5a5a;
    width: 1000%;
    transition: width 0.5s linear;
    border-radius: 12px;
  }
  .loader-text {
    font-size: 14px;
    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .loader-timer {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }
  .preview-thumb.cover.blurred {
    filter: blur(6px);
  }
  .preview-thumb.cover.unblurred {
    filter: none;
  }
  
  
  @media screen and (max-width: 768px) {
    .preview-thumbs {
      display: none;
    }
    .preview-main-content-inner-previews[data-preview-type="cover"] {
      max-width: 100%;
    }
  }
  
  .page-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%;
    color: black;
    font-size: 12px;
    min-height: 50px
  }

  .page-thumb {
    width: 100%;
    filter: blur(6px);
    border-radius: 6px;
    display: block;
    vertical-align: top;
  }
  
  .blur-overlay-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid black;
    border-radius: 50%;
    margin-bottom: 12px;
    aspect-ratio: 1/1;
  }
  
  /* Sticky Continue Preview Button - Base */
  .sticky-continue-preview-button {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100vw;
    z-index: 1000;
    display: none;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
  }

  .sticky-continue-preview-button-inner {
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 32px;
    gap: 8px;

    width: 100%;
  }

  /* Continue Button - Desktop */
  #continue-preview-btn {
    width: fit-content;
    min-width: 120px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    margin-left: auto;
  }

  /* Breadcrumbs hidden on desktop */
  .sticky-continue-preview-button-breadcrumbs {
    display: none;
  }

  /* --- MOBILE STYLES --- */
  @media (max-width: 900px) {
    .sticky-continue-preview-button {
      background: #fff;
      /* padding: 12px 8px 24px 8px; */
      box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
      backdrop-filter: none;
      border-top: 1px solid #e5e7eb;
      bottom: 0;
    }

    .sticky-continue-preview-button-inner {
      align-items: stretch;
    }
    #continue-preview-btn {
      width: 100%;
      min-width: 0;
      margin-left: 0;
      font-size: 14px;
      padding: 0 0;
      border-radius: 4px;
    }
    .sticky-continue-preview-button-breadcrumbs {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 8px;
    }
    .sticky-continue-preview-button-breadcrumb {
      font-size: 14px;
      color: #888;
      padding: 2px 8px;
      text-decoration: underline !important;
    }

    .sticky-continue-preview-button-breadcrumb:not(:last-child) {
      padding-right: 20px;
      position: relative;
    }
    .sticky-continue-preview-button-breadcrumb:not(:last-child):after {
      content: '>';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      color: #888;
    }

    .sticky-continue-preview-button-breadcrumb.active {
      color: black;
      font-weight: 600;
      text-decoration: underline;
    }
  }
  
  
  
  
  /* Gender select styled like the Language select in the screenshot */
  #child-gender.styled-variant-select {
    width: 100%;
    height: 40px;
    border: 1px solid rgb(209 213 219);
    font-weight: 400;
    color: #222;
    appearance: none;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.04);
    box-sizing: border-box;
  }
  .variant-select-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
  .variant-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #b0b0b0;
  }
  
  
  
  .wizard-previews {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  
  .wizard-preview-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(168, 85, 247, 0.07);
    padding-right: 16px;
    height: 96px;
  }

  .wizard-preview-card:last-child {
    margin-bottom: 16px;
  }
  
  .wizard-preview-img {
    width: auto;
    height: 100%;
    aspect-ratio: 1/1;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    object-fit: cover;
    background: #e5e5e5;
    box-shadow: 0 1px 4px 0 rgba(168, 85, 247, 0.08);
  }
  
  .wizard-preview-title {
    font-size: 20px;
    font-weight: 500;
    width: fit-content;
    color: #222;
    margin-left: 12px;
    line-height: 1.2;
  }

  .wizard-preview-meta {
    flex-grow: 1;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .wizard-preview-status-label {
    background: #FEF9C3;
    color: #9C6E31;
    font-size: 12px;
    border-radius: 6px;
    padding: 4px;

    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .wizard-preview-status {
    padding: 0;
    margin-right: 18px;
    display: flex;
    align-items: center;
    font-weight: 500;
    flex: 1;
  }
  
  .wizard-preview-continue-btn {
    background: var(--main-navy-color);
    color: #fff;
    height: 40px;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .wizard-preview-continue-btn:hover {
    background: #0A1F44;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
  }

  .cover-error-message {
    color: black;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
  }

  @media screen and (max-width: 768px) {
    .wizard-preview-title{
      font-size: 16px;
    }

    .wizard-preview-status-label {
      background: transparent;
    }
  }

  .preview-main-content-inner.error {
    justify-content: center;
    color: black;
  }


  .child-info-modal .styled-variant-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: none;
    background-color: transparent;
    padding: 8px;
  }
  
  .preview-main-content-inner-previews {
    position: relative;
  }

  .book-spine-highlight {
    position: absolute;
    top: 0;
    left: 2px;
    height: 100%;
    width: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0.0) 60%);
    filter: blur(2.5px);
    z-index: 2;
  }

  .book-spine-shadow {
    position: absolute;
    top: 0;
    left: 16px;
    height: 100%;
    width: 3px;
    background: linear-gradient(90deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 100%);
    z-index: 1;
  }

  .book-spine-shadow-strong {
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.0) 100%);
    filter: blur(2.5px);
    z-index: 1;
  }
 
  .floating-success-popup {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    border-left: 5px solid #22c55e;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    padding: 24px 32px 24px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 340px;
    max-width: 420px;
    font-size: 1.1em;
    color: #222;
    animation: fadeIn 0.3s;
  }
  .floating-success-popup .success-message {
    font-size: 16px;
    line-height: 1.4;
  }
  .floating-success-popup .success-icon {
    display: flex;
    align-items: center;
  }
  .floating-success-popup .close-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 1.5em;
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .floating-success-popup .close-btn:hover {
    opacity: 1;
  }
  
  @media screen and (max-width: 540px) {
    .floating-success-popup, .floating-error-popup {
      right: 16px;
      bottom: 16px;
    }
    }
  