/* ============================================================
   Wedding Generator – Mobile Overrides
   Frontend only. Loaded after public-style.css.
   ============================================================ */

#wg-planner #wgp-mobile-section-nav {
    display: none;
}

@media (max-width: 760px) {
    #wgp-section-wedding_decoration,
    #wgp-section-wedding_decoration > form,
    #wgp-section-wedding_decoration .wgp-card,
    #wgp-section-wedding_decoration .wgp-decoration-plan-card,
    #wgp-section-wedding_decoration .wgp-decoration-conditional,
    #wgp-section-wedding_decoration .wgp-decoration-upload-box {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    #wgp-section-wedding_decoration .wgp-decoration-plan-card {
        padding: 12px !important;
        overflow: hidden;
    }

    #wgp-section-wedding_decoration .wgp-decoration-mode-grid,
    #wgp-section-wedding_decoration .wgp-decoration-details-grid,
    #wgp-section-wedding_decoration .wgp-decoration-external-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-mode-card {
        min-height: 0 !important;
        padding: 14px 16px !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-mode-card strong {
        font-size: 20px !important;
        line-height: 1.18 !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-mode-card span,
    #wgp-section-wedding_decoration .wgp-help-note,
    #wgp-section-wedding_decoration .wgp-help-text-muted {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    #wgp-section-wedding_decoration .wgp-input,
    #wgp-section-wedding_decoration input,
    #wgp-section-wedding_decoration textarea,
    #wgp-section-wedding_decoration button {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #wgp-section-wedding_decoration textarea.wgp-input {
        min-height: 132px;
    }

    #wgp-section-wedding_decoration .wgp-decoration-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-reference-item {
        aspect-ratio: 1 / 1 !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-lightbox {
        padding: 14px !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-lightbox img {
        max-width: 96vw !important;
        max-height: 82vh !important;
    }

    #wgp-section-wedding_decoration .wgp-decoration-lightbox-close {
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 820px) {
    .wg-final-info .wg-public-timeline {
        gap: 8px;
    }

    .wg-final-info .wg-public-timeline-item {
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        padding: 10px 0;
        border-top: 1px solid #efe3d5;
    }

    .wg-final-info .wg-public-timeline-item:first-child {
        border-top: 0;
        padding-top: 2px;
    }

    .wg-final-info .wg-tl-dot {
        display: none;
    }

    .wg-final-info .wg-tl-time {
        font-size: 25px;
        line-height: 1;
        font-weight: 700;
        color: #334155;
        white-space: nowrap;
    }

    .wg-final-info .wg-tl-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
        text-align: right;
    }

    .wg-final-info .wg-tl-content strong {
        display: block;
        font-size: 17px;
        line-height: 1.3;
        color: #2f2f2f;
        text-align: right;
    }

    .wg-final-info .wg-tl-content small {
        display: block;
        margin: 0;
        font-size: 14px;
        line-height: 1.35;
        color: #6b7280;
    }
}

@media (max-width: 920px), (max-width: 1024px) and (orientation: portrait) {
    #wgp-section-ceremony > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-section-welcome > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-section-table_setup > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-section-menu > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-section-swedish_tables > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-section-extras > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-section-print_materials > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style) {
        margin-top: 24px !important;
    }
}

@media (max-width: 1024px) {
    .wgp,
    .wgp *,
    .wg-public-dashboard,
    .wg-public-dashboard *,
    .wg-public-ceremony-selection,
    .wg-public-ceremony-selection *,
    .wg-public-details-form,
    .wg-public-details-form *,
    .wg-final-info,
    .wg-final-info *,
    .wg-allergen-form,
    .wg-allergen-form *,
    .wg-decoration-choice,
    .wg-decoration-choice *,
    .wg-guest-view,
    .wg-guest-view *,
    .wg-layout-public,
    .wg-layout-public *,
    .wgp-tent-rental {
        box-sizing: border-box;
        text-align: left;
    }

    .wgp-tent-rental * {
        box-sizing: border-box;
    }

    .wgp,
    .wg-public-dashboard,
    .wg-public-ceremony-selection,
    .wg-public-details-form,
    .wg-final-info,
    .wg-allergen-form,
    .wg-decoration-choice,
    .wg-guest-view,
    .wg-layout-public,
    .wgp-tent-rental {
        overflow-x: clip;
    }

    .wgp-main,
    .wg-public-dashboard,
    .wg-public-ceremony-selection,
    .wg-public-details-form,
    .wg-final-info,
    .wg-allergen-form,
    .wg-decoration-choice,
    .wg-guest-view,
    .wg-layout-public {
        padding-left: 18px;
        padding-right: 18px;
    }

    .wgp-card,
    .wgp-info-tile,
    .wgp-check-item,
    .wgp-section-tile,
    .wgp-choice-card,
    .wgp-media-choice,
    .wg-progress-section,
    .wg-overview-contact,
    .wg-next-appointment,
    .wg-quick-actions,
    .wg-recent-updates,
    .wg-final-card,
    .wg-info-section,
    .wg-guest-card,
    .wg-form-section,
    .wg-modal-content,
    .wg-layout-preview-card,
    .wg-layout-options-card,
    .wg-layout-summary-card {
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .wgp-main > .wgp-section,
    .wgp-info-grid,
    .wgp-sections-grid,
    .wgp-overview-top-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .wgp-overview-top-grid,
    .wgp-info-grid,
    .wgp-form-grid,
    .wgp-sections-grid,
    .wgp-program-grid,
    .wgp-ceremony-grid,
    .wgp-drinks-grid,
    .wgp-vendors-grid,
    .wgp-extras-mixed-grid,
    .wgp-extra-premium-hero,
    .wgp-bbq-upsell-grid,
    .wgp-welcome-host-grid,
    .wgp-welcome-host-menu-grid,
    .wgp-welcome-offer-grid,
    .wgp-ceremony-carriage-grid,
    .wgp-table-setup-offer-grid,
    .wgp-bbq-menu-grid,
    .wgp-drink-packages-grid,
    .wg-dashboard-top-grid,
    .wg-columns,
    .wg-action-buttons,
    .wg-sections-grid,
    .wg-ceremony-cards-public,
    .wg-decoration-gallery,
    .wg-form-row.wg-two-col,
    .wg-layout-public-grid {
        grid-template-columns: 1fr !important;
    }

    /* Prevent implicit extra column when overview grid is single-column on mobile. */
    .wgp-overview-chat-tile {
        grid-column: 1 / -1 !important;
    }

    .wg-form-row,
    .wg-progress-header,
    .wg-selection-summary,
    .wg-layout-switch-row,
    .wg-layout-top-actions,
    .wg-layout-top-actions--head,
    .wg-layout-table-modal-head,
    .wg-layout-table-modal-foot {
        flex-direction: column;
        align-items: stretch;
    }

    /* Override: keep table modal head and foot in horizontal layout */
    .wg-layout-table-modal-head,
    .wg-layout-table-modal-foot {
        flex-direction: row !important;
        align-items: center !important;
    }

    .wg-layout-table-modal-head {
        justify-content: center !important;
        position: relative;
    }

    .wg-layout-table-modal-head h3 {
        flex: 0 0 auto;
        min-width: 0;
        text-align: center;
        margin: 0;
    }

    .wg-layout-table-modal-close {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        flex: 0 0 auto;
        margin: 0;
        padding: 4px 8px;
    }

    .wg-layout-table-modal-foot {
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .wg-layout-table-modal-foot button {
        flex: 1 1 auto;
        width: auto !important;
    }

    .wgp-overview-contact-meta {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0px;
        flex-wrap: nowrap;
    }

    .wgp-overview-contact-list {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    .wgp-overview-contact-list p {
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: left;
    }

    .wgp-overview-days {
        flex: 0 0 auto;
        max-width: 44%;
        min-width: 0;
        padding: 5px 8px;
        gap: 6px;
        align-self: flex-end;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .wgp-overview-days-value {
        font-size: 26px;
        line-height: 1;
        display: block;
        width: 100%;
        text-align: center;
    }

    .wgp-overview-days-label {
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .wgp-overview-mobile-emoji {
        display: none !important;
    }

    #wgp-section-overview .wgp-overview-family-stat-children .wgp-overview-mobile-emoji {
        display: inline-block !important;
    }

    .wg-form-actions,
    .wg-layout-top-actions,
    .wg-layout-top-actions--head,
    .wgp-program-actions,
    .wgp-menu-actions,
    .wgp-final-actions,
    .wgp-chat-input-row {
        gap: 10px;
    }

    .wg-form-actions .wg-btn-primary,
    .wg-form-actions .wg-btn-outline,
    .wg-action-btn,
    .wg-btn-primary,
    .wg-btn-outline,
    .wg-btn-small,
    .wg-layout-switch-btn,
    .wg-layout-option-btn,
    .wg-layout-top-actions button,
    .wg-layout-top-actions a,
    .wg-layout-top-actions--head button,
    .wg-layout-top-actions--head a,
    .wgp-menu-btn,
    .wgp-chip,
    .wgp-pill,
    .wgp-btn,
    .wgp-btn-primary,
    .wgp-btn-secondary,
    .wgp-save-btn,
    .wgp-card button[type="submit"],
    .wgp-card input[type="submit"] {
        width: 100%;
        justify-content: center;
    }

    .wg-layout-option-btn {
        white-space: normal;
        text-align: center;
    }

    .wg-input,
    .wg-textarea,
    .wg-form-group select,
    .wg-form-group input,
    .wg-form-group textarea,
    .wgp input[type="text"],
    .wgp input[type="email"],
    .wgp input[type="tel"],
    .wgp input[type="number"],
    .wgp input[type="date"],
    .wgp input[type="time"],
    .wgp select,
    .wgp textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .wg-layout-option-top {
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .wg-layout-option-top strong {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .wg-layout-options-card,
    .wg-layout-phase,
    .wg-layout-option,
    #wg-layout-head-options,
    #wg-layout-guest-options {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        overflow: hidden;
    }

    .wg-layout-phase-switch {
        grid-template-columns: 1fr;
    }

    .wg-layout-phase-btn {
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }

    .wg-layout-carousel-nav {
        gap: 8px;
    }

    .wg-layout-carousel-counter {
        flex: 1 1 auto;
        text-align: center;
    }

    .wg-layout-option-meta {
        word-break: break-word;
        text-align: left;
    }

    .wg-layout-qty-row label {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .wg-layout-qty-row input {
        flex: 0 0 96px;
        width: 96px;
        max-width: 96px;
    }

    .wg-layout-option-btn {
        display: block;
    }

    .wgp-info-tile > div,
    .wgp-section-body,
    .wgp-overview-contact-list,
    .wgp-overview-contact-meta,
    .wgp-drink-package-content,
    .wgp-media-content {
        min-width: 0;
    }

    .wg-allergen-table-wrap,
    .wg-layout-preview,
    .wg-layout-table-modal-body,
    .wgp-table-scroll,
    .wgp-guest-table-wrap,
    .wgp-chat-messages,
    .wgp-gallery-row,
    .wgp-swedish-gastronomy-gallery,
    .wgp-swedish-gallery,
    .wgp-print-gallery,
    .wgp-graphic-gallery {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 820px) {
    #wgp-section-swedish_tables > form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style),
    #wgp-bbq-form > :not(input[type="hidden"]):not(script):not(template):not(style) + :not(input[type="hidden"]):not(script):not(template):not(style) {
        margin-top: 36px !important;
    }

    .wgp-body {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .wgp {
        min-height: 100svh;
        box-shadow: none;
    }

    .wgp-header {
        height: auto;
        padding: 12px 16px;
    }

    .wgp-header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .wgp-logo {
        max-height: 30px;
    }

    .wgp-couple {
        min-width: min(100%, 220px);
    }

    .wgp-names {
        white-space: normal;
        font-size: 16px;
        line-height: 1.2;
    }

    .wgp-names::before {
        content: "\01F48D";
        display: inline-block;
        margin-right: 6px;
        font-size: 16px;
        line-height: 1;
        vertical-align: baseline;
    }

    .wgp-date {
        font-size: 13px;
    }

    .wgp-header-progress {
        width: 100%;
        text-align: left;
    }

    .wgp-progress-mini-bar {
        width: 100%;
    }

    .wgp-body {
        min-height: auto;
    }

    .wgp-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: auto;
        right: -100%;
        width: min(84vw, 300px);
        max-width: 300px;
        height: 100svh;
        max-height: none;
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 62px 10px 14px;
        background: #fff;
        border-right: none;
        border-left: 1px solid var(--wg-border);
        box-shadow: -10px 0 26px rgba(0,0,0,.16);
        transition: right .25s ease;
        z-index: 1200;
        pointer-events: none;
        visibility: hidden;
    }

    .wgp-sidebar.open {
        left: auto;
        right: 0;
        pointer-events: auto;
        visibility: visible;
    }

    .wgp-sidebar-toggle {
        top: 12px;
        right: 12px;
    }

    .wgp-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        padding-top: 14px;
        padding-bottom: 28px;
    }

    #wgp-section-welcome .wgp-card,
    #wgp-section-print_materials .wgp-card,
    #wgp-section-swedish_tables .wgp-card,
    #wgp-section-drinks .wgp-card,
    #wgp-section-vendors .wgp-card,
    #wgp-section-chat .wgp-card {
        width: 100%;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #wgp-section-drinks .wgp-drink-packages-grid,
    #wgp-section-vendors .wgp-ceremony-grid,
    #wgp-section-swedish_tables .wgp-ceremony-grid,
    #wgp-print-materials-form,
    #wgp-welcome-form,
    #wgp-drinks-form,
    #wgp-bbq-form,
    #wgp-section-chat #wgp-chat-app {
        width: 100%;
        max-width: none;
    }

    .wgp-welcome-arrival-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
    }

    .wgp-welcome-time-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wgp-ceremony-time-location-grid {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
    }

    .wgp-ceremony-time-location-wrap,
    .wgp-ceremony-inline-field {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .wgp-ceremony-inline-field > span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .wgp-ceremony-inline-field .wgp-input,
    .wgp-ceremony-inline-field .wgp-welcome-arrival-input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #wgp-ceremony-time-location-wrap {
        overflow: hidden;
    }

    #wgp-ceremony-time-location-wrap #wgp-ceremony-time {
        display: block;
        width: 100% !important;
        max-width: 180px !important;
        min-width: 0 !important;
    }

    #wgp-ceremony-time-location-wrap #wgp-ceremony-location {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .wgp-welcome-time-item {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .wgp-welcome-time-main {
        flex-direction: column;
        align-items: stretch;
    }

    .wgp-welcome-arrival-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wgp-welcome-arrival-box {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .wgp-welcome-location-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .wgp-welcome-arrival-text {
        white-space: normal;
    }

    .wgp-welcome-arrival-time-wrap {
        width: 100%;
        justify-content: flex-start;
        padding: 6px;
    }

    .wgp-welcome-arrival-input {
        width: 100%;
    }

    #wgp-section-table_setup .wgp-table-setup-service-head {
        align-items: stretch;
        flex-direction: column;
    }

    .wgp-table-setup-external-toggle {
        width: 100%;
        justify-content: center;
    }

    .wgp-welcome-host-main-media,
    .wgp-bbq-main-media {
        height: 240px;
    }

    .wgp-welcome-host-thumbs,
    .wgp-bbq-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .wgp-welcome-host-thumb,
    .wgp-bbq-thumb {
        flex: 0 0 78px;
    }

    .wgp-bbq-thumb {
        width: 78px;
        height: 62px;
    }

    .wgp-bbq-content-col,
    .wgp-welcome-offer-side,
    .wgp-media-content,
    .wgp-drink-package-content,
    .wgp-drink-toast-content {
        min-width: 0;
    }

    .wgp-swedish-summary-footer,
    .wgp-swedish-qty-wrap,
    .wgp-swedish-price-row {
        align-items: flex-start;
    }

    .wgp-swedish-summary-footer,
    .wgp-swedish-qty-wrap {
        flex-direction: column;
        gap: 8px;
    }

    .wgp-swedish-basic-neutral-wrap,
    .wgp-swedish-qty-total {
        margin-left: 0;
    }

    .wgp-swedish-qty {
        width: 100%;
        max-width: 110px;
        min-width: 0;
    }

    #wgp-section-drinks .wgp-drink-package-card,
    #wgp-section-drinks .wgp-drink-toast-card,
    #wgp-section-drinks .wgp-drink-child-juice-card {
        padding: 14px !important;
    }

    .wgp-drink-package-layout {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .wgp-drink-package-layout > input[type="radio"] {
        margin-top: 3px;
    }

    #wgp-section-drinks .wgp-drinks-notes-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wgp-drink-toast-text,
    .wgp-welcome-offer-desc,
    .wgp-bbq-text,
    .wgp-ceremony-desc,
    .wgp-service-points {
        overflow-wrap: anywhere;
    }

    .wgp-drink-toast-card .wgp-form-grid,
    #wgp-child-toast-wrap .wgp-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .wgp-drink-toast-card .wgp-ceremony-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .wgp-toast-fruit-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .wgp-toast-fruit-help {
        max-width: none;
        text-align: left;
        white-space: normal;
    }

    #wgp-toast-drink,
    #wgp-drinks-form select,
    #wgp-drinks-form input[type="number"] {
        min-height: 46px;
        font-size: 16px;
    }

    .wgp-vendor-choice,
    .wgp-media-choice {
        width: 100%;
        max-width: none;
    }

    .wgp-vendor-media {
        width: 100%;
        max-width: 100%;
        margin: 0 0 14px;
        min-height: 190px;
        border-radius: 12px 12px 0 0;
    }

    .wgp-vendor-media-img {
        height: 190px;
    }

    .wgp-chat-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .wgp-chat-thread {
        height: min(56svh, 520px);
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        padding: 14px 12px;
    }

    .wgp-chat-compose-wrap {
        position: sticky;
        bottom: 0;
        border-radius: 0 0 16px 16px;
        border-top: 1px solid #e0e6f2;
        box-shadow: 0 -8px 20px rgba(15, 23, 42, .05);
        padding: 10px 12px 12px;
    }

    .wgp-chat-label {
        display: none;
    }

    .wgp-chat-form {
        gap: 8px;
    }

    .wgp-chat-form #wgp-chat-input {
        min-height: 56px !important;
        max-height: 132px;
        border-radius: 12px;
        resize: vertical;
    }

    .wgp-chat-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .wgp-chat-upload {
        width: 100%;
        min-height: 42px;
    }

    .wgp-chat-image-name {
        grid-column: 1 / -1;
        order: 3;
    }

    .wgp-chat-send-btn {
        width: auto;
        min-width: 112px;
        margin-left: 0;
    }

    .wgp-section-title {
        font-size: 26px;
        line-height: 1.15;
    }

    .wgp-section-desc {
        font-size: 15px;
        line-height: 1.5;
    }

    .wgp-card {
        padding: 16px;
        margin-bottom: 14px;
    }

    .wgp-card-header {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .wgp-menu-note-label {
        width: 100%;
        justify-content: space-between;
        align-self: stretch;
    }

    .wgp-nav-item {
        padding: 12px 14px;
        border-radius: 12px;
        margin: 0 8px 4px;
    }

    .wgp-menu-btn {
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    .wgp-nav-item.active {
        border-left-width: 0;
        box-shadow: inset 3px 0 0 var(--wg-primary);
    }

    .wgp-program-item,
    .wgp-program-main,
    .wgp-program-left,
    .wgp-program-right,
    .wgp-tl-item,
    .wgp-chat-item,
    .wgp-vendor-card,
    .wgp-guest-card,
    .wgp-table-card,
    .wgp-summary-row,
    .wgp-final-row {
        min-width: 0;
    }

    .wgp-program-time {
        font-size: 34px;
    }

    .wgp-program-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .wgp-filter-bar,
    .wg-filter-bar-public,
    .wg-allergen-checkboxes,
    .wgp-chip-row,
    .wgp-pill-row,
    .wgp-toolbar,
    .wgp-editor-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .wgp-filter-btn,
    .wg-filter-public,
    .wgp-chip,
    .wgp-pill {
        flex: 1 1 calc(50% - 8px);
        min-width: 130px;
        text-align: center;
    }

    .wgp-dec-gallery,
    .wg-decoration-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .wgp-dec-media,
    .wg-dec-image {
        height: 180px;
    }

    .wgp-media-header,
    .wgp-vendor-media,
    .wgp-extra-premium-media,
    .wgp-extra-premium-main-image {
        min-height: 160px;
    }

    .wgp-media-img,
    .wgp-vendor-media-img {
        height: 160px;
    }

    .wgp-welcome-arrival-text,
    .wg-couple-names,
    .wg-final-info .wg-section-header h2,
    .wgp-bbq-title {
        font-size: 24px;
        line-height: 1.15;
    }

    .wg-selection-summary {
        gap: 8px;
        padding: 14px;
    }

    .wg-decoration-item,
    .wg-ceremony-card-public,
    .wg-section-card,
    .wg-action-btn,
    .wg-layout-option,
    .wg-layout-table-list-item {
        min-width: 0;
    }

    .wg-guest-header,
    .wg-dashboard-hero-inner {
        padding: 18px 16px;
    }

    .wg-guest-seat-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wg-public-timeline-item {
        grid-template-columns: 52px 10px minmax(0, 1fr);
    }

    .wg-layout-switch-btn {
        flex: 1 1 calc(50% - 8px);
    }

    .wg-layout-preview-card,
    .wg-layout-options-card,
    .wg-layout-summary-card {
        padding: 16px;
    }

    .wg-layout-preview {
        width: min(100%, 780px);
        min-height: 440px;
        padding: 12px;
    }

    .wg-layout-zone {
        min-width: 220px;
    }

    .wg-layout-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .wg-layout-table-modal-card {
        width: calc(100vw - 24px);
        max-width: 100%;
        max-height: calc(100svh - 24px);
    }

    .wgp-tent-grid {
        grid-template-columns: 1fr;
    }

    .wgp-tent-main {
        border-right: none;
        border-bottom: 1px solid var(--wg-border);
    }

    .wgp-tent-side {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .wgp-tent-side-card,
    .wgp-tent-side-card .wgp-tent-list,
    .wgp-tent-side-card .wgp-tent-list li {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .wgp-tent-overlay-card {
        position: static;
        width: auto;
        margin: 12px;
        padding: 18px 16px;
    }

    /* iOS Safari hardening: keep tent rental cards strictly inside viewport. */
    #wgp-section-tent_rental .wgp-tent-rental,
    #wgp-section-tent_rental .wgp-tent-grid,
    #wgp-section-tent_rental .wgp-tent-main,
    #wgp-section-tent_rental .wgp-tent-overlay-card,
    #wgp-section-tent_rental .wgp-tent-side,
    #wgp-section-tent_rental .wgp-tent-side-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    #wgp-section-tent_rental .wgp-tent-overlay-card {
        margin: 12px 0 0;
        padding: 14px 12px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #wgp-section-tent_rental .wgp-tent-side {
        padding: 12px;
    }

    .wgp-tent-title,
    .wgp-tent-side-card h3 {
        font-size: clamp(26px, 8vw, 38px) !important;
        line-height: 1.05;
    }

    .wgp-tent-price {
        font-size: clamp(24px, 8vw, 34px) !important;
        text-align: left;
    }

    .wgp-tent-overlay-card .wgp-tent-list,
    .wgp-tent-side-card .wgp-tent-list {
        font-family: var(--wg-font-ui);
        font-size: clamp(15px, 3.8vw, 18px) !important;
        line-height: 1.45 !important;
        padding-left: 0;
    }

    .wgp-tent-overlay-card .wgp-tent-list li,
    .wgp-tent-side-card .wgp-tent-list li {
        padding-left: 16px;
        text-align: left;
        margin: 0 0 7px;
    }

    .wgp-tent-overlay-card .wgp-tent-list li::before,
    .wgp-tent-side-card .wgp-tent-list li::before {
        content: '\2022';
        top: 0;
        font-size: 1.05em;
    }

    #wgp-section-welcome .wgp-welcome-host-menu-wrap {
        text-align: left;
    }

    #wgp-section-welcome .wgp-welcome-host-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px 14px;
    }

    #wgp-section-welcome .wgp-welcome-host-menu-grid ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #wgp-section-welcome .wgp-welcome-host-menu-grid li {
        position: relative;
        margin: 0 0 6px;
        padding-left: 14px;
        text-align: left;
        line-height: 1.35;
    }

    #wgp-section-welcome .wgp-welcome-host-menu-grid li::before {
        content: '\2022';
        position: absolute;
        left: 0;
        top: 0;
        color: var(--wg-primary);
        font-weight: 700;
    }

    /* Ensure prices are positioned on the right side in welcome snack items and other cards on mobile. */
    #wgp-section-welcome .wgp-choice-card-meta-row {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        margin-top: 4px;
    }

    #wgp-section-welcome .wgp-choice-card-price {
        text-align: right;
        flex: 0 0 auto;
    }

    #wgp-section-welcome .wgp-choice-card-meta-muted {
        flex: 1 1 auto;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .wgp-main,
    .wg-public-dashboard,
    .wg-public-ceremony-selection,
    .wg-public-details-form,
    .wg-final-info,
    .wg-allergen-form,
    .wg-decoration-choice,
    .wg-guest-view,
    .wg-layout-public {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wgp-header {
        padding: 10px 14px;
    }

    .wgp-menu-btn {
        margin-bottom: 12px;
    }

    .wgp-welcome-host-main-media,
    .wgp-bbq-main-media,
    .wgp-vendor-media,
    .wgp-media-header {
        min-height: 210px;
    }

    .wgp-vendor-media-img,
    .wgp-media-img {
        height: 210px;
    }

    .wgp-drink-toast-card .wgp-ceremony-grid {
        grid-template-columns: 1fr;
    }

    .wgp-chat-thread {
        height: min(52svh, 460px);
    }

    .wgp-chat-actions {
        grid-template-columns: 1fr;
    }

    .wgp-chat-send-btn {
        width: 100%;
    }

    .wgp-card,
    .wg-progress-section,
    .wg-overview-contact,
    .wg-next-appointment,
    .wg-quick-actions,
    .wg-recent-updates,
    .wg-final-card,
    .wg-info-section,
    .wg-guest-card,
    .wg-form-section,
    .wg-layout-preview-card,
    .wg-layout-options-card,
    .wg-layout-summary-card,
    .wgp-tent-overlay-card,
    .wgp-tent-side-card {
        padding: 14px;
    }

    .wgp-section-title,
    .wg-public-dashboard h1,
    .wg-public-ceremony-selection h2,
    .wg-public-details-form h2,
    .wg-final-info .wg-section-header h2,
    .wg-allergen-form h2,
    .wg-decoration-choice h2,
    .wg-guest-view h1,
    .wg-layout-public-head h2 {
        font-size: 22px;
    }

    .wgp-section-desc,
    .wg-section-header p,
    .wg-layout-public-note,
    .wgp-tent-footer-note {
        font-size: 14px;
    }

    #wgp-section-guests .wg-layout-mobile-limits-note {
        display: block;
        font-size: 12px;
        line-height: 1.3;
        padding: 7px 9px;
        margin-bottom: 10px;
    }

    .wgp-filter-btn,
    .wg-filter-public,
    .wg-layout-switch-btn,
    .wgp-chip,
    .wgp-pill {
        flex-basis: 100%;
        min-width: 0;
    }

    .wgp-dec-gallery,
    .wg-decoration-gallery,
    .wgp-bbq-dishes-grid,
    .wgp-drinks-notes-grid,
    .wgp-swedish-gastronomy-gallery,
    .wgp-print-gallery,
    .wgp-graphic-gallery {
        grid-template-columns: 1fr !important;
    }

    .wgp-dec-media,
    .wg-dec-image,
    .wgp-tent-photo-wrap,
    .wgp-tent-photo-wrap-secondary {
        height: 190px;
    }

    .wg-progress-header strong,
    .wg-overview-days,
    .wgp-overview-days-value {
        font-size: 24px;
    }

    .wg-action-buttons,
    .wg-sections-grid {
        grid-template-columns: 1fr !important;
    }

    .wg-guest-info-table {
        display: block;
        width: 100%;
    }

    .wg-guest-info-table tbody,
    .wg-guest-info-table tr,
    .wg-guest-info-table td {
        display: block;
        width: 100%;
    }

    .wg-guest-info-table tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--wg-border);
    }

    .wg-guest-info-table td {
        padding: 0;
    }

    .wg-guest-info-table td + td {
        margin-top: 4px;
    }

    .wg-allergen-table {
        min-width: 720px;
    }

    .wg-allergen-badges {
        min-width: 160px;
    }

    .wg-allergen-checkboxes {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wg-modal {
        padding: 12px;
    }

    .wg-modal-content,
    .wg-layout-table-modal-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .wg-modal-header,
    .wg-modal-body,
    .wg-layout-table-modal-head,
    .wg-layout-table-modal-body,
    .wg-layout-table-modal-foot {
        padding-left: 14px;
        padding-right: 14px;
    }

    .wg-layout-preview {
        min-height: 360px;
    }

    .wg-layout-zones {
        min-width: 620px;
    }

    .wg-layout-table-row {
        grid-template-columns: 1fr;
    }

    .wg-public-timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 0;
    }

    .wg-tl-dot {
        display: none;
    }

    .wgp-chat-messages {
        max-height: 52svh;
    }

    .wgp-toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .wgp-sidebar {
        width: min(82vw, 280px);
        max-width: 280px;
    }

    .wgp-header,
    .wgp-main,
    .wg-public-dashboard,
    .wg-public-ceremony-selection,
    .wg-public-details-form,
    .wg-final-info,
    .wg-allergen-form,
    .wg-decoration-choice,
    .wg-guest-view,
    .wg-layout-public {
        padding-left: 12px;
        padding-right: 12px;
    }

    .wgp-card,
    .wg-progress-section,
    .wg-overview-contact,
    .wg-next-appointment,
    .wg-quick-actions,
    .wg-recent-updates,
    .wg-final-card,
    .wg-info-section,
    .wg-guest-card,
    .wg-form-section,
    .wg-layout-preview-card,
    .wg-layout-options-card,
    .wg-layout-summary-card,
    .wgp-tent-overlay-card,
    .wgp-tent-side-card {
        padding: 12px;
    }

    .wgp-names,
    .wg-couple-names,
    .wg-guest-view h1 {
        font-size: 20px;
    }

    .wgp-section-title,
    .wg-public-ceremony-selection h2,
    .wg-public-details-form h2,
    .wg-final-info .wg-section-header h2,
    .wg-allergen-form h2,
    .wg-decoration-choice h2,
    .wg-layout-public-head h2,
    .wgp-welcome-arrival-text,
    .wgp-bbq-title {
        font-size: 20px;
    }

    .wgp-program-time {
        font-size: 28px;
    }

    .wgp-program-title,
    .wg-final-card h3,
    .wg-info-section h3,
    .wg-form-section h3 {
        font-size: 17px;
    }

    .wgp-vendor-media {
        width: 100%;
        max-width: 100%;
        margin: 0 0 12px;
    }

    .wgp-chat-thread,
    .wgp-chat-compose-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .wgp-chat-thread {
        padding: 12px 10px;
    }

    .wgp-chat-compose-wrap {
        padding: 10px 10px 12px;
    }

    .wgp-dec-media,
    .wg-dec-image,
    .wgp-tent-photo-wrap,
    .wgp-tent-photo-wrap-secondary {
        height: 170px;
    }

    .wg-layout-preview {
        min-height: 320px;
        padding: 10px;
    }

    .wg-layout-zones {
        min-width: 540px;
    }

    .wgp-tent-title,
    .wgp-tent-side-card h3 {
        font-size: clamp(22px, 9vw, 30px) !important;
    }

    .wgp-tent-price {
        font-size: clamp(22px, 9vw, 30px) !important;
    }
}

@media (max-width: 920px) {
    #wg-planner #wgp-mobile-section-nav {
        display: none;
        gap: 10px;
        margin: 18px 0 2px;
        justify-content: space-between;
    }

    #wg-planner #wgp-mobile-section-nav.is-visible {
        display: flex;
    }

    #wg-planner #wgp-mobile-section-nav.is-single {
        justify-content: flex-end;
    }

    #wg-planner #wgp-mobile-section-nav.is-single.is-prev {
        justify-content: flex-start;
    }

    #wg-planner #wgp-mobile-section-nav.is-single.is-next {
        justify-content: flex-end;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-btn {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #e6d5c1;
        border-radius: 12px;
        background: #fff;
        color: #5a3b1f;
        font-size: 12px;
        font-weight: 700;
        padding: 9px 10px;
        line-height: 1.15;
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    #wg-planner #wgp-mobile-section-nav.is-single .wgp-mobile-section-btn {
        flex: 0 1 auto;
        max-width: 78%;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-btn-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-arrow {
        flex: 0 0 auto;
        font-size: 14px;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-btn:active {
        transform: translateY(1px);
    }

    .wgp-menu-btn {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0;
        max-width: none !important;
        padding: 10px 18px !important;
        font-size: 15px !important;
        line-height: 1.1;
        margin: 8px 6px 16px auto !important;
    }

    .wgp-main,
    .wgp-section,
    .wgp-section.active,
    .wgp-section > form,
    .wgp-section > div,
    .wgp-section > form > div {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .wgp-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    #wgp-section-welcome form,
    #wgp-section-ceremony form,
    #wgp-section-print_materials form,
    #wgp-section-table_setup form,
    #wgp-section-menu form,
    #wgp-section-swedish_tables form,
    #wgp-section-drinks form,
    #wgp-section-decorations form,
    #wgp-section-accommodation form,
    #wgp-section-extras form {
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
    }

    #wgp-section-ceremony [style*="max-width:"],
    #wgp-section-welcome [style*="max-width:"],
    #wgp-section-print_materials [style*="max-width:"],
    #wgp-section-table_setup [style*="max-width:"],
    #wgp-section-menu [style*="max-width:"],
    #wgp-section-swedish_tables [style*="max-width:"],
    #wgp-section-drinks [style*="max-width:"],
    #wgp-section-decorations [style*="max-width:"],
    #wgp-section-accommodation [style*="max-width:"],
    #wgp-section-extras [style*="max-width:"],
    #wgp-section-vendors [style*="max-width:"],
    #wgp-section-chat [style*="max-width:"] {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #wgp-section-ceremony [style*="min-width:"],
    #wgp-section-welcome [style*="min-width:"],
    #wgp-section-print_materials [style*="min-width:"],
    #wgp-section-table_setup [style*="min-width:"],
    #wgp-section-menu [style*="min-width:"],
    #wgp-section-swedish_tables [style*="min-width:"],
    #wgp-section-drinks [style*="min-width:"],
    #wgp-section-decorations [style*="min-width:"],
    #wgp-section-accommodation [style*="min-width:"],
    #wgp-section-extras [style*="min-width:"],
    #wgp-section-vendors [style*="min-width:"] {
        min-width: 0 !important;
    }

    #wgp-section-welcome .wgp-card,
    #wgp-section-ceremony .wgp-card,
    #wgp-section-overview .wgp-card,
    #wgp-section-print_materials .wgp-card,
    #wgp-section-table_setup .wgp-card,
    #wgp-section-menu .wgp-card,
    #wgp-section-swedish_tables .wgp-card,
    #wgp-section-drinks .wgp-card,
    #wgp-section-accommodation .wgp-card,
    #wgp-section-extras .wgp-card,
    #wgp-section-chat .wgp-card,
    #wgp-section-overview .wgp-info-tile,
    #wgp-section-overview .wgp-section-tile,
    #wgp-section-ceremony .wgp-choice-card,
    #wgp-section-welcome .wgp-media-choice,
    #wgp-section-print_materials .wgp-media-choice,
    #wgp-section-swedish_tables .wgp-media-choice,
    #wgp-section-drinks .wgp-media-choice,
    #wgp-section-accommodation .wgp-media-choice,
    #wgp-section-extras .wgp-media-choice,
    #wgp-section-extras .wgp-extra-premium-card,
    #wgp-section-print_materials .wgp-choice-card,
    #wgp-section-table_setup .wgp-choice-card,
    #wgp-section-drinks .wgp-drink-package-card,
    #wgp-section-drinks .wgp-drink-toast-card {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-width: 0;
    }

    #wgp-section-overview .wgp-info-grid,
    #wgp-section-overview .wgp-sections-grid,
    #wgp-section-overview .wgp-overview-top-grid {
        width: 100% !important;
        max-width: 100% !important;
    }

    #wgp-section-overview .wgp-info-grid {
        grid-template-columns: 1fr !important;
    }

    #wgp-section-overview .wgp-info-tile {
        align-items: center;
        justify-content: flex-start;
    }

    #wgp-section-overview .wgp-overview-couple-tile .wgp-info-icon {
        display: none;
    }

    #wgp-section-overview .wgp-info-tile-guests,
    #wgp-section-overview .wgp-info-tile-budget {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        text-align: center;
    }

    #wgp-section-overview .wgp-info-tile-guests.wgp-overview-family-tile {
        min-height: 0 !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #wgp-section-overview .wgp-info-tile-budget > div {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-guest-form,
    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-guest-row,
    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-children-row {
        width: 100% !important;
        max-width: 100% !important;
    }

    #wgp-section-overview .wgp-info-tile-guests .wgp-info-guests-content {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px;
        align-items: stretch;
    }

    #wgp-section-overview .wgp-overview-family-top,
    #wgp-section-overview .wgp-overview-family-bottom {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        display: block;
    }

    #wgp-section-overview .wgp-overview-family-stat {
        height: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        overflow: hidden;
        box-sizing: border-box;
        padding: 6px 12px;
        gap: 6px;
    }

    #wgp-section-overview .wgp-overview-family-stat-label {
        min-width: 0;
        font-size: 14px;
        padding-left: 2px;
    }

    #wgp-section-overview .wgp-overview-family-stat form {
        margin: 0;
        justify-self: end;
        width: auto;
        max-width: 100%;
        flex: 0 0 auto;
    }

    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-children-form {
        display: block !important;
    }

    #wgp-section-overview .wgp-overview-family-stat-children {
        margin-top: 0;
    }

    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-guest-form {
        display: block !important;
    }

    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-guest-row {
        display: block !important;
        width: 100% !important;
    }

    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-guest-input,
    #wgp-section-overview .wgp-info-tile-guests .wgp-overview-children-input {
        width: 52px !important;
        max-width: 52px !important;
        min-width: 52px !important;
        height: 34px !important;
        padding: 4px 6px !important;
        margin: 0 !important;
        text-align: center;
        font-size: 14px;
    }

    #wgp-section-overview .wgp-overview-budget-row-person .wgp-overview-budget-line {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    #wgp-section-overview .wgp-overview-budget-row-person .wgp-overview-budget-label,
    #wgp-section-overview .wgp-overview-budget-row-person .wgp-overview-budget-value {
        white-space: nowrap;
    }

    #wgp-section-overview .wgp-overview-budget-row-person .wgp-overview-budget-label {
        font-size: 13px;
    }

    #wgp-section-overview .wgp-overview-budget-row-person .wgp-overview-budget-value {
        font-size: 17px;
        line-height: 1.1;
    }

    #wgp-section-overview .wgp-overview-guest-label,
    #wgp-section-overview .wgp-overview-price-meta,
    #wgp-section-overview .wgp-check-sub {
        white-space: normal;
    }

    #wgp-section-overview #wgp-overview-price-value {
        width: auto;
        text-align: left !important;
    }

    #wgp-section-overview #wgp-overview-price-meta {
        width: 100%;
        text-align: center !important;
    }

    #wgp-section-ceremony .wgp-ceremony-grid,
    #wgp-section-welcome .wgp-ceremony-grid,
    #wgp-section-print_materials .wgp-welcome-offer-grid,
    #wgp-section-table_setup .wgp-ceremony-grid,
    #wgp-section-table_setup .wgp-table-setup-offer-grid,
    #wgp-section-drinks .wgp-ceremony-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #wgp-section-print_materials .wgp-welcome-offer-choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #wgp-section-drinks .wgp-choice-inline-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #wgp-section-drinks .wgp-choice-inline-grid > .wgp-choice-card {
        min-width: 0;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 8px !important;
    }

    #wgp-section-print_materials .wgp-welcome-offer-choices > .wgp-choice-card strong,
    #wgp-section-drinks .wgp-choice-inline-grid > .wgp-choice-card strong {
        white-space: nowrap;
    }

    /* Right-thumb priority on mobile: put "Chceme" to the right in Print Materials. */
    #wgp-section-print_materials .wgp-welcome-offer-choices > .wgp-choice-card:first-child {
        order: 2;
    }

    #wgp-section-print_materials .wgp-welcome-offer-choices > .wgp-choice-card:last-child {
        order: 1;
    }

    #wgp-section-print_materials .wgp-welcome-offer-choices > .wgp-choice-card {
        min-width: 0;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 8px !important;
    }

    #wgp-section-print_materials .wgp-welcome-offer-choices > .wgp-choice-card strong {
        white-space: nowrap;
    }

    #wgp-section-welcome .wgp-welcome-host-grid .wgp-choices-stack-min160 {
        min-height: 0 !important;
        height: auto !important;
    }

    #wgp-section-welcome .wgp-welcome-host-grid .wgp-welcome-offer-price {
        margin-top: 8px !important;
        align-self: flex-end;
    }

    #wgp-section-ceremony .wgp-card,
    #wgp-section-welcome .wgp-card,
    #wgp-section-print_materials .wgp-card,
    #wgp-section-table_setup .wgp-card,
    #wgp-section-drinks .wgp-card,
    #wgp-section-accommodation .wgp-card,
    #wgp-section-extras .wgp-card {
        overflow: hidden;
    }

    #wgp-section-welcome .wgp-input,
    #wgp-section-print_materials .wgp-input,
    #wgp-section-table_setup .wgp-input,
    #wgp-section-menu .wgp-input,
    #wgp-section-swedish_tables .wgp-input,
    #wgp-section-drinks .wgp-input,
    #wgp-section-accommodation .wgp-input,
    #wgp-section-extras .wgp-input,
    #wgp-section-chat .wgp-input,
    #wgp-section-welcome select,
    #wgp-section-print_materials select,
    #wgp-section-table_setup select,
    #wgp-section-menu select,
    #wgp-section-swedish_tables select,
    #wgp-section-drinks select,
    #wgp-section-accommodation select,
    #wgp-section-extras select,
    #wgp-section-chat select,
    #wgp-section-welcome textarea,
    #wgp-section-print_materials textarea,
    #wgp-section-table_setup textarea,
    #wgp-section-menu textarea,
    #wgp-section-swedish_tables textarea,
    #wgp-section-drinks textarea,
    #wgp-section-accommodation textarea,
    #wgp-section-extras textarea,
    #wgp-section-chat textarea {
        width: 100% !important;
        max-width: none !important;
    }

    #wgp-section-welcome .wgp-welcome-host-grid,
    #wgp-section-print_materials .wgp-print-gallery,
    #wgp-section-table_setup .wgp-table-setup-offer-grid,
    #wgp-section-drinks .wgp-drink-packages-grid,
    #wgp-section-drinks .wgp-drink-toast-hero,
    #wgp-section-accommodation .wgp-ceremony-grid,
    #wgp-section-extras .wgp-extras-mixed-grid,
    #wgp-section-extras .wgp-extra-premium-hero {
        grid-template-columns: 1fr !important;
    }

    #wgp-section-table_setup .wgp-card > div[style*="display:grid"],
    #wgp-section-menu .wgp-form-grid,
    #wgp-section-drinks .wgp-form-grid {
        grid-template-columns: 1fr !important;
    }

    #wgp-section-welcome .wgp-media-header,
    #wgp-section-print_materials .wgp-media-header,
    #wgp-section-accommodation .wgp-media-header,
    #wgp-section-extras .wgp-media-header,
    #wgp-section-extras .wgp-extra-premium-media,
    #wgp-section-extras .wgp-extra-premium-main-image,
    #wgp-section-drinks .wgp-drink-toast-media,
    #wgp-section-drinks .wgp-drink-toast-image {
        min-height: 220px !important;
        height: 220px !important;
    }

    #wgp-section-drinks .wgp-drink-toast-media {
        height: auto !important;
    }

    #wgp-section-welcome .wgp-media-img,
    #wgp-section-print_materials .wgp-media-img,
    #wgp-section-accommodation .wgp-media-img,
    #wgp-section-extras .wgp-media-img,
    #wgp-section-drinks .wgp-drink-toast-image,
    #wgp-section-extras .wgp-extra-premium-thumb img {
        height: 220px !important;
    }

    #wgp-section-print_materials,
    #wgp-section-table_setup,
    #wgp-section-swedish_tables,
    #wgp-section-drinks,
    #wgp-section-accommodation,
    #wgp-section-extras,
    #wgp-section-graphics {
        overflow-x: clip;
    }

    #wgp-section-menu .wgp-menu-option {
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #wgp-section-menu .wgp-menu-option-input {
        display: inline-block;
    }

    #wgp-section-menu .wgp-menu-option > div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0;
    }

    #wgp-section-menu .wgp-menu-option > div[style*="display:flex"] > div[style*="flex:1 1 auto"] {
        width: 100% !important;
        min-width: 0;
    }

    #wgp-section-menu .wgp-menu-option > div[style*="display:flex"] > div[style*="flex:0 0 220px"] {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    #wgp-section-menu .wgp-menu-option > div[style*="display:flex"] > div[style*="flex:0 0 220px"] img {
        width: 100% !important;
        height: 196px !important;
        object-fit: cover;
    }

    #wgp-section-menu .wgp-menu-price-line {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        max-width: 100%;
        border-radius: 12px;
        margin-right: 8px;
        vertical-align: middle;
    }

    #wgp-section-menu .wgp-menu-price-chip {
        white-space: nowrap;
        min-width: 0;
        padding: 5px 10px;
        line-height: 1.2;
    }

    #wgp-section-menu .wgp-menu-price-chip-main {
        flex: 0 0 auto;
        font-size: 9px;
    }

    #wgp-section-menu .wgp-menu-price-chip-sub {
        flex: 0 0 auto;
        width: auto !important;
        border-top: 0 !important;
        border-left: 1px solid #eadfce !important;
        justify-content: flex-start;
        text-align: left;
        font-size: 9px;
    }

       #wgp-section-menu .wgp-allergen-tag-small {
        display: -webkit-inline-box;
        margin: 0;
        vertical-align: bottom;
        font-size: 8px;
    }

    #wgp-menu-children-wrap .wgp-form-grid,
    #wgp-menu-vegan-wrap .wgp-form-grid,
    #wgp-section-menu .wgp-menu-main-side-wrap {
        width: 100%;
        max-width: 100%;
    }

    #wgp-menu-children-wrap .wgp-form-grid,
    #wgp-menu-vegan-wrap .wgp-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    #wgp-menu-children-wrap .wgp-form-group,
    #wgp-menu-vegan-wrap .wgp-form-group {
        width: 100%;
    }

    #wgp-menu-children-wrap .wgp-form-group:last-child,
    #wgp-menu-vegan-wrap .wgp-form-group:last-child {
        max-width: 220px;
        margin-left: auto;
    }

    #wgp-menu-children-wrap select.wgp-input,
    #wgp-menu-vegan-wrap select.wgp-input,
    #wgp-section-menu .wgp-menu-main-side-wrap select.wgp-input,
    #wgp-menu-children-wrap input.wgp-input,
    #wgp-menu-vegan-wrap input.wgp-input {
        min-height: 54px;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 1.35;
        -webkit-text-fill-color: currentColor;
    }

    #wgp-menu-children-wrap select.wgp-input:disabled,
    #wgp-menu-vegan-wrap select.wgp-input:disabled,
    #wgp-menu-children-wrap input.wgp-input:disabled,
    #wgp-menu-vegan-wrap input.wgp-input:disabled {
        opacity: 1;
        color: #7a7a7a;
        -webkit-text-fill-color: #7a7a7a;
    }

    #wgp-menu-children-wrap input[type="number"].wgp-input,
    #wgp-menu-vegan-wrap input[type="number"].wgp-input {
        text-align: center;
    }

    #wgp-menu-children-wrap .wgp-mobile-qty,
    #wgp-menu-vegan-wrap .wgp-mobile-qty {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 6px;
    }

    #wgp-menu-children-wrap .wgp-mobile-qty .wgp-mobile-qty-btn,
    #wgp-menu-vegan-wrap .wgp-mobile-qty .wgp-mobile-qty-btn {
        height: 44px;
        font-size: 21px;
    }

    .wgp-mobile-qty {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
        align-items: center;
        width: 100%;
    }

    .wgp-mobile-qty-field {
        min-width: 0;
    }

    .wgp-mobile-qty .wgp-mobile-qty-btn {
        appearance: none;
        border: 1px solid #e2d0bc;
        background: #fff;
        color: #6e4522;
        font-size: 22px;
        font-weight: 700;
        line-height: 1;
        height: 46px;
        border-radius: 12px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .wgp-mobile-qty .wgp-mobile-qty-btn:disabled {
        opacity: 0.45;
    }

    .wgp-mobile-qty .wgp-input[type="number"] {
        text-align: center;
        min-height: 46px;
        height: 46px;
        padding-left: 8px;
        padding-right: 8px;
    }

    #wgp-section-swedish_tables .wgp-swedish-summary,
    #wgp-section-drinks .wgp-drinks-notes-card,
    #wgp-section-drinks .wgp-drink-package-layout,
    #wgp-section-accommodation .wgp-media-content,
    #wgp-section-extras .wgp-extra-premium-content {
        width: 100%;
        min-width: 0;
    }

    #wgp-section-drinks .wgp-drink-package-layout,
    #wgp-section-drinks .wgp-welcome-offer-grid {
        grid-template-columns: 1fr !important;
    }

    #wgp-section-drinks .wgp-drink-package-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    #wgp-section-drinks .wgp-drink-package-layout > input[type="radio"] {
        margin: 0;
        justify-self: start;
    }

    #wgp-section-drinks .wgp-drink-package-content {
        align-items: flex-start;
        text-align: left;
    }

    /* On mobile, avoid desktop equal-height stretching that creates empty space under last item. */
    #wgp-section-drinks .wgp-drink-package-card {
        height: auto;
    }

    #wgp-section-drinks .wgp-drink-package-layout {
        height: auto;
        flex: 0 1 auto;
    }

    #wgp-section-drinks .wgp-drink-package-content {
        min-height: 0;
    }

    #wgp-section-drinks .wgp-drink-package-content .wgp-drink-items,
    #wgp-section-drinks .wgp-drink-package-content .wgp-drink-name,
    #wgp-section-drinks .wgp-drink-package-content .wgp-drink-price,
    #wgp-section-drinks .wgp-drink-package-content .wgp-overview-price-meta,
    #wgp-section-drinks .wgp-drink-package-content p,
    #wgp-section-drinks .wgp-drink-package-content small {
        text-align: right;
    }

    #wgp-section-drinks .wgp-drink-package-card,
    #wgp-section-drinks .wgp-drink-toast-card,
    #wgp-section-drinks .wgp-drink-child-juice-card,
    #wgp-section-drinks .wgp-drinks-notes-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    #wgp-section-swedish_tables .wgp-swedish-summary-footer,
    #wgp-section-swedish_tables .wgp-swedish-basic-neutral-wrap {
        width: 100%;
    }

    #wgp-section-swedish_tables .wgp-swedish-basic-neutral-wrap {
        display: flex;
        justify-content: flex-end;
    }

    #wgp-section-swedish_tables .wgp-swedish-evening-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #wgp-section-swedish_tables .wgp-swedish-evening-count {
        max-width: 100%;
        width: 100%;
    }

    #wgp-section-swedish_tables .wgp-swedish-price-row {
        justify-content: flex-end;
        align-items: center;
        text-align: right;
    }

    #wgp-section-swedish_tables .wgp-swedish-grammage {
        margin-left: auto;
        text-align: right;
    }

    #wgp-section-swedish_tables .wgp-swedish-qty-wrap {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }

    #wgp-section-swedish_tables .wgp-swedish-qty-wrap .wgp-mobile-qty {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
    }

    #wgp-bbq-form .wgp-swedish-qty-wrap .wgp-mobile-qty {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 4px;
    }

    #wgp-bbq-form .wgp-bbq-dish-qty {
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
    }

    #wgp-section-swedish_tables .wgp-swedish-qty {
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
    }

    #wgp-section-swedish_tables .wgp-swedish-qty-total {
        margin-left: auto;
        text-align: right;
    }

    #wgp-section-accommodation .wgp-media-choice {
        overflow: hidden;
    }

    #wgp-section-swedish_tables .wgp-media-choice {
        overflow: hidden;
    }

    #wgp-section-swedish_tables .wgp-media-header {
        width: calc(100% + 32px);
        max-width: none;
        margin: -16px -16px 14px;
        min-height: 190px !important;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
    }

    #wgp-section-swedish_tables .wgp-media-img {
        width: 100%;
        height: 190px !important;
        object-fit: cover;
        object-position: center top;
    }

    #wgp-section-accommodation .wgp-media-header {
        width: calc(100% + 32px);
        max-width: none;
        margin: -16px -16px 14px;
        min-height: 190px !important;
        border-radius: 14px 14px 0 0;
        overflow: hidden;
    }

    #wgp-section-accommodation .wgp-media-img {
        height: 190px !important;
        object-position: center top;
    }

    #wgp-section-guests .wg-layout-public-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #wgp-section-guests .wg-layout-public {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    #wgp-section-guests .wg-layout-public-note {
        display: none !important;
    }

    #wgp-section-overview .wgp-overview-couple-tile {
        display: none !important;
    }

    #wgp-section-guests .wg-layout-public-grid {
        gap: 8px !important;
    }

    #wgp-section-guests .wg-layout-switch-row,
    #wgp-section-guests .wg-layout-top-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #wgp-section-guests .wg-layout-phase-switch,
    #wgp-section-guests .wg-layout-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    #wgp-section-guests .wg-layout-switch .wg-layout-switch-btn {
        width: 100% !important;
        min-width: 0;
    }

    #wgp-section-guests .wg-layout-top-actions--head {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    #wgp-section-guests .wg-layout-top-actions--head .wgp-btn-primary,
    #wgp-section-guests .wg-layout-top-actions--head .wgp-btn-secondary {
        width: 100% !important;
        min-width: 0;
    }

    #wgp-section-guests .wg-layout-top-actions--head #wg-layout-save-btn,
    #wgp-section-guests .wg-layout-top-actions--head #wg-layout-save-status {
        display: none !important;
    }

    #wgp-section-guests .wg-layout-preview-card {
        width: calc(100% + 36px);
        max-width: none;
        margin-left: -18px;
        margin-right: -18px;
        margin-top: 10px;
        margin-bottom: 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 8px !important;
        overflow: hidden;
    }

    #wgp-section-guests .wg-layout-preview {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 360px;
        margin: 0;
    }

    #wgp-section-guests .wg-layout-options-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px !important;
        overflow: hidden;
    }

    #wgp-section-guests .wg-layout-phase,
    #wgp-section-guests .wg-layout-options-group,
    #wgp-section-guests #wg-layout-head-options,
    #wgp-section-guests #wg-layout-guest-options {
        min-width: 0;
        max-width: 100%;
    }

    /* Keep bottom selector cards visually close to desktop style on mobile */
    #wgp-section-guests .wg-layout-phase-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    #wgp-section-guests .wg-layout-phase-btn {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 0;
        max-width: 100%;
        line-height: 1.1;
        text-align: center;
        padding: 8px 10px;
    }

    #wgp-section-guests .wg-layout-option {
        padding: 12px;
        margin-bottom: 12px;
        overflow: visible;
    }

    #wgp-section-guests .wg-layout-carousel-nav {
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) 32px !important;
        align-items: center;
        column-gap: 8px;
        min-width: 0;
        width: 100%;
        justify-items: center;
    }

    #wgp-section-guests .wg-layout-carousel-arrow {
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        padding: 0;
        line-height: 1;
        order: unset !important;
    }

    #wgp-section-guests .wg-layout-carousel-arrow[data-dir="-1"] {
        justify-self: start;
        order: unset !important;
    }

    #wgp-section-guests .wg-layout-carousel-arrow[data-dir="1"] {
        justify-self: end;
        order: unset !important;
    }

    #wgp-section-guests .wg-layout-carousel-counter {
        text-align: center;
        min-width: 0;
        order: unset !important;
        justify-self: center;
    }

    #wgp-section-guests .wg-layout-carousel-nav > * {
        order: unset !important;
    }

    #wgp-section-guests .wg-layout-option-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    #wgp-section-guests .wg-layout-option-top strong {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

    #wgp-section-guests .wg-layout-option-price {
        justify-self: start;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #wgp-section-guests .wg-layout-option-image {
        width: 100%;
        max-width: 100%;
        height: 150px;
        margin-top: 8px;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-option,
    #wgp-section-guests #wg-layout-guest-options .wg-layout-option {
        padding: 10px;
        margin-bottom: 10px;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-option-image {
        height: 118px;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-option {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "nav nav"
            "top top"
            "img img"
            "meta btn";
        gap: 8px;
        align-items: center;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-carousel-nav { grid-area: nav; }
    #wgp-section-guests #wg-layout-head-options .wg-layout-option-top { grid-area: top; }
    #wgp-section-guests #wg-layout-head-options .wg-layout-option-image { grid-area: img; }
    #wgp-section-guests #wg-layout-head-options .wg-layout-option-meta {
        grid-area: meta;
        margin: 0;
        align-self: center;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-head-toggle {
        grid-area: btn;
        width: auto !important;
        min-width: 0;
        max-width: 100%;
        margin: 0 !important;
        white-space: normal;
        padding: 8px 12px;
        justify-self: end;
    }

    #wgp-section-guests #wg-layout-guest-options .wg-layout-option {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "nav nav"
            "top top"
            "img img"
            "qty btn";
        gap: 8px;
        align-items: center;
    }

    #wgp-section-guests #wg-layout-guest-options .wg-layout-carousel-nav { grid-area: nav; }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-option-top { grid-area: top; }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-option-image {
        grid-area: img;
        height: 122px;
    }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-row {
        grid-area: qty;
        margin: 0;
        justify-self: start;
    }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-row label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        grid-template-columns: none;
    }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-text {
        display: inline;
    }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-row input {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
        margin: 0;
    }
    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-apply {
        grid-area: btn;
        margin-top: 0;
        justify-self: end;
        width: auto !important;
        min-width: 0;
        white-space: normal;
    }

    #wgp-section-guests .wg-layout-option-meta {
        text-align: left;
    }

    #wgp-section-guests #wg-layout-tutorial-modal .wg-layout-tutorial-foot {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    #wgp-section-guests #wg-layout-tutorial-modal .wg-layout-tutorial-foot .wgp-btn-secondary,
    #wgp-section-guests #wg-layout-tutorial-modal .wg-layout-tutorial-foot .wgp-btn-primary {
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }

    #wgp-section-guests .wg-layout-qty-row label {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 96px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }

    #wgp-section-guests .wg-layout-zones {
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    #wgp-section-guests .wg-layout-zone {
        min-width: 0 !important;
        max-width: 100%;
        border-width: 2px;
        border-radius: 6px;
        border-color: rgba(45, 45, 45, .86) !important;
        background: rgba(216, 204, 195, .45) !important;
    }

    #wgp-section-guests .wg-layout-zone[data-zone-key*="dance"],
    #wgp-section-guests .wg-layout-zone[data-zone-key*="parket"] {
        border-color: rgba(48, 92, 142, .9) !important;
        background: rgba(184, 198, 218, .55) !important;
    }

    #wgp-section-guests .wg-layout-zone-label {
        display: none !important;
    }

    /* Deep mobile audit safety: ensure nothing in guests section overflows viewport */
    #wgp-section-guests,
    #wgp-section-guests .wg-layout-public,
    #wgp-section-guests .wg-layout-public-grid,
    #wgp-section-guests .wg-layout-options-card,
    #wgp-section-guests .wg-layout-phase,
    #wgp-section-guests .wg-layout-options-group,
    #wgp-section-guests .wg-layout-option,
    #wgp-section-guests #wg-layout-head-options,
    #wgp-section-guests #wg-layout-guest-options {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        overflow-x: clip;
    }

    #wgp-section-guests .wg-layout-preview {
        overflow: hidden;
    }

    #wgp-section-guests .wg-layout-option-btn {
        max-width: 100%;
    }

    #wgp-section-guests #wg-layout-table-list {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    #wgp-section-guests .wg-layout-table-list-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    #wgp-section-guests .wg-layout-table-list-item > div {
        min-width: 0;
    }

    #wgp-section-guests .wg-layout-table-list-item strong,
    #wgp-section-guests .wg-layout-table-list-item small {
        display: block;
        overflow-wrap: anywhere;
    }

    #wgp-section-guests .wg-layout-edit-table {
        width: auto !important;
        min-width: 104px;
        max-width: none;
        justify-self: end;
    }

    #wgp-section-guests .wg-layout-option-top {
        min-width: 0;
    }

    #wgp-section-guests .wg-layout-option-price {
        white-space: normal;
        overflow-wrap: anywhere;
        flex-shrink: 1;
    }

    #wgp-section-graphics {
        --wgp-ge-name-scale: clamp(0.4, calc((100vw - 52px) / 720), 1);
    }

    #wgp-section-graphics > .wgp {
        padding: 0 !important;
    }

    #wgp-section-graphics .wgp-ge-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #wgp-section-graphics .wgp-ge-canvas {
        padding: 12px !important;
        min-height: 0 !important;
        overflow: auto !important;
    }

    #wgp-section-graphics .wgp-ge-panel {
        position: static !important;
        max-height: none !important;
        order: 2;
    }

    #wgp-section-graphics .wgp-ge-name-sheet {
        width: 720px !important;
        max-width: none !important;
        zoom: var(--wgp-ge-name-scale);
        margin: 0 auto !important;
    }

    #wgp-section-graphics .wgp-ge-grid {
        gap: 10px !important;
    }

    #wgp-section-graphics .wgp-ge-card {
        min-height: 116px !important;
    }

    #wgp-section-chat #wgp-chat-app {
        padding: 0 !important;
        overflow: hidden !important;
    }

    #wgp-section-chat .wgp-chat-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        border: 1px solid #d9e3ef;
        border-radius: 18px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    #wgp-section-chat .wgp-chat-thread {
        height: min(58svh, 500px) !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%) !important;
        padding: 14px 14px 10px !important;
    }

    #wgp-section-chat .wgp-chat-compose-wrap {
        border: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        padding: 12px !important;
        background: #fff !important;
    }

    #wgp-section-chat .wgp-chat-label {
        display: none !important;
    }

     #wgp-section-chat .wgp-chat-form {
        gap: 8px !important;
        margin: 0;
        margin-top: 3%;
        margin-bottom: 1%;
    }

    #wgp-section-chat .wgp-chat-form #wgp-chat-input {
        min-height: 96px !important;
        border-radius: 16px !important;
        background: #f8fafc !important;
        width: 100% !important;
    }

    #wgp-section-chat .wgp-chat-actions {
        display: grid !important;
        grid-template-columns: auto auto !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: space-between;
    }

    #wgp-section-chat .wgp-chat-upload {
        min-height: 44px;
        min-width: 124px;
    }

    #wgp-section-chat .wgp-chat-image-name {
        grid-column: 1 / -1;
    }

    #wgp-section-chat .wgp-chat-send-btn {
        margin-left: 0 !important;
        width: 48px !important;
        min-width: 48px;
        height: 48px;
        padding: 0 !important;
        border-radius: 14px;
        font-size: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #wgp-section-chat .wgp-chat-send-btn::before {
        content: "\2192";
        font-size: 20px;
        line-height: 1;
    }

    #wgp-section-chat .wgp-chat-message {
        max-width: calc(100% - 40px) !important;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    #wg-planner #wgp-mobile-section-nav {
        display: none;
        gap: 10px;
        margin: 18px 0 2px;
        justify-content: space-between;
    }

    #wg-planner #wgp-mobile-section-nav.is-visible {
        display: flex;
    }

    #wg-planner #wgp-mobile-section-nav.is-single {
        justify-content: flex-end;
    }

    #wg-planner #wgp-mobile-section-nav.is-single.is-prev {
        justify-content: flex-start;
    }

    #wg-planner #wgp-mobile-section-nav.is-single.is-next {
        justify-content: flex-end;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-btn {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #e6d5c1;
        border-radius: 12px;
        background: #fff;
        color: #5a3b1f;
        font-size: 12px;
        font-weight: 700;
        padding: 9px 10px;
        line-height: 1.15;
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }

    #wg-planner #wgp-mobile-section-nav.is-single .wgp-mobile-section-btn {
        flex: 0 1 auto;
        max-width: 78%;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-btn-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-arrow {
        flex: 0 0 auto;
        font-size: 14px;
    }

    #wg-planner #wgp-mobile-section-nav .wgp-mobile-section-btn:active {
        transform: translateY(1px);
    }
}

@media (max-width: 820px) {
    #wg-planner .wgp-header {
        padding: 10px 12px;
    }

    #wg-planner .wgp-header-inner {
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
        position: relative;
    }

    #wg-planner .wgp-logo {
        max-height: 34px;
    }

    #wg-planner .wgp-couple {
        min-width: 0;
        flex: 1 1 auto;
        text-align: left;
        padding-right: 48px;
    }

    #wg-planner .wgp-names {
        font-size: clamp(14px, 4.7vw, 14px);
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #wg-planner .wgp-date {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #wg-planner .wgp-header-progress {
        display: none !important;
    }

    #wg-planner .wgp-menu-btn {
        display: inline-flex !important;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px;
        padding: 0 !important;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.55);
        background: rgba(255,255,255,.08);
        color: #fff;
        justify-content: center;
        align-items: center;
        font-size: 0;
        line-height: 1;
        box-shadow: none;
    }

    #wg-planner .wgp-menu-btn::before {
        content: '\2630';
        font-size: 20px;
        line-height: 1;
        color: #fff;
    }

    #wg-planner .wgp-menu-btn .wgp-menu-btn-label {
        display: none;
    }

    #wg-planner .wgp-main {
        padding-top: 18px;
    }

    #wg-ge-tutorial-modal,
    #wg-ge-tutorial-modal.is-focus-top,
    #wg-ge-tutorial-modal.is-focus-left,
    #wg-ge-tutorial-modal.is-focus-right-tall,
    #wg-ge-tutorial-modal.is-focus-right-mid,
    #wg-ge-tutorial-modal.is-focus-left-lower {
        align-items: flex-start;
        justify-content: center;
        padding: 62px 12px 16px;
    }

    #wg-ge-tutorial-modal .wg-layout-tutorial-card,
    #wg-ge-tutorial-modal.is-focus-top .wg-layout-tutorial-card,
    #wg-ge-tutorial-modal.is-focus-left .wg-layout-tutorial-card,
    #wg-ge-tutorial-modal.is-focus-right-tall .wg-layout-tutorial-card,
    #wg-ge-tutorial-modal.is-focus-right-mid .wg-layout-tutorial-card,
    #wg-ge-tutorial-modal.is-focus-left-lower .wg-layout-tutorial-card {
        width: min(100%, 100%);
        max-width: 100%;
    }

    #wg-ge-tutorial-modal .wg-layout-tutorial-body,
    #wg-ge-tutorial-modal.is-focus-right-tall .wg-layout-tutorial-body {
        min-height: 0;
    }

    #wg-ge-tutorial-modal .wg-layout-tutorial-foot {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #wg-ge-tutorial-modal #wg-ge-tutorial-prev,
    #wg-ge-tutorial-modal #wg-ge-tutorial-skip,
    #wg-ge-tutorial-modal #wg-ge-tutorial-next {
        width: 100%;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 640px) {
    #wgp-section-guests .wg-layout-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #wgp-section-guests .wg-layout-option-image {
        height: 138px;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-option,
    #wgp-section-guests #wg-layout-guest-options .wg-layout-option {
        padding: 9px;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-option-image {
        height: 108px;
    }

    #wgp-section-guests #wg-layout-head-options .wg-layout-head-toggle {
        min-width: 122px;
        padding: 7px 10px;
    }

    #wgp-section-guests #wg-layout-guest-options .wg-layout-option-image {
        height: 112px;
    }

    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-row input {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }

    #wgp-section-guests .wg-layout-option-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    #wgp-section-guests .wg-layout-option-price {
        margin-top: 0;
    }

    #wgp-section-chat .wgp-chat-actions {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    #wgp-section-guests .wg-layout-table-list-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    #wgp-section-guests .wg-layout-edit-table {
        width: auto !important;
        min-width: 98px;
        justify-self: end;
    }

    #wgp-section-guests .wg-layout-option-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #wgp-section-guests .wg-layout-option-price {
        justify-self: start;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-row label {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }

    #wgp-section-guests #wg-layout-guest-options .wg-layout-qty-row input {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
    }

    #wgp-section-guests .wg-layout-preview {
        width: 100%;
        min-width: 0;
    }

    #wgp-section-guests #wg-layout-tutorial-modal .wg-layout-tutorial-foot {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    #wgp-section-guests #wg-layout-tutorial-modal .wg-layout-tutorial-foot .wgp-btn-secondary,
    #wgp-section-guests #wg-layout-tutorial-modal .wg-layout-tutorial-foot .wgp-btn-primary {
        font-size: 15px;
        line-height: 1.1;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #wgp-section-graphics {
        --wgp-ge-name-scale: clamp(0.38, calc((100vw - 44px) / 720), 1);
    }

    #wgp-section-menu .wgp-menu-option > div[style*="display:flex"] > div[style*="flex:0 0 220px"] img,
    #wgp-section-welcome .wgp-media-img,
    #wgp-section-print_materials .wgp-media-img,
    #wgp-section-swedish_tables .wgp-media-img,
    #wgp-section-accommodation .wgp-media-img,
    #wgp-section-extras .wgp-media-img,
    #wgp-section-drinks .wgp-drink-toast-image {
        height: 182px !important;
    }

    .wg-final-budget-row {
        gap: 10px;
        padding: 10px !important;
    }

    .wg-final-budget-label small {
        font-size: 11px;
        line-height: 1.3;
    }

    #wgp-section-guests .wg-layout-preview-card {
        padding: 4px !important;
    }

    #wgp-section-guests .wg-layout-preview .wg-layout-item {
        padding: 0 !important;
        overflow: visible !important;
    }

    #wgp-section-guests .wg-layout-preview .wg-layout-item-index {
        top: 2px !important;
        right: 2px !important;
        min-width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
        line-height: 20px !important;
        padding: 0 5px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,.22) !important;
    }

    #wgp-section-guests .wg-layout-preview .wg-layout-item-count {
        bottom: -3px !important;
        height: 14px !important;
        font-size: 8px !important;
        line-height: 14px !important;
        padding: 0 4px !important;
        border-color: rgba(122,87,55,.14) !important;
        background: rgba(255,255,255,.9) !important;
        box-shadow: none !important;
        opacity: .92;
    }

    #wgp-section-guests .wg-layout-preview .wg-layout-item-head .wg-layout-item-count {
        bottom: -2px !important;
    }
}
