.offer-viewer-hint {
    color: var(--primary-dark);
    font-size: 0.875rem;
}

.offer-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.offer-image-trigger:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.offer-image-viewer {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--primary-dark, #04565B);
    color: white;
    overflow: hidden;
    overscroll-behavior: contain;
}

.offer-image-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.offer-image-viewer::backdrop {
    background: #04565B;
}

.offer-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
}

.offer-viewer-header h2 {
    margin: 0;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.offer-viewer-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.offer-viewer-stage:active {
    cursor: grabbing;
}

.offer-viewer-image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    transform-origin: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.offer-viewer-status {
    position: absolute;
    top: 16px;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
    margin: 0;
    padding: 10px 16px;
    background: var(--primary-dark, #04565B);
    color: white;
    text-align: center;
    pointer-events: none;
}

.offer-viewer-footer {
    padding: 12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    text-align: center;
}

.offer-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.offer-viewer-control {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: white;
    color: var(--primary-dark, #04565B);
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
}

.offer-viewer-control:hover:not(:disabled) {
    background: var(--primary-light, #66C6CB);
}

.offer-viewer-control:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.offer-viewer-control:disabled {
    opacity: 0.45;
    cursor: default;
}

.offer-viewer-reset {
    margin-left: 8px;
    font-size: 0.875rem;
}

.offer-viewer-controls output {
    min-width: 52px;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.offer-viewer-footer p {
    max-width: 42ch;
    margin: 10px auto 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}
