:root {
    --agwp-black: #111820;
    --agwp-gold: #f5b800;
    --agwp-gold-dark: #d89f00;
    --agwp-border: #dbe4eb;
    --agwp-muted: #657582;
    --agwp-surface: #f7f9fb;
}

.agwp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Artist panel selector */
.agwp-panel-selector {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid #d7e2eb;
    border-radius: 6px;
    background: #fff;
}

.agwp-panel-selector__heading {
    margin-bottom: 22px;
}

.agwp-panel-selector__title {
    margin: 0 0 8px;
    color: #263f53;
    font-size: 24px;
    line-height: 1.25;
}

.agwp-panel-selector__description,
.agwp-panel-selector__empty {
    max-width: 780px;
    margin: 0;
    color: #657582;
    font-size: 15px;
    line-height: 1.6;
}

.agwp-panel-selector__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.agwp-panel-image {
    position: relative;
    display: flex;
    min-height: 190px;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    border: 2px solid #e2e8ed;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.agwp-panel-image:hover {
    border-color: #c6d1d9;
    transform: translateY(-2px);
}

.agwp-panel-image--selected {
    border-color: var(--agwp-gold);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, .17);
}

.agwp-panel-image input {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    width: 20px;
    height: 20px;
    accent-color: var(--agwp-gold-dark);
}

.agwp-panel-image__preview {
    display: flex;
    height: 130px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background: #f1f4f6;
}

.agwp-panel-image__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agwp-panel-image__label {
    color: #263f53;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.agwp-panel-image--none {
    min-height: 190px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f7f9fb;
}

.agwp-panel-image__none-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 2px solid #cbd5dc;
    border-radius: 50%;
    color: #82909a;
    font-size: 32px;
    font-weight: 300;
}

.agwp-panel-selector__status {
    min-height: 24px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
}

.agwp-panel-selector__status--saving {
    color: #657582;
}

.agwp-panel-selector__status--saved {
    color: #24854c;
}

.agwp-panel-selector__status--error {
    color: #b42318;
}

/* Public trigger */
.agwp-trigger-anchor {
    display: none !important;
}

.agwp-trigger {
    display: flex;
    width: 100%;
    margin: 14px 0 18px;
    align-items: flex-end;
    flex-direction: column;
}

.agwp-trigger__button,
.agwp-button {
    appearance: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.agwp-trigger__button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--agwp-gold);
    background: var(--agwp-black);
    color: #fff;
    font-size: 16px;
    letter-spacing: .01em;
}

.agwp-trigger__icon {
    width: 28px;
    height: 23px;
    margin-right: 11px;
    flex: 0 0 28px;
    color: var(--agwp-gold);
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .32));
}

.agwp-trigger__button:hover,
.agwp-trigger__button:focus-visible {
    background: var(--agwp-gold);
    color: var(--agwp-black);
    transform: translateY(-1px);
}

.agwp-trigger__button:hover .agwp-trigger__icon,
.agwp-trigger__button:focus-visible .agwp-trigger__icon {
    color: var(--agwp-black);
}

.agwp-trigger__privacy {
    margin: 8px 2px 0;
    color: var(--agwp-muted);
    font-size: 12px;
    line-height: 1.4;
}

@media (min-width: 1200px) {
    .listivo-breadcrumbs-widget.agwp-breadcrumbs-host--with-trigger {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto auto;
        column-gap: 18px;
        align-items: center;
    }

    .agwp-breadcrumbs-host--with-trigger > .listivo-breadcrumbs-wrapper-v2 {
        min-width: 0;
    }

    .agwp-breadcrumbs-host--with-trigger > .listivo-breadcrumbs-v2-widget__share {
        align-self: center;
    }

    .agwp-trigger--toolbar {
        width: auto;
        min-width: 230px;
        margin: 5px 0;
        align-self: center;
        align-items: center;
        justify-self: end;
    }

    .agwp-trigger--toolbar .agwp-trigger__button {
        min-height: 44px;
        padding: 0 18px;
        border-radius: 4px;
        font-size: 14px;
        white-space: nowrap;
    }

    .agwp-trigger--toolbar .agwp-trigger__icon {
        width: 23px;
        height: 19px;
        margin-right: 9px;
        flex-basis: 23px;
    }

    .agwp-trigger--toolbar .agwp-trigger__privacy {
        max-width: 270px;
        margin: 3px 0 0;
        font-size: 10px;
        line-height: 1.25;
        text-align: center;
    }
}

@media (max-width: 1199px) {
    .agwp-trigger {
        align-items: stretch;
    }

    .agwp-trigger__button {
        width: 100%;
    }

    .agwp-trigger__privacy {
        text-align: center;
    }
}

/* Modal */
.agwp-modal[hidden] {
    display: none !important;
}

.agwp-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.agwp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 16, .82);
    backdrop-filter: blur(3px);
}

.agwp-modal__dialog {
    position: relative;
    display: flex;
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.agwp-modal__header {
    display: flex;
    min-height: 86px;
    padding: 18px 24px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 3px solid var(--agwp-gold);
    background: var(--agwp-black);
}

.agwp-modal__title {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 2vw, 30px);
    line-height: 1.2;
}

.agwp-modal__dimensions {
    margin: 6px 0 0;
    color: #cfd7dd;
    font-size: 14px;
}

.agwp-modal__close {
    display: grid;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 0;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.agwp-modal__close-icon {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.agwp-modal__close:hover,
.agwp-modal__close:focus-visible {
    border-color: var(--agwp-gold);
    background: rgba(255, 180, 0, .08);
    color: var(--agwp-gold);
}

.agwp-modal__body {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) 360px;
    min-height: 520px;
    overflow: hidden;
}

.agwp-workspace {
    display: grid;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    place-items: center;
    background:
        linear-gradient(45deg, #eef1f3 25%, transparent 25%),
        linear-gradient(-45deg, #eef1f3 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef1f3 75%),
        linear-gradient(-45deg, transparent 75%, #eef1f3 75%),
        #f7f9fa;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.agwp-upload {
    width: min(560px, 100%);
    padding: 48px 32px;
    border: 2px dashed #bdcad3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.agwp-upload:hover,
.agwp-upload--dragover {
    border-color: var(--agwp-gold-dark);
    background: #fff9e4;
    box-shadow: 0 0 0 4px rgba(245, 184, 0, .18);
}

.agwp-upload--dragover {
    transform: translateY(-2px);
}

.agwp-upload[hidden] {
    display: none;
}

.agwp-upload__title {
    margin: 0 0 10px;
    color: var(--agwp-black);
    font-size: 25px;
}

.agwp-upload__help,
.agwp-upload__privacy {
    color: var(--agwp-muted);
    line-height: 1.55;
}

.agwp-upload__help {
    margin: 0 auto 24px;
}

.agwp-upload__privacy {
    margin: 20px auto 0;
    font-size: 13px;
}

.agwp-upload__error {
    margin-top: 12px;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
}

.agwp-upload__processing {
    margin: 14px 0 0;
    color: #344550;
    font-size: 13px;
    font-weight: 600;
}

.agwp-upload__processing[hidden] {
    display: none;
}

.agwp-upload__error[hidden] {
    display: none;
}

.agwp-stage {
    position: relative;
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    border-radius: 5px;
    background: #dfe4e8;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
    user-select: none;
    touch-action: none;
}

.agwp-stage[hidden] {
    display: none;
}

.agwp-stage__room {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: cover;
}

.agwp-stage__artwork {
    --agwp-skew-x: 0deg;
    --agwp-skew-y: 0deg;
    --agwp-rotation: 0deg;
    --agwp-frame-thickness: clamp(3px, .36vw, 6px);
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) rotate(var(--agwp-rotation)) skewX(var(--agwp-skew-x)) skewY(var(--agwp-skew-y));
    transform-origin: center;
    background: transparent;
    box-shadow: none;
    cursor: grab;
    touch-action: none;
    transition: opacity .18s ease, outline-color .18s ease;
}

.agwp-stage__artwork::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    transition: inset .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}

.agwp-stage__artwork::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, .14);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, .16);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.agwp-stage__artwork--frame-black::before {
    inset: calc(var(--agwp-frame-thickness) * -1);
    border: 0;
    background: #171717;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .72),
        0 3px 4px rgba(0, 0, 0, .28),
        0 12px 26px rgba(0, 0, 0, .34);
}

.agwp-stage__artwork--frame-white::before {
    inset: calc(var(--agwp-frame-thickness) * -1);
    border: 0;
    background: #f7f5ef;
    box-shadow:
        0 0 0 1px rgba(61, 68, 73, .32),
        0 3px 5px rgba(0, 0, 0, .16),
        0 12px 25px rgba(0, 0, 0, .22);
}

.agwp-stage__artwork--frame-wood::before {
    inset: calc(var(--agwp-frame-thickness) * -1);
    border: 0;
    background: #956238;
    box-shadow:
        0 0 0 1px rgba(55, 31, 13, .78),
        0 3px 5px rgba(0, 0, 0, .24),
        0 13px 28px rgba(0, 0, 0, .31);
}

.agwp-stage__artwork--frame-black::after,
.agwp-stage__artwork--frame-white::after,
.agwp-stage__artwork--frame-wood::after {
    opacity: 1;
}

.agwp-stage__artwork--dragging {
    cursor: grabbing;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .36);
}

.agwp-stage__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: contain;
}

.agwp-stage__tone {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.agwp-stage--before .agwp-stage__artwork {
    opacity: 0;
}

.agwp-stage--out-of-bounds .agwp-stage__artwork {
    outline: 3px solid #e9a400;
    outline-offset: 4px;
}

.agwp-boundary-warning {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 7px 12px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: #fff1c2;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    color: #6d4a00;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
}

.agwp-boundary-warning[hidden] {
    display: none;
}

.agwp-drag-hint {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 23, 32, .86);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.agwp-stage--has-dragged .agwp-drag-hint {
    opacity: 0;
    visibility: hidden;
}

.agwp-calibration-overlay {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.agwp-calibration-overlay[hidden],
.agwp-calibration-overlay__line[hidden],
.agwp-calibration-overlay__point[hidden] {
    display: none;
}

.agwp-calibration-overlay__line {
    position: absolute;
    height: 3px;
    border-radius: 3px;
    background: var(--agwp-gold);
    box-shadow: 0 0 0 1px rgba(17, 24, 32, .65);
    transform-origin: 0 50%;
}

.agwp-calibration-overlay__point {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--agwp-gold-dark);
    box-shadow: 0 0 0 2px var(--agwp-black);
    transform: translate(-50%, -50%);
}

.agwp-stage--calibrating {
    cursor: crosshair;
}

.agwp-controls {
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-left: 1px solid var(--agwp-border);
    background: #fff;
}

.agwp-controls[hidden] {
    display: none;
}

.agwp-controls__instructions {
    margin: 0 0 20px;
    color: #4d5d68;
    font-size: 14px;
    line-height: 1.55;
}

.agwp-controls__privacy {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--agwp-border);
    color: var(--agwp-muted);
    font-size: 12px;
    line-height: 1.55;
}

.agwp-button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
}

.agwp-button--primary {
    background: var(--agwp-gold);
    color: var(--agwp-black);
}

.agwp-button--primary:hover,
.agwp-button--primary:focus-visible {
    background: #ffc928;
}

.agwp-button--secondary {
    width: 100%;
    border: 1px solid #bbc7cf;
    background: #fff;
    color: var(--agwp-black);
}

.agwp-button--secondary:hover,
.agwp-button--secondary:focus-visible {
    border-color: var(--agwp-gold-dark);
}

.agwp-button--text {
    width: 100%;
    padding: 0;
    background: transparent;
    color: #44535e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.agwp-button--compact {
    margin-top: 12px;
}

.agwp-button--mini {
    min-height: 36px;
    margin-top: 6px;
    padding: 0;
    background: transparent;
    color: #44535e;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.agwp-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.agwp-control {
    display: block;
    margin-top: 24px;
}

.agwp-control,
.agwp-control fieldset {
    min-width: 0;
}

fieldset.agwp-control {
    padding: 0;
    border: 0;
}

.agwp-control--nested {
    margin-top: 14px;
}

.agwp-control__label {
    display: block;
    margin-bottom: 8px;
    color: var(--agwp-black);
    font-size: 13px;
    font-weight: 700;
}

.agwp-control__help {
    display: block;
    margin: 0 0 10px;
    color: var(--agwp-muted);
    font-size: 12px;
    line-height: 1.45;
}

.agwp-control__help--caution {
    margin: 12px 0 0;
    font-style: italic;
}

.agwp-control__heading,
.agwp-control__input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.agwp-control__heading .agwp-control__label {
    margin: 0;
}

.agwp-control__number {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #bbc7cf;
    border-radius: 4px;
    color: var(--agwp-black);
    font-size: 15px;
}

.agwp-control__number[aria-invalid="true"] {
    border-color: #b42318;
    box-shadow: 0 0 0 2px rgba(180, 35, 24, .12);
}

.agwp-control__error {
    display: block;
    margin-top: 7px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.agwp-control__error[hidden],
.agwp-control__warning[hidden] {
    display: none;
}

.agwp-control__unit,
.agwp-control__value {
    color: var(--agwp-muted);
    font-size: 13px;
    font-weight: 600;
}

.agwp-control__value {
    color: var(--agwp-black);
    text-align: right;
}

.agwp-control__range {
    width: 100%;
    margin: 12px 0 6px;
    accent-color: var(--agwp-gold-dark);
}

.agwp-range-wrap {
    position: relative;
    display: block;
    padding-top: 8px;
}

.agwp-range-bubble {
    position: absolute;
    top: -22px;
    transform: translateX(-50%);
    min-width: 45px;
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--agwp-black);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease;
}

.agwp-range-wrap--active .agwp-range-bubble {
    opacity: 1;
    visibility: visible;
}

.agwp-mobile-status {
    display: none;
}

.agwp-control__displayed-size,
.agwp-control__warning {
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.agwp-control--locked .agwp-control__range {
    opacity: .45;
}

.agwp-control__displayed-size {
    color: #344550;
    font-weight: 700;
}

.agwp-control__warning {
    margin-top: 5px;
    color: #9a6700;
    font-weight: 600;
}

.agwp-choice-group {
    display: grid;
    gap: 8px;
}

.agwp-choice-group--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agwp-choice-group--frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agwp-choice {
    position: relative;
    display: flex;
    min-height: 42px;
    padding: 8px 10px;
    align-items: center;
    gap: 8px;
    border: 1px solid #c8d2d9;
    border-radius: 4px;
    background: #fff;
    color: #344550;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.agwp-choice__label {
    min-width: 0;
    overflow-wrap: normal;
}

.agwp-choice--frame {
    padding-right: 8px;
    padding-left: 8px;
    gap: 6px;
}

@media (min-width: 841px) {
    .agwp-choice--frame .agwp-choice__label {
        white-space: nowrap;
        font-size: 11.5px;
    }
}

.agwp-choice:has(input:checked) {
    border-color: var(--agwp-gold-dark);
    background: rgba(245, 184, 0, .08);
    box-shadow: 0 0 0 1px var(--agwp-gold-dark);
}

.agwp-choice input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--agwp-gold-dark);
}

.agwp-choice__swatch {
    display: inline-block;
    width: 24px;
    height: 18px;
    flex: 0 0 24px;
    border: 4px solid transparent;
    background: #e9eef1;
}

.agwp-choice--black .agwp-choice__swatch {
    border-color: #171717;
}

.agwp-choice--white .agwp-choice__swatch {
    border-color: #f7f5ef;
    box-shadow: 0 0 0 1px #c8d2d9;
}

.agwp-choice--wood .agwp-choice__swatch {
    border-color: #956238;
}

.agwp-measurement__panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 4px;
    background: var(--agwp-surface);
}

.agwp-measurement__panel[hidden] {
    display: none;
}

.agwp-calibration-status {
    margin: 10px 0 0;
    color: #344550;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.agwp-calibration-status--active {
    color: #24854c;
}

.agwp-clear-calibration {
    min-height: 34px;
    margin-top: 2px;
    color: #44535e;
    font-size: 12px;
}

.agwp-clear-calibration[hidden] {
    display: none;
}

.agwp-calibration-steps {
    margin: 0;
    padding-left: 20px;
    color: #4d5d68;
    font-size: 12px;
    line-height: 1.55;
}

.agwp-calibration-steps li + li {
    margin-top: 4px;
}

/* Advanced preview controls */
.agwp-advanced {
    margin-top: 24px;
    border: 1px solid #c8d2d9;
    border-radius: 6px;
    background: #fff;
    overflow: clip;
}

.agwp-advanced__summary {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    gap: 9px;
    color: var(--agwp-black);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.agwp-advanced__summary::-webkit-details-marker {
    display: none;
}

.agwp-advanced__chevron {
    display: block;
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex: 0 0 18px;
    color: #63737e;
    pointer-events: none;
    transform-origin: center;
    transition: transform .2s ease, color .18s ease;
}

.agwp-advanced[open] .agwp-advanced__chevron {
    transform: rotate(180deg);
}

.agwp-advanced__summary:hover,
.agwp-advanced__summary:focus-visible {
    background: #fff8df;
}

.agwp-advanced[open] .agwp-advanced__summary {
    background: #fffaf0;
}

.agwp-advanced__summary:hover .agwp-advanced__chevron,
.agwp-advanced__summary:focus-visible .agwp-advanced__chevron,
.agwp-advanced[open] .agwp-advanced__chevron {
    color: var(--agwp-gold-dark);
}

.agwp-advanced__summary-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--agwp-gold-dark);
}

.agwp-advanced__body {
    padding: 18px 14px 14px;
    border-top: 1px solid var(--agwp-border);
}

fieldset.agwp-advanced__section {
    min-width: 0;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
}

.agwp-advanced__section + .agwp-advanced__section {
    padding-top: 18px;
}

.agwp-advanced__section + .agwp-advanced__section,
.agwp-advanced__utilities {
    border-top: 1px solid var(--agwp-border);
}

.agwp-advanced__title {
    margin-bottom: 4px;
    padding: 0;
    color: var(--agwp-black);
    font-size: 13px;
    font-weight: 800;
}

.agwp-advanced-control {
    display: block;
    margin-top: 12px;
}

.agwp-advanced-control__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agwp-advanced-control__label,
.agwp-advanced-control__value {
    color: #344550;
    font-size: 12px;
    font-weight: 650;
}

.agwp-advanced-control__value {
    flex: 0 0 auto;
    color: var(--agwp-black);
    font-variant-numeric: tabular-nums;
}

.agwp-advanced-control__range {
    margin-top: 5px;
}

.agwp-advanced__utilities {
    display: grid;
    padding-top: 16px;
    grid-template-columns: 1fr;
    gap: 8px;
}

.agwp-button--utility {
    min-height: 40px;
    padding: 0 8px;
    font-size: 11.5px;
}

.agwp-button--before {
    width: 100%;
    min-height: 44px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 12.5px;
}

.agwp-advanced__before-help,
.agwp-advanced__reset {
    grid-column: 1 / -1;
}

.agwp-advanced__before-help {
    margin: 0;
}

.agwp-advanced__reset {
    min-height: 34px;
    font-size: 12px;
}

.agwp-button--download {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--agwp-gold-dark);
    background: var(--agwp-black);
    color: #fff;
}

.agwp-button--download:hover,
.agwp-button--download:focus-visible {
    background: #222c36;
}

.agwp-button__icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: var(--agwp-gold);
}

.agwp-button--working .agwp-button__icon {
    animation: agwp-download-pulse .7s ease-in-out infinite alternate;
}

.agwp-download-status {
    min-height: 17px;
    margin: 6px 0 0;
    color: #4d5d68;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

@keyframes agwp-download-pulse {
    to {
        transform: translateY(2px);
        opacity: .55;
    }
}

.agwp-modal-open {
    overflow: hidden;
}

@media (max-width: 840px) {
    .agwp-modal {
        padding: 0;
    }

    .agwp-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .agwp-modal__header {
        flex: 0 0 auto;
    }

    .agwp-modal__body {
        display: block;
        min-height: 0;
        overflow-y: auto;
    }

    .agwp-modal--room-ready .agwp-modal__body {
        display: flex;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }

    .agwp-workspace {
        min-height: 0;
        padding: 14px;
    }

    .agwp-modal--room-ready .agwp-workspace {
        width: 100%;
        min-height: 160px;
        flex: 0 0 clamp(190px, 40vh, 350px);
        padding: 10px;
        overflow: hidden;
    }

    @supports (height: 100dvh) {
        .agwp-modal--room-ready .agwp-workspace {
            flex-basis: clamp(190px, 40dvh, 350px);
        }
    }

    .agwp-controls {
        min-height: 0;
        flex: 1 1 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-top: 1px solid var(--agwp-border);
        border-left: 0;
    }

    .agwp-modal--room-ready .agwp-mobile-status {
        display: block;
        padding: 8px 14px;
        border-top: 1px solid var(--agwp-border);
        border-bottom: 1px solid var(--agwp-border);
        background: #fff8df;
        color: var(--agwp-black);
        flex: 0 0 auto;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    .agwp-modal--keyboard-open .agwp-workspace {
        min-height: 110px;
        flex-basis: clamp(120px, 24vh, 190px);
    }

    @supports (height: 100dvh) {
        .agwp-modal--keyboard-open .agwp-workspace {
            flex-basis: clamp(120px, 24dvh, 190px);
        }
    }

    .agwp-control__range {
        min-height: 44px;
    }

    .agwp-panel-selector {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .agwp-modal__header {
        position: sticky;
        z-index: 10;
        top: 0;
        min-height: 76px;
        padding: 14px 16px;
    }

    .agwp-modal__dimensions {
        font-size: 12px;
    }

    .agwp-upload {
        padding: 34px 18px;
    }

    .agwp-trigger {
        align-items: stretch;
    }

    .agwp-trigger__button {
        width: 100%;
    }

    .agwp-trigger__privacy {
        text-align: center;
    }

    .agwp-controls {
        padding: 18px;
    }

    .agwp-choice-group--two,
    .agwp-choice-group--frames {
        grid-template-columns: 1fr;
    }

    .agwp-choice--frame .agwp-choice__swatch {
        width: 22px;
        height: 17px;
        flex-basis: 22px;
        border-width: 3px;
    }

    .agwp-button {
        min-height: 48px;
    }

    .agwp-advanced__utilities {
        grid-template-columns: 1fr;
    }

    .agwp-advanced__utilities > * {
        grid-column: 1;
    }

    .agwp-boundary-warning {
        top: 8px;
        max-width: calc(100% - 16px);
        padding: 6px 9px;
        font-size: 11px;
    }

    .agwp-drag-hint {
        bottom: 9px;
        font-size: 11px;
    }

    .agwp-panel-selector__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agwp-panel-image {
        min-height: 155px;
    }

    .agwp-panel-image__preview {
        height: 100px;
    }

    .agwp-panel-image__label {
        font-size: 12px;
    }
}
