.aqvs-entry {
    width: min(100%, 640px);
    margin: 40px auto 64px;
    padding: clamp(20px, 4vw, 36px);
    box-sizing: border-box;
    border: 1px solid #dfe4e9;
    border-radius: 14px;
    background: #fff;
    color: #29333d;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   SUGGEST AN AQUAVIT — PAGE HEADER
   ========================================================= */

.aqvs-entry__page-header {
    margin: 0 0 28px;
    padding: 0 2px;
}


.aqvs-entry__page-header .aqvs-entry__heading {
    margin: 0 0 8px;

    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 500;

    color: #1f2933;
}


.aqvs-entry__page-intro {
    max-width: 620px;
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: #5d6b78;
}

/* =========================================================
   SUBMISSION FLOW NAVIGATION
   ========================================================= */

.aqvs-flow-nav {
    display: flex;
    align-items: center;

    width: 100%;
    margin: 0 0 22px;

    overflow-x: auto;
    scrollbar-width: thin;
}


.aqvs-flow-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    flex: 0 0 auto;

    min-height: 36px;
    padding: 6px 10px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #9aa5af;

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    cursor: default;

    transition:
        background-color .15s ease,
        color .15s ease;
}


.aqvs-flow-nav__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    border: 1px solid currentColor;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}


.aqvs-flow-nav__label {
    line-height: 1.2;
}


.aqvs-flow-nav__line {
    flex: 1 1 28px;

    min-width: 14px;
    height: 1px;

    background: #d7dee5;
}


/*
 * AVAILABLE / COMPLETED
 */
.aqvs-flow-nav__item.is-available {
    color: #344c61;
    cursor: pointer;
}


.aqvs-flow-nav__item.is-available:hover,
.aqvs-flow-nav__item.is-available:focus-visible {
    background: #edf3f8;
    outline: 0;
}


/*
 * CURRENT STEP
 */
.aqvs-flow-nav__item.is-active {
    background: #344c61;
    color: #fff;

    cursor: default;
}


.aqvs-flow-nav__item.is-active
.aqvs-flow-nav__number {
    border-color: #fff;
}


/*
 * LOCKED STEP
 */
.aqvs-flow-nav__item:disabled {
    opacity: 1;
    color: #a7b0b9;

    cursor: default;
}


/*
 * HIDDEN CONDITIONAL STEP
 */
.aqvs-flow-nav__item[hidden],
.aqvs-flow-nav__line[hidden] {
    display: none !important;
}


@media (max-width: 700px) {

    .aqvs-flow-nav {
        gap: 2px;
        padding-bottom: 4px;
    }


    .aqvs-flow-nav__line {
        min-width: 10px;
    }


    .aqvs-flow-nav__item {
        padding: 6px 8px;
    }


    .aqvs-flow-nav__label {
        font-size: 12px;
    }
}


/* =========================================================
   STEP 1 — CATALOG CHECK CARD
   ========================================================= */

.aqvs-entry__step-card {
    padding: clamp(20px, 3vw, 28px);

    border: 1px solid #dce3e9;
    border-radius: 14px;

    background: #fbfcfd;

    box-shadow:
        0 8px 24px
        rgba(31, 41, 51, .045);
}


.aqvs-entry__step-card .aqvs-entry__step {
    margin-bottom: 10px;

    text-align: right;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;

    color: #62798c;
}


.aqvs-entry__step-heading {
    margin: 8px 0 10px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;

    color: #29333d;
}


.aqvs-entry__step-intro {
    max-width: 680px;
    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.5;

    color: #61717d;
}

.aqvs-entry__step {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #62798c;
    text-align: right;
}

.aqvs-entry__heading {
    margin: 8px 0 12px;
    font-size: clamp(26px, 4vw, 30px);
    line-height: 1.25;
    font-weight: 500;
}

.aqvs-entry__intro {
    max-width: 560px;
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.6;
}

.aqvs-entry__search label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.aqvs-entry__search-row {
    display: flex;
    gap: 10px;
}

.aqvs-entry__search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 46px;

    padding: 10px 14px;

    box-sizing: border-box;

    border: 1px solid #bcc8d3;
    border-radius: 9px;

    background: #fff;
    color: inherit;

    font: inherit;
    font-size: 14px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.aqvs-entry__search input[type="search"]:focus {
    border-color: #6f8da6;

    outline: 0;

    box-shadow:
        0 0 0 3px
        rgba(111, 141, 166, .13);
}

.aqvs-entry__search button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 9px 18px;
    border: 0;
    border-radius: 8px;
    background: #344c61;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.aqvs-entry__search button:hover,
.aqvs-entry__search button:focus-visible {
    background: #243a4c;
}

.aqvs-entry__notice,
.aqvs-entry__results,
.aqvs-entry__next {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 11px;
    background: #f5f7f9;
}

.aqvs-entry__results h2 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
}

.aqvs-entry__results p,
.aqvs-entry__next p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.aqvs-entry__matches {
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.aqvs-entry__matches li + li {
    margin-top: 8px;
}

.aqvs-entry__matches a {
    display: grid;
    gap: 3px;
    padding: 13px 15px;
    border: 1px solid #dce3e9;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.aqvs-entry__matches a:hover,
.aqvs-entry__matches a:focus-visible {
    border-color: #849eb4;
    box-shadow: 0 0 0 2px #e6eef5;
}

.aqvs-entry__match-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.aqvs-entry__match-producer {
    font-size: 14px;
    line-height: 1.5;
    color: #61717d;
}

.aqvs-entry__match-reason {
    font-size: 13px;
    line-height: 1.45;
    color: #61717d;
}

.aqvs-entry__next {
    border: 1px dashed #cad3db;
    background: #fafbfc;
}

.aqvs-entry__next strong {
    display: block;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .aqvs-entry {
        margin-top: 20px;
    }

    .aqvs-entry__search-row {
        flex-direction: column;
    }

    .aqvs-entry__search button {
        width: 100%;
    }
}

/* Show more catalog matches */

.aqvs-entry__result-count {
    margin: 16px 0 12px;
    font-size: 13px;
    color: #667085;
}

.aqvs-entry__show-more {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(100%, 280px);
    min-height: 42px;
    margin: 18px auto 0;
    padding: 10px 18px;

    box-sizing: border-box;
    border: 1px solid #d7dce3;
    border-radius: 999px;

    background: #fff;
    color: #303846;

    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    transition: background-color .15s ease;
}

.aqvs-entry__show-more:hover,
.aqvs-entry__show-more:focus-visible {
    background: #f3f4f6;
    text-decoration: none;
}

@media (max-width: 768px) {
    .aqvs-entry__show-more {
        width: 100%;
    }
}

/* Producer details in duplicate-search results */

.aqvs-entry__producer-label {
    font-weight: 600;
    color: #475467;
    margin-right: 5px;
}

.aqvs-entry__producer-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    vertical-align: -3px;
    margin: 0 4px 0 1px;
    border-radius: 2px;
}

.aqvs-entry__producer-separator {
    margin-right: 4px;
}

/* Search phrase highlighting */

.aqvs-entry__matches mark.aqvs-entry__highlight {
    display: inline;

    padding: 1px 2px;
    border-radius: 3px;

    background: #fff0bd;
    color: #273449;

    font-weight: 700;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Similar search results */

.aqvs-entry__similar-results {
    margin-top: 20px;
    scroll-margin-top: 24px;
}

.aqvs-entry__similar-results
.aqvs-entry__matches mark.aqvs-entry__similar-highlight {
    display: inline;

    padding: 1px 2px;
    border-radius: 3px;

    background: #dcecff;
    color: #24476b;

    font-weight: 700;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.aqvs-entry__similar-results .aqvs-entry__match-reason {
    display: block;
}

/* Blue highlighting in both result groups */

.aqvs-entry__matches mark.aqvs-entry__similar-highlight {
    display: inline;

    padding: 1px 2px;
    border-radius: 3px;

    background: #dcecff;
    color: #24476b;
    font-weight: 700;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* =========================================================
   SEARCH RESULTS — OPTIONAL BOTTLE THUMBNAIL
   ========================================================= */

.aqvs-entry__matches > li.aqvs-entry__match--has-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
    gap: 8px;

    padding: 9px 10px;

    border: 1px solid #dce3e9;
    border-radius: 10px;
    background: #fff;

    box-sizing: border-box;
}

.aqvs-entry__matches
> li.aqvs-entry__match--has-photo
> a {
    min-width: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    align-content: center;
}

.aqvs-entry__matches
> li.aqvs-entry__match--has-photo
> a:hover,
.aqvs-entry__matches
> li.aqvs-entry__match--has-photo
> a:focus-visible {
    border: 0;
    box-shadow: none;
}

.aqvs-entry__photo-trigger {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 80px;
    padding: 2px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;
    cursor: zoom-in;
}

.aqvs-entry__photo-trigger img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.aqvs-entry__photo-trigger:hover,
.aqvs-entry__photo-trigger:focus-visible {
    border-color: #aebdca;
    background: #f5f7fa;
    outline: none;
}

/* Highlight the card selected when closing the lightbox. */

.aqvs-entry__matches > li.aqvs-entry__match--focus {
    background: #fff7e5;
    border-color: #d5aa63;
    box-shadow: 0 0 0 2px rgba(213, 170, 99, .2);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


/* Submission flow: continue after catalog search */

.aqvs-entry__next[hidden],
.aqvs-entry__editor[hidden] {
    display: none !important;
}

.aqvs-entry__confirm {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.aqvs-entry__confirm input {
    flex: 0 0 auto;
    margin: 4px 0 0;
}

.aqvs-entry__turnstile {
    margin: 18px 0;
}

.aqvs-entry .aqvs-entry__flow-button {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #344c61;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.aqvs-entry .aqvs-entry__flow-button:hover:not(:disabled) {
    background: #243a4c;
}

.aqvs-entry .aqvs-entry__flow-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.aqvs-entry__flow-status {
    margin-top: 12px !important;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.aqvs-entry__flow-error {
    color: #a52834;
}

.aqvs-entry__editor {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dfe4e9;
    border-radius: 12px;
    background: #fafbfc;
    scroll-margin-top: 24px;
}

.aqvs-entry__editor h2 {
    margin: 8px 0 10px;
    font-size: 24px;
    font-weight: 500;
}

.aqvs-entry__editor > p {
    margin: 0 0 18px;
}

.aqvs-entry__editor label:not(.aqvs-entry__confirm) {
    display: block;
    margin: 16px 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.aqvs-entry__editor input[type="text"],
.aqvs-entry__editor textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    color: #29333d;
    font: inherit;
    font-size: 14px;
}

.aqvs-entry__editor textarea {
    min-height: 120px;
    resize: vertical;
}

.aqvs-entry__editor #aqvs-edit-link {
    font-size: 12px;
}

.aqvs-entry__editor .aqvs-entry__flow-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #61717d;
}

/* Step 1 / Step 2: display only the active step. */

.aqvs-entry #aqvs-step-one[hidden],
.aqvs-entry #aqvs-existing-draft[hidden],
.aqvs-entry #aqvs-draft-editor[hidden] {
    display: none !important;
}

.aqvs-entry__back-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    width: auto;
    min-height: 40px;
    margin: 20px 0 0;
    padding: 8px 13px;

    border: 1px solid #c5cfda;
    border-radius: 8px;

    background: #fff;
    color: #344c61;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.aqvs-entry__back-button:hover:not(:disabled),
.aqvs-entry__back-button:focus-visible {
    background: #edf3f8;
}

.aqvs-entry__back-button:disabled {
    opacity: .55;
    cursor: wait;
}

/* Navigation between submission steps */

.aqvs-entry #aqvs-back-button,
.aqvs-entry #aqvs-continue-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 13px;

    box-sizing: border-box;
    border: 1px solid #c5cfda;
    border-radius: 8px;

    background: #fff;
    color: #344c61;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

/* Back — left */

.aqvs-entry #aqvs-back-button {
    margin: 20px auto 0 0;
}

/* Continue — right */

.aqvs-entry #aqvs-continue-button {
    margin: 16px 0 0 auto;
}

.aqvs-entry #aqvs-back-button:hover:not(:disabled),
.aqvs-entry #aqvs-back-button:focus-visible,
.aqvs-entry #aqvs-continue-button:hover:not(:disabled),
.aqvs-entry #aqvs-continue-button:focus-visible {
    background: #edf3f8;
    color: #344c61;
}


/* Step 2 — grouped Aquavit and producer fields */

.aqvs-entry__editor .aqvs-entry__field-group {
    min-width: 0;
    margin: 0 0 20px;
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid #dfe4e9;
}

.aqvs-entry__editor .aqvs-entry__field-group legend {
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #29333d;
}

.aqvs-entry__two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
}

.aqvs-entry__two-cols > div {
    min-width: 0;
}

.aqvs-entry__editor select,
.aqvs-entry__editor input[type="url"] {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    box-sizing: border-box;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    color: #29333d;
    font: inherit;
    font-size: 14px;
}

.aqvs-entry__choice-heading {
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.aqvs-entry__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
}

.aqvs-entry__editor .aqvs-entry__choices label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.aqvs-entry__choices input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
}

.aqvs-entry__editor .aqvs-entry__field-hint {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #61717d;
}

@media (max-width: 460px) {
    .aqvs-entry__two-cols,
    .aqvs-entry__choices {
        grid-template-columns: 1fr;
    }
}

/* Step 2 — ABV, Volume and Colour in one row */

.aqvs-entry__three-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 10px;
}

.aqvs-entry__three-cols > div {
    min-width: 0;
}

@media (max-width: 600px) {
    .aqvs-entry__three-cols {
        grid-template-columns: 1fr;
    }
}

/* Explicit maturation choice */

.aqvs-entry__editor .aqvs-entry__age-options {
    display: grid;
    gap: 8px;
    margin-top: 9px;
}

.aqvs-entry__editor .aqvs-entry__age-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 11px 12px;

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

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.aqvs-entry__editor .aqvs-entry__age-options label:has(input:checked) {
    border-color: #7595b1;
    background: #edf4fa;
}

.aqvs-entry__editor .aqvs-entry__age-options input {
    margin: 0;
}

.aqvs-entry__editor #aqvs-maturation-error:empty {
    display: none;
}

/* =========================================================
   REQUIRED FIELD ERROR — AGEING STATUS
   ========================================================= */

.aqvs-entry__editor
#aqvs-maturation-state.aqvs-entry__required-error {
    border-color: #d63638;
    background: #fffafa;
}


.aqvs-entry__editor
#aqvs-maturation-state.aqvs-entry__required-error:focus {
    outline: 2px solid rgba(214, 54, 56, .22);
    outline-offset: 2px;
}


.aqvs-entry__editor
#aqvs-maturation-error {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #b42318;
}


.aqvs-entry__editor
#aqvs-maturation-error:empty {
    display: none;
}

/* =========================================================
   REQUIRED FIELDS
   ========================================================= */

.aqvs-entry .aqvs-required-star {
    display: inline-block;
    margin-left: 2px;

    color: #c62828;

    font-weight: 800;
    line-height: 1;
}


/*
 * Shared invalid-field appearance.
 */
.aqvs-entry__editor
.aqvs-entry__required-error {
    border-color: #d63638 !important;
    background: #fffafa;
}


.aqvs-entry__editor
.aqvs-entry__required-error:focus {
    outline: 2px solid rgba(214, 54, 56, .22);
    outline-offset: 2px;
}


/*
 * Aquavit name validation message.
 */
.aqvs-entry__editor
#aqvs-title-error {
    margin: 6px 0 0;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    color: #b42318;
}


.aqvs-entry__editor
#aqvs-title-error[hidden] {
    display: none !important;
}


/*
 * Ageing status validation message.
 */
.aqvs-entry__editor
#aqvs-maturation-error {
    margin: 6px 0 0;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    color: #b42318;
}


.aqvs-entry__editor
#aqvs-maturation-error:empty {
    display: none;
}

.aqvs-entry #aqvs-maturation-step[hidden],
.aqvs-entry #aqvs-photos-step[hidden] {
    display: none !important;
}

/* Step 2 — bottom navigation */

.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-back-button,
.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-next-button {
    width: auto;
    max-width: 100%;
    margin: 0;
}

.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-next-button {
    margin-left: auto;
    padding: 9px 14px;
}

@media (max-width: 460px) {
    .aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-back-button,
    .aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-next-button {
        width: 100%;
    }
}

/* Navigation buttons — consistent height and direction colours */

/* Step 2: Back and Continue must have the same height. */
.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-back-button,
.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav #aqvs-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    height: 38px;
    min-height: 38px;
    width: auto;

    padding: 0 12px;
    margin-top: 0;
    margin-bottom: 0;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* Step 1: Continue editing is a forward action. */
.aqvs-entry #aqvs-step-one #aqvs-continue-button {
    background: #344c61;
    border-color: #344c61;
    color: #fff;
}

.aqvs-entry #aqvs-step-one #aqvs-continue-button:hover:not(:disabled),
.aqvs-entry #aqvs-step-one #aqvs-continue-button:focus-visible {
    background: #293e50;
    border-color: #293e50;
    color: #fff;
}

/* Aquavit submissions — Step 3: Maturation */
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-stage {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #dce4ed;
    border-radius: 10px;
    background: #fbfcfe;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-stage__head,
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-prior__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-stage__head h3 {
    margin: 0;
    font-size: 18px;
}
.aqvs-entry #aqvs-maturation-step [data-remove-stage],
.aqvs-entry #aqvs-maturation-step [data-remove-prior] {
    width: auto;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: #9f3838;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-field {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-field input,
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-field select,
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 9px 10px;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    color: #29333d;
    font: inherit;
    font-size: 14px;
}
.aqvs-entry #aqvs-maturation-step [hidden] {
    display: none !important;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-priors {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e4e9ef;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-prior {
    padding: 12px;
    margin: 0 0 12px;
    border: 1px solid #e0e7ee;
    border-radius: 8px;
    background: #fff;
}
.aqvs-entry #aqvs-maturation-step .aqvs-maturation-prior .aqvs-maturation-field {
    margin-top: 8px;
}
.aqvs-entry #aqvs-maturation-step #aqvs-add-maturation-stage,
.aqvs-entry #aqvs-maturation-step [data-add-prior] {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0;
}
.aqvs-entry #aqvs-maturation-step #aqvs-maturation-save {
    margin-top: 20px;
}
.aqvs-entry #aqvs-maturation-step .aqvs-entry__bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.aqvs-entry #aqvs-maturation-step .aqvs-entry__bottom-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    width: auto;
    max-width: 100%;
    padding: 0 12px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}
.aqvs-entry #aqvs-maturation-step #aqvs-maturation-next {
    margin-left: auto;
    background: #344c61;
    border-color: #344c61;
    color: #fff;
}
.aqvs-entry #aqvs-maturation-step #aqvs-maturation-next:hover:not(:disabled),
.aqvs-entry #aqvs-maturation-step #aqvs-maturation-next:focus-visible {
    background: #293e50;
    border-color: #293e50;
    color: #fff;
}
@media (max-width: 460px) {
    .aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid {
        grid-template-columns: 1fr;
    }
    .aqvs-entry #aqvs-maturation-step .aqvs-entry__bottom-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .aqvs-entry #aqvs-maturation-step .aqvs-entry__bottom-nav button {
        width: 100%;
    }
}

/* Maturation — Total age matches the other inputs */

.aqvs-entry #aqvs-maturation-step #aqvs-total-age-months {
    display: block;
    width: 100%;
    max-width: 200px;
    min-height: 42px;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 9px 12px;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    color: #29333d;
    font: inherit;
    font-size: 14px;
}


/* Aquavit Submissions — private photo upload */

.aqvs-entry .aqvs-photo-card {
    position: relative;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    background: #fff;
}

.aqvs-entry .aqvs-photo-card legend {
    padding: 0 8px 0 0;
    font-size: 16px;
    font-weight: 700;
}

.aqvs-photo-card__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e0f6e9;
    color: #237647;
    font-size: 12px;
    font-weight: 700;
}

.aqvs-entry #aqvs-front-badge[hidden],
.aqvs-entry #aqvs-front-dropzone[hidden],
.aqvs-entry #aqvs-front-result[hidden],
.aqvs-entry #aqvs-front-preview[hidden],
.aqvs-entry #aqvs-front-filename[hidden] {
    display: none !important;
}

.aqvs-photo-dropzone {
    position: relative;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
    border: 2px dashed #b9c9d8;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
    transition: border-color .15s, background .15s;
}

.aqvs-photo-dropzone:hover,
.aqvs-photo-dropzone:focus-within,
.aqvs-photo-dropzone.is-dragging {
    border-color: #344c61;
    background: #edf4fa;
}

.aqvs-photo-dropzone__label {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0 !important;
    cursor: pointer;
}

.aqvs-photo-dropzone__label strong {
    color: #293e50;
    font-size: 16px;
}

.aqvs-photo-dropzone__label > span:not(.aqvs-photo-dropzone__icon):not(.aqvs-photo-dropzone__choose) {
    color: #61717d;
    font-weight: 400;
}

.aqvs-photo-dropzone__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #e6eef5;
    color: #344c61;
    font-size: 31px;
    font-weight: 400;
}

.aqvs-photo-dropzone__choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    margin-top: 5px;
    padding: 0 20px;
    border-radius: 8px;
    background: #344c61;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.aqvs-photo-dropzone__label:hover .aqvs-photo-dropzone__choose {
    background: #243a4c;
}

.aqvs-photo-dropzone__label small {
    margin-top: 4px;
    color: #718092;
    font-size: 12px;
    font-weight: 400;
}

.aqvs-photo-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.aqvs-photo-dropzone__filename {
    margin: 14px 0 0 !important;
    color: #344c61;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.aqvs-entry .aqvs-photo-card__upload {
    margin-top: 14px;
}

.aqvs-photo-card__result {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 20px;
    border: 1px dashed #d4dfe8;
    border-radius: 12px;
    background: #fafbfd;
}

.aqvs-photo-card__result img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 7px;
}

.aqvs-photo-card__saved {
    color: #61717d;
    font-size: 12px;
}

@media (max-width: 460px) {
    .aqvs-entry .aqvs-photo-card {
        padding: 14px;
    }

    .aqvs-photo-dropzone {
        min-height: 220px;
        padding: 16px 10px;
    }
}


/* Respect hidden state of the Front photo controls. */
.aqvs-entry #aqvs-front-upload[hidden],
.aqvs-entry #aqvs-front-dropzone[hidden],
.aqvs-entry #aqvs-front-result[hidden],
.aqvs-entry #aqvs-front-badge[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-photo-card__replace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid #b9c9d8;
    border-radius: 8px;
    background: #fff;
    color: #344c61;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.aqvs-entry .aqvs-photo-card__replace:hover:not(:disabled) {
    background: #edf4fa;
}

.aqvs-entry .aqvs-photo-card__replace:disabled {
    opacity: .55;
    cursor: wait;
}


/* Front photo: one preview with in-card actions */

.aqvs-entry #aqvs-front-save-replacement[hidden] {
    display: none !important;
}

.aqvs-photo-card__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aqvs-entry .aqvs-photo-card__replace--primary {
    background: #344c61;
    border-color: #344c61;
    color: #fff;
}

.aqvs-entry .aqvs-photo-card__replace--primary:hover:not(:disabled) {
    background: #243a4c;
    color: #fff;
}

.aqvs-entry #aqvs-front-badge {
    width: fit-content;
}

.aqvs-entry #aqvs-front-badge:not([hidden]) {
    display: inline-block;
}


/* Front photo removal */

.aqvs-entry #aqvs-front-remove[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-photo-card__remove {
    border-color: #ead0d0;
    color: #a52834;
    background: #fff;
}

.aqvs-entry .aqvs-photo-card__remove:hover:not(:disabled) {
    border-color: #a52834;
    background: #fff3f3;
    color: #92212c;
}


/* Local preview before uploading the Front photo */

.aqvs-entry #aqvs-front-empty-icon[hidden],
.aqvs-entry #aqvs-front-selection-preview[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-photo-dropzone__preview {
    display: block;
    width: auto;
    max-width: 110px;
    height: auto;
    max-height: 125px;
    margin: 0 auto 4px;
    border-radius: 6px;
    object-fit: contain;
}


/* Shared private editing link panel */

.aqvs-entry #aqvs-draft-link-panel[hidden],
.aqvs-entry #aqvs-edit-link[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-draft-link-panel {
    margin: 14px 0 22px;
    padding: 14px 16px;
    border: 1px solid #d7e2ec;
    border-radius: 10px;
    background: #f2f6fa;
}

.aqvs-draft-link-panel__title {
    color: #293e50;
    font-size: 14px;
}

.aqvs-entry .aqvs-draft-link-panel p {
    margin: 7px 0 10px;
    font-size: 14px;
    color: #53677a;
}

.aqvs-draft-link-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aqvs-entry .aqvs-draft-link-panel__actions button {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #b9c9d8;
    border-radius: 8px;
    background: #fff;
    color: #344c61;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.aqvs-entry #aqvs-copy-edit-link {
    background: #344c61;
    border-color: #344c61;
    color: #fff;
}

.aqvs-entry #aqvs-edit-link {
    margin-top: 10px;
    font-size: 11px;
}

.aqvs-entry #aqvs-copy-link-status:empty {
    display: none;
}

.aqvs-entry .aqvs-draft-link-panel small {
    display: block;
    color: #66788a;
    font-size: 14px;
    line-height: 1.5;
}


/* Private draft panel sits above, not inside, the active step. */

.aqvs-entry #aqvs-draft-link-panel {
    margin: 24px 0 12px;
}

.aqvs-entry #aqvs-draft-link-panel + .aqvs-entry__editor {
    margin-top: 0;
}



/* Wider desktop layout, centered beyond the theme content width. */

@media (min-width: 769px) {

    .aqvs-entry {
        width: min(1100px, calc(100vw - 48px));
        max-width: none;        
        position: relative;
        left: auto;
        margin-left: auto;
        margin-right: auto;
        transform: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .aqvs-entry .aqvs-entry__editor {
        padding: 28px 36px;
    }

    .aqvs-entry #aqvs-draft-link-panel {
        padding: 16px 24px;
    }
}


/* Responsive checkbox grids: Base spirit and Other characteristics */

.aqvs-entry .aqvs-entry__choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 9px;
}

@media (max-width: 1000px) {
    .aqvs-entry .aqvs-entry__choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .aqvs-entry .aqvs-entry__choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .aqvs-entry .aqvs-entry__choices {
        grid-template-columns: 1fr;
    }
}


/* Producer location: three, two or one column */

.aqvs-entry .aqvs-entry__location-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 14px;
}

.aqvs-entry .aqvs-entry__location-cols > div {
    min-width: 0;
}

.aqvs-entry .aqvs-entry__location-cols input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    color: #29333d;
    font: inherit;
}

@media (max-width: 900px) {
    .aqvs-entry .aqvs-entry__location-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .aqvs-entry .aqvs-entry__location-cols {
        grid-template-columns: 1fr;
    }
}

/* Slightly larger form typography */

.aqvs-entry {
    font-size: 15px;
}

.aqvs-entry .aqvs-entry__editor input[type="text"],
.aqvs-entry .aqvs-entry__editor input[type="url"],
.aqvs-entry .aqvs-entry__editor textarea,
.aqvs-entry .aqvs-entry__editor select {
    font-size: 15px;
}

.aqvs-entry .aqvs-entry__field-group > label,
.aqvs-entry .aqvs-entry__three-cols label,
.aqvs-entry .aqvs-entry__two-cols label,
.aqvs-entry .aqvs-entry__location-cols label {
    font-size: 14px;
}

/* Step 2: ABV, Volume, Colour and Ageing status */

.aqvs-entry .aqvs-entry__four-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 2px;
}

.aqvs-entry .aqvs-entry__four-cols > div {
    min-width: 0;
}

.aqvs-entry .aqvs-entry__four-cols input,
.aqvs-entry .aqvs-entry__four-cols select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .aqvs-entry .aqvs-entry__four-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .aqvs-entry .aqvs-entry__four-cols {
        grid-template-columns: 1fr;
    }
}


/* Mobile: remove outer frame and give the step card more space */

@media (max-width: 768px) {

    .aqvs-entry {
        width: calc(100vw - 24px);
        max-width: none;
        box-sizing: border-box;

        position: relative;
        left: 50%;
        transform: translateX(-50%);

        margin: 20px 0 40px;
        padding: 0;

        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .aqvs-entry .aqvs-entry__editor {
        margin-top: 12px;
        padding: 18px 16px;
    }

    .aqvs-entry #aqvs-draft-link-panel {
        margin: 0 0 12px;
        padding: 14px 16px;
    }
}


/* Maturation stage: meaningful field groups */

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-section {
    margin-top: 20px;
}

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-section:first-of-type {
    margin-top: 0;
}

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-section__title {
    margin: 0 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #e5ebf1;
    color: #344c61;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-origin {
    margin-top: 12px;
}

/* Tablet: three-column groups become two columns. */
@media (max-width: 900px) {
    .aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone: all groups become single-column. */
@media (max-width: 600px) {
    .aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--two,
    .aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--three {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Maturation: four fields in the Duration & cask row */

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
    .aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .aqvs-entry #aqvs-maturation-step .aqvs-maturation-grid--four {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Make unavailable dependent fields visibly different */

.aqvs-entry #aqvs-maturation-step
.aqvs-maturation-field select:disabled,

.aqvs-entry #aqvs-maturation-step
.aqvs-maturation-field input:disabled {
    background-color: #edf0f3;
    border-color: #d6dce3;
    color: #788592;
    -webkit-text-fill-color: #788592;
    opacity: 1;
    cursor: not-allowed;
}


/* Maturation field help */

.aqvs-entry .aqvs-maturation-help-wrap {
    min-width: 0;
}

.aqvs-entry .aqvs-maturation-help-wrap > label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-right: 0;
    padding-right: 0;
}

.aqvs-entry .aqvs-maturation-help-wrap > label select,
.aqvs-entry .aqvs-maturation-help-wrap > label input,
.aqvs-entry .aqvs-maturation-help-wrap > label textarea {
    flex: 0 0 100%;
    width: 100%;
}

.aqvs-entry .aqvs-maturation-help-wrap--overall {
    margin-top: 16px;
}

.aqvs-entry .aqvs-maturation-help-wrap--overall > label {
    margin-top: 0 !important;
}

.aqvs-entry .aqvs-maturation-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #d5b14a;
    border-radius: 50%;
    background: #fff4cc;
    color: #8a6412;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    vertical-align: middle;
}

.aqvs-entry .aqvs-maturation-help-button:hover,
.aqvs-entry .aqvs-maturation-help-button:focus-visible {
    border-color: #b28722;
    background: #ffe8a3;
    color: #6e4d08;
    outline-offset: 3px;
}

.aqvs-entry #aqvs-maturation-step
.aqvs-maturation-help-wrap[hidden] {
    display: none !important;
}


/* One shared help dialog, also suitable for mobile */

.aqvs-maturation-help-dialog {
    position: fixed;
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    max-height: min(75vh, 640px);
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #d2dee8;
    border-radius: 14px;
    background: #fff;
    color: #29333d;
    box-shadow: 0 18px 60px rgba(20, 39, 58, .2);
    overflow: auto;
}

.aqvs-maturation-help-dialog::backdrop {
    background: rgba(20, 32, 45, .38);
}

.aqvs-maturation-help-dialog h3 {
    margin: 0 32px 14px 0;
    font-size: 19px;
    line-height: 1.35;
    color: #293e50;
}

.aqvs-maturation-help-content p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.65;
}

.aqvs-maturation-help-content p:last-child {
    margin-bottom: 0;
}

.aqvs-maturation-help-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f0f4f7;
    color: #344c61;
    font-size: 24px;
    cursor: pointer;
}


/* Give maturation help icons breathing room beside field names. */

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-help-button {
    position: static;
    margin-left: 8px;
    margin-right: 0;
    width: 17px;
    height: 17px;
    vertical-align: middle;
    flex: 0 0 17px;
}

.aqvs-entry #aqvs-maturation-step .aqvs-maturation-help-wrap > label {
    line-height: 1.6;
}

.aqvs-entry #aqvs-maturation-step
.aqvs-maturation-help-wrap > label select,

.aqvs-entry #aqvs-maturation-step
.aqvs-maturation-help-wrap > label input,

.aqvs-entry #aqvs-maturation-step
.aqvs-maturation-help-wrap > label textarea {
    margin-top: 7px;
}


/* Step 2 — inline yellow help icons */

.aqvs-entry #aqvs-draft-editor .aqvs-step2-help-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 6px;
    min-width: 0;
}

.aqvs-entry #aqvs-draft-editor .aqvs-step2-help-row > label {
    display: inline;
    width: auto;
    margin: 0 !important;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.aqvs-entry #aqvs-draft-editor .aqvs-step2-help-row--group {
    margin: 18px 0 8px;
}

.aqvs-entry #aqvs-draft-editor
.aqvs-step2-help-row > .aqvs-entry__choice-heading {
    margin: 0;
}

.aqvs-entry #aqvs-draft-editor
.aqvs-step2-help-row > .aqvs-maturation-help-button {
    position: static;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 0;
    background: #fff4cc;
    border-color: #d5b14a;
    color: #8a6412;
    font-size: 10px;
    line-height: 1;
}


/* Conversion table inside Step 2 field help */

.aqvs-maturation-help-dialog .aqvs-help-conversion-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.aqvs-maturation-help-dialog .aqvs-help-conversion-table th,
.aqvs-maturation-help-dialog .aqvs-help-conversion-table td {
    padding: 8px 7px;
    border-bottom: 1px solid #e2e8ee;
}

.aqvs-maturation-help-dialog .aqvs-help-conversion-table th {
    background: #f2f6fa;
    color: #344c61;
    font-weight: 700;
}


/* Step 2 — searchable country and dependent location fields */

.aqvs-entry .aqvs-country-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.aqvs-entry #aqvs-country-results {
    position: absolute;
    z-index: 100;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(30, 48, 65, .13);
}

.aqvs-entry #aqvs-country-results[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-country-picker__option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #29333d;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.aqvs-entry .aqvs-country-picker__option:hover,
.aqvs-entry .aqvs-country-picker__option.is-active {
    background: #edf4fa;
    color: #243a4c;
}

.aqvs-entry #aqvs-draft-region:disabled,
.aqvs-entry #aqvs-draft-city:disabled {
    background: #edf0f3;
    border-color: #d6dce3;
    color: #788592;
    -webkit-text-fill-color: #788592;
    opacity: 1;
    cursor: not-allowed;
}

.aqvs-entry #aqvs-draft-region:disabled::placeholder,
.aqvs-entry #aqvs-draft-city:disabled::placeholder {
    color: #788592;
    -webkit-text-fill-color: #788592;
    opacity: 1;
}


/* Country picker: dropdown arrow */

.aqvs-entry .aqvs-country-picker {
    position: relative;
}

.aqvs-entry #aqvs-draft-country {
    width: 100%;
    padding-right: 42px;
}

.aqvs-entry .aqvs-country-picker__toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid #d9e0e8;
    border-radius: 0 7px 7px 0;
    background: transparent;
    color: #52667a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.aqvs-entry .aqvs-country-picker__toggle:hover {
    background: #f2f6fa;
}

.aqvs-entry .aqvs-country-picker__results {
    max-height: 260px;
    overflow-y: auto;
}


/* Country dropdown arrow — match the native select appearance */

.aqvs-entry .aqvs-country-picker__toggle {
    width: 36px;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: transparent;
    color: #263b4f;
    font-size: inherit;
}

.aqvs-entry .aqvs-country-picker__toggle:hover {
    background: transparent;
}

.aqvs-entry .aqvs-country-picker__toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}


/* Step 2 — searchable regions */

.aqvs-entry .aqvs-region-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.aqvs-entry #aqvs-draft-region {
    width: 100%;
    padding-right: 42px;
}

.aqvs-entry .aqvs-region-picker__toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: transparent;
    color: #263b4f;
    cursor: pointer;
}

.aqvs-entry .aqvs-region-picker__toggle:hover {
    background: transparent;
}

.aqvs-entry .aqvs-region-picker__toggle svg {
    display: block;
    width: 18px;
    height: 18px;
}

.aqvs-entry .aqvs-region-picker__toggle:disabled,
.aqvs-entry .aqvs-region-picker__toggle[hidden] {
    display: none;
}

.aqvs-entry #aqvs-region-results {
    position: absolute;
    z-index: 100;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #c5cfda;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(30, 48, 65, .13);
}

.aqvs-entry #aqvs-region-results[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-region-picker__option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #29333d;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.aqvs-entry .aqvs-region-picker__option:hover,
.aqvs-entry .aqvs-region-picker__option.is-active {
    background: #edf4fa;
    color: #243a4c;
}


/* Photos — always respect the hidden attribute. */
.aqvs-entry #aqvs-back-card[hidden],
.aqvs-entry #aqvs-back-dropzone[hidden],
.aqvs-entry #aqvs-back-result[hidden],
.aqvs-entry #aqvs-back-badge[hidden],
.aqvs-entry #aqvs-back-upload[hidden],
.aqvs-entry #aqvs-back-selection-preview[hidden],
.aqvs-entry #aqvs-back-preview[hidden],
.aqvs-entry #aqvs-back-empty-icon[hidden],
.aqvs-entry #aqvs-back-filename[hidden],
.aqvs-entry #aqvs-back-replace[hidden],
.aqvs-entry #aqvs-back-remove[hidden],
.aqvs-entry #aqvs-back-save-replacement[hidden] {
    display: none !important;
}


/* Photos & Rights — front/back labels side by side. */
.aqvs-entry .aqvs-photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 18px 0 22px;
}

.aqvs-entry .aqvs-photo-pair > .aqvs-photo-card {
    min-width: 0;
    margin: 0;
}

/* Keep both empty upload areas consistent. */
.aqvs-entry .aqvs-photo-pair .aqvs-photo-dropzone {
    min-width: 0;
}

.aqvs-entry .aqvs-photo-pair .aqvs-photo-dropzone__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px 14px;
    text-align: center;
    cursor: pointer;
}

.aqvs-entry .aqvs-photo-pair .aqvs-photo-dropzone__label > strong,
.aqvs-entry .aqvs-photo-pair .aqvs-photo-dropzone__label > span,
.aqvs-entry .aqvs-photo-pair .aqvs-photo-dropzone__label > small {
    max-width: 100%;
}

/* The real file input must not overlap the custom Choose photo label. */
.aqvs-entry #aqvs-back-file {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    clip-path: inset(50%) !important;
}

.aqvs-entry .aqvs-photo-pair .aqvs-photo-dropzone__choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    box-sizing: border-box;
    white-space: normal;
}

/* Uploaded images fit their card without distortion. */
.aqvs-entry .aqvs-photo-pair .aqvs-photo-card__result img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* On phones, keep the cards full-width and stacked. */
@media (max-width: 700px) {
    .aqvs-entry .aqvs-photo-pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}


/* Photo rights — separate declarations for each uploaded photo. */
.aqvs-entry #aqvs-photo-rights[hidden],
.aqvs-entry .aqvs-photo-rights__card[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-photo-rights {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid #d9e3ef;
}

.aqvs-entry .aqvs-photo-rights h3 {
    margin: 0 0 8px;
}

.aqvs-entry .aqvs-photo-rights > p {
    margin: 0 0 18px;
}

.aqvs-entry .aqvs-photo-rights__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
}

.aqvs-entry .aqvs-photo-rights__card legend {
    padding: 0 6px;
    font-weight: 700;
}

.aqvs-entry .aqvs-photo-rights__card label {
    display: block;
    margin-top: 8px;
    font-weight: 600;
}

.aqvs-entry .aqvs-photo-rights__card input,
.aqvs-entry .aqvs-photo-rights__card select,
.aqvs-entry .aqvs-photo-rights__card textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.aqvs-entry .aqvs-photo-rights__card textarea {
    resize: vertical;
}


/* Photo rights: Front and Back side by side on desktop. */

@media (min-width: 701px) {
    .aqvs-entry .aqvs-photo-rights {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        align-items: start;
    }

    /* One uploaded photo: let its rights form use the full width. */
    .aqvs-entry .aqvs-photo-rights:has(#aqvs-rights-back[hidden])
        #aqvs-rights-front,
    .aqvs-entry .aqvs-photo-rights:has(#aqvs-rights-front[hidden])
        #aqvs-rights-back {
        grid-column: 1 / -1;
    }


    .aqvs-entry .aqvs-photo-rights > h3,
    .aqvs-entry .aqvs-photo-rights > p,
    .aqvs-entry #aqvs-save-photo-rights,
    .aqvs-entry #aqvs-photo-rights-status,
    .aqvs-entry .aqvs-photo-rights__contact {
        grid-column: 1 / -1;
    }

    .aqvs-entry #aqvs-rights-front {
        grid-column: 1;
    }

    .aqvs-entry #aqvs-rights-back {
        grid-column: 2;
    }
}

.aqvs-entry .aqvs-photo-rights__contact {
    min-width: 0;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
}

.aqvs-entry .aqvs-photo-rights__contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.aqvs-entry .aqvs-photo-rights__contact input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.aqvs-entry .aqvs-photo-rights__contact p {
    margin: 8px 0 0;
    font-size: .9em;
}


/* Submitter email — same styling as the main entry form. */
.aqvs-entry .aqvs-entry__contact-field {
    display: block;
    margin: 22px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.aqvs-entry .aqvs-entry__contact-field label {
    display: block;
    margin: 0 0 7px;
    font-weight: 600;
    color: #243347;
}

.aqvs-entry .aqvs-entry__contact-field input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #c5d4e7;
    border-radius: 7px;
    background: #fff;
    color: #243347;
    font: inherit;
}

.aqvs-entry .aqvs-entry__contact-field input:focus {
    border-color: #587fa9;
    outline: 2px solid rgba(88, 127, 169, .16);
    outline-offset: 1px;
}

.aqvs-entry .aqvs-entry__contact-field p {
    margin: 7px 0 0;
    color: #65758a;
    font-size: .9em;
    line-height: 1.5;
}


/* Respect conditional fields inside photo rights. */
.aqvs-entry .aqvs-photo-rights__card [hidden],
.aqvs-entry .aqvs-photo-rights__warning[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-photo-rights__warning {
    margin: 6px 0 8px;
    padding: 10px 12px;
    border: 1px solid #e9d29b;
    border-radius: 7px;
    background: #fff9eb;
    color: #785615;
    font-size: .9em;
    line-height: 1.5;
}


/* Explicit permission for each uploaded photo. */
.aqvs-entry .aqvs-photo-rights__grant[hidden],
.aqvs-entry .aqvs-photo-rights__grant-own[hidden],
.aqvs-entry .aqvs-photo-rights__grant-authorized[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-photo-rights__grant {
    margin: 8px 0;
    padding: 13px 14px;
    border: 1px solid #e9d29b;
    border-radius: 8px;
    background: #fff9eb;
    color: #785615;
    line-height: 1.5;
}

.aqvs-entry .aqvs-photo-rights__grant > strong {
    display: block;
    margin-bottom: 8px;
}

.aqvs-entry .aqvs-photo-rights__grant > p {
    margin: 0 0 12px;
    font-size: .92em;
}

.aqvs-entry .aqvs-photo-rights__grant
.aqvs-photo-rights__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    font-weight: 600;
    cursor: pointer;
}

.aqvs-entry .aqvs-photo-rights__grant
input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: #334b60;
}

.aqvs-entry .aqvs-photo-rights__grant small {
    display: block;
    color: #785615;
    font-size: .82em;
}


/* Photo permission — soft green when consent is checked. */
.aqvs-entry .aqvs-photo-rights__grant {
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.aqvs-entry .aqvs-photo-rights__grant:has(
    input[data-photo-rights-field="publication_consent"]:checked
) {
    background: #edf7ef;
    border-color: #a8d3b1;
    color: #275b3b;
}

.aqvs-entry .aqvs-photo-rights__grant:has(
    input[data-photo-rights-field="publication_consent"]:checked
) > strong {
    color: #205333;
}

.aqvs-entry .aqvs-photo-rights__grant:has(
    input[data-photo-rights-field="publication_consent"]:checked
) small {
    color: #386c4a;
}

.aqvs-entry .aqvs-photo-rights__grant:has(
    input[data-photo-rights-field="publication_consent"]:checked
) input[type="checkbox"] {
    accent-color: #34734b;
}


/* Space between the submitter's name and email fields. */
.aqvs-entry .aqvs-entry__contact-field input + label {
    margin-top: 17px;
}


/* Contact details — independent section below photo rights. */
.aqvs-entry fieldset.aqvs-entry__contact-field {
    display: block;
    min-width: 0;
    margin: 24px 0 18px;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    background: #fff;
}

.aqvs-entry .aqvs-entry__contact-field legend {
    padding: 0 7px;
    color: #243347;
    font-weight: 700;
}

.aqvs-entry .aqvs-entry__contact-intro {
    margin: -2px 0 20px;
    color: #65758a;
    font-size: 14px;
}

.aqvs-entry .aqvs-entry__contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.aqvs-entry .aqvs-entry__contact-item {
    min-width: 0;
}

.aqvs-entry .aqvs-entry__contact-item label {
    display: block;
    margin: 0 0 7px;
    color: #243347;
    font-weight: 600;
}

.aqvs-entry .aqvs-entry__contact-item input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #c5d4e7;
    border-radius: 7px;
    background: #fff;
    color: #243347;
    font: inherit;
}

.aqvs-entry .aqvs-entry__contact-item input:focus {
    border-color: #587fa9;
    outline: 2px solid rgba(88, 127, 169, .16);
    outline-offset: 1px;
}

.aqvs-entry .aqvs-entry__contact-hint {
    margin: 12px 0 0;
    color: #65758a;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .aqvs-entry .aqvs-entry__contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}


/* Final submission. */
.aqvs-entry #aqvs-submission-success[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-entry__submit-actions {
    margin: 22px 0 16px;
}

.aqvs-entry .aqvs-entry__submit-actions > .aqvs-entry__field-hint {
    margin: 10px 0 0;
}

.aqvs-entry #aqvs-submission-success {
    margin: 12px 0;
    padding: 22px;
    border: 1px solid #a8d3b1;
    border-radius: 10px;
    background: #edf7ef;
    color: #275b3b;
}

.aqvs-entry #aqvs-submission-success h2 {
    margin: 0 0 12px;
}

.aqvs-entry #aqvs-submission-success p {
    margin: 8px 0;
}

/* Once submitted, replace the editing form with the success message. */
.aqvs-entry #aqvs-photos-step.aqvs-entry__submitted
> :not(#aqvs-submission-success) {
    display: none !important;
}


/* Preview and submission are independent actions. */
.aqvs-entry .aqvs-entry__submit-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.aqvs-entry .aqvs-entry__submit-buttons button {
    width: 100%;
    margin: 0;
}

@media (max-width: 600px) {
    .aqvs-entry .aqvs-entry__submit-buttons {
        grid-template-columns: minmax(0, 1fr);
    }
}

.aqvs-entry .aqvs-entry__existing-producer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.aqvs-entry .aqvs-entry__existing-producer-select {
    min-width: 0;
}

.aqvs-entry .aqvs-entry__existing-producer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #c9d4df;
    border-radius: 6px;
    background: #fff;
    color: #344c61;
    text-decoration: none;
    white-space: nowrap;
}

.aqvs-entry .aqvs-entry__existing-producer-button:hover {
    background: #f6f8fa;
}

.aqvs-entry .aqvs-entry__readonly-field,
.aqvs-entry .aqvs-entry__readonly-field:disabled,
.aqvs-entry input:disabled,
.aqvs-entry select:disabled {
    background: #f1f3f5;
    color: #6f7b86;
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 700px) {
    .aqvs-entry .aqvs-entry__existing-producer-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .aqvs-entry .aqvs-entry__existing-producer-button {
        width: 100%;
    }
}

/* Existing producer — reference-only producer details. */

.aqvs-entry
#aqvs-draft-producer.aqvs-entry__readonly-field {
    background: #edf0f3;
    border-color: #d6dce3;
    color: #788592;
    -webkit-text-fill-color: #788592;
    opacity: 1;
    cursor: not-allowed;
}

.aqvs-entry .aqvs-country-picker__toggle:disabled,
.aqvs-entry .aqvs-country-picker__toggle[hidden] {
    display: none !important;
}

.aqvs-entry .aqvs-entry__existing-producer-button[hidden] {
    display: none !important;
}

.aqvs-entry__photos-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.aqvs-entry__photos-bottom-actions
#aqvs-preview-aquavit {
    margin-left: auto;
    min-width: 220px;
}

@media (max-width: 700px) {
    .aqvs-entry__photos-bottom-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .aqvs-entry__photos-bottom-actions
    #aqvs-preview-aquavit {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .aqvs-entry__photos-bottom-actions
    #aqvs-photos-back {
        width: 100%;
    }
}

.aqvs-entry #aqvs-submit-for-review[hidden] {
    display: none !important;
}

.aqvs-entry__photos-bottom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.aqvs-entry__photos-bottom-actions
#aqvs-photos-back,
.aqvs-entry__photos-bottom-actions
#aqvs-preview-aquavit {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.aqvs-entry__photos-bottom-actions
#aqvs-photos-back {
    justify-self: start;
}

.aqvs-entry__photos-bottom-actions
#aqvs-preview-aquavit {
    justify-self: end;
}

@media (max-width: 700px) {
    .aqvs-entry__photos-bottom-actions {
        grid-template-columns: 1fr;
    }
}

.aqvs-entry__bottom-nav,
.aqvs-entry__photos-bottom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.aqvs-entry__bottom-nav > button,
.aqvs-entry__photos-bottom-actions > button {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.aqvs-entry__bottom-nav > .aqvs-entry__back-button,
.aqvs-entry__photos-bottom-actions > .aqvs-entry__back-button {
    justify-self: start;
}

.aqvs-entry__bottom-nav > .aqvs-entry__flow-button,
.aqvs-entry__photos-bottom-actions > .aqvs-entry__flow-button {
    justify-self: end;
}

@media (max-width: 700px) {
    .aqvs-entry__bottom-nav,
    .aqvs-entry__photos-bottom-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
 * FINAL STEP NAVIGATION — Step 2 / 3 / 4
 * ========================================================= */


/* ---------- ROW LAYOUT ---------- */

.aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav,
.aqvs-entry #aqvs-maturation-step .aqvs-entry__bottom-nav,
.aqvs-entry #aqvs-photos-step .aqvs-entry__photos-bottom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;

    margin-top: 18px;
}


/* ---------- STEP 2 BUTTONS ---------- */

.aqvs-entry
#aqvs-draft-editor
.aqvs-entry__bottom-nav
#aqvs-back-button,

.aqvs-entry
#aqvs-draft-editor
.aqvs-entry__bottom-nav
#aqvs-next-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: none;
    min-width: 0;

    height: 38px;
    min-height: 38px;

    box-sizing: border-box;
    margin: 0;
    padding: 0 12px;

    border-radius: 8px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}


/* ---------- STEP 3 BUTTONS ---------- */

.aqvs-entry
#aqvs-maturation-step
.aqvs-entry__bottom-nav
#aqvs-maturation-back,

.aqvs-entry
#aqvs-maturation-step
.aqvs-entry__bottom-nav
#aqvs-maturation-next {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: none;
    min-width: 0;

    height: 38px;
    min-height: 38px;

    box-sizing: border-box;
    margin: 0;
    padding: 0 12px;

    border-radius: 8px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}


/* ---------- STEP 4 BUTTONS ---------- */

.aqvs-entry
#aqvs-photos-step
.aqvs-entry__photos-bottom-actions
#aqvs-photos-back,

.aqvs-entry
#aqvs-photos-step
.aqvs-entry__photos-bottom-actions
#aqvs-preview-aquavit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: none;
    min-width: 0;

    height: 38px;
    min-height: 38px;

    box-sizing: border-box;
    margin: 0;
    padding: 0 12px;

    border-radius: 8px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}


/* ---------- BACK ---------- */

.aqvs-entry
#aqvs-draft-editor
.aqvs-entry__bottom-nav
#aqvs-back-button,

.aqvs-entry
#aqvs-maturation-step
.aqvs-entry__bottom-nav
#aqvs-maturation-back,

.aqvs-entry
#aqvs-photos-step
.aqvs-entry__photos-bottom-actions
#aqvs-photos-back {
    border: 1px solid #c5cfda;
    background: #fff;
    color: #344c61;
}


/* ---------- FORWARD ---------- */

.aqvs-entry
#aqvs-draft-editor
.aqvs-entry__bottom-nav
#aqvs-next-button,

.aqvs-entry
#aqvs-maturation-step
.aqvs-entry__bottom-nav
#aqvs-maturation-next,

.aqvs-entry
#aqvs-photos-step
.aqvs-entry__photos-bottom-actions
#aqvs-preview-aquavit {
    border: 1px solid #344c61;
    background: #344c61;
    color: #fff;
}


/* ---------- HOVER ---------- */

.aqvs-entry
#aqvs-draft-editor
.aqvs-entry__bottom-nav
#aqvs-back-button:hover:not(:disabled),

.aqvs-entry
#aqvs-maturation-step
.aqvs-entry__bottom-nav
#aqvs-maturation-back:hover:not(:disabled),

.aqvs-entry
#aqvs-photos-step
.aqvs-entry__photos-bottom-actions
#aqvs-photos-back:hover:not(:disabled) {
    background: #edf3f8;
}


.aqvs-entry
#aqvs-draft-editor
.aqvs-entry__bottom-nav
#aqvs-next-button:hover:not(:disabled),

.aqvs-entry
#aqvs-maturation-step
.aqvs-entry__bottom-nav
#aqvs-maturation-next:hover:not(:disabled),

.aqvs-entry
#aqvs-photos-step
.aqvs-entry__photos-bottom-actions
#aqvs-preview-aquavit:hover:not(:disabled) {
    border-color: #293e50;
    background: #293e50;
    color: #fff;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .aqvs-entry #aqvs-draft-editor .aqvs-entry__bottom-nav,
    .aqvs-entry #aqvs-maturation-step .aqvs-entry__bottom-nav,
    .aqvs-entry #aqvs-photos-step .aqvs-entry__photos-bottom-actions {
        grid-template-columns: 1fr;
    }
}

/* Photos step: hint above Preview button only */
.aqvs-entry #aqvs-photos-step
.aqvs-entry__submit-actions
.aqvs-entry__field-hint {
    width: calc(50% - 6px);
    margin-left: calc(50% + 6px);
    box-sizing: border-box;
}

/* Mobile — снова на всю ширину */
@media (max-width: 700px) {
    .aqvs-entry #aqvs-photos-step
    .aqvs-entry__submit-actions
    .aqvs-entry__field-hint {
        width: 100%;
        margin-left: 0;
    }
}

/* FINAL — Contact details explanatory text */

.aqvs-entry fieldset.aqvs-entry__contact-field
p.aqvs-entry__contact-intro {
    margin: -4px 0 20px;
    color: #65758a;
    font-size: 15px;
    line-height: 1.5;
}

.aqvs-entry fieldset.aqvs-entry__contact-field
p.aqvs-entry__contact-hint {
    margin: 12px 0 0;
    color: #65758a;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   Editorial review — changes requested
   ========================================================= */

.aqvs-entry__review-notice {
    margin: 0 0 28px;
    padding: 20px 22px;
    border: 1px solid #d8c9a8;
    border-radius: 10px;
    background: #fffaf0;
}

.aqvs-entry__review-notice[hidden] {
    display: none !important;
}

.aqvs-entry__review-notice-title {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.aqvs-entry__review-notice p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
}

.aqvs-entry__review-notice-note {
    margin: 14px 0;
    padding: 14px 16px;
    border-left: 4px solid #8a6d3b;
    background: #fff;
    color: var(--aqv-ink);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
    white-space: pre-wrap;
}

.aqvs-entry__review-notice-footer {
    margin-bottom: 0 !important;
    font-weight: 600;
}
