/**
 * Pulmad Wedding Fair - Public Styles
 * Class names match class-pwf-form.php + class-pwf-booth-manager.php HTML output
 */

.pwf-form-wrapper {
    --pwf-gold: #D4AF37;
    --pwf-gold-dark: #b8972f;
    --pwf-gold-bg: rgba(212, 175, 55, 0.06);
    --pwf-gold-border: rgba(212, 175, 55, 0.2);
    --pwf-gold-shadow: rgba(212, 175, 55, 0.12);
    --pwf-gold-glow: rgba(212, 175, 55, 0.1);
    --pwf-gold-shadow-md: rgba(212, 175, 55, 0.2);
    --pwf-gold-shadow-lg: rgba(212, 175, 55, 0.3);
    --pwf-green: #28a745;
    --pwf-red: #dc3545;
    --pwf-blue: #276FAB;
    --pwf-yellow: #ffc107;
    --pwf-gray: #6c757d;
    --pwf-light: #f8f9fa;
    --pwf-border: #dee2e6;
    --pwf-text: #1e293b;
}

/* ─── Form wrapper ───────────────────────────────── */
.pwf-form-wrapper {
    max-width: 100%;
    margin: 0 auto 40px;
}

/* ─── Fair header ────────────────────────────────── */
.pwf-fair-header {
    text-align: center;
    margin-bottom: 32px;
}

.pwf-fair-header h2 {
    font-size: 28px;
    color: var(--pwf-text);
    margin: 0 0 12px;
}

.pwf-fair-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--pwf-gray);
    font-size: 15px;
}

.pwf-fair-meta .dashicons {
    vertical-align: middle;
    margin-right: 4px;
    color: var(--pwf-gold);
}

/* ─── Progress bar ───────────────────────────────── */
.pwf-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
    counter-reset: step;
}

.pwf-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--pwf-border);
    z-index: 0;
}

.pwf-progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pwf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid var(--pwf-border);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    color: var(--pwf-gray);
    transition: all 0.3s;
}

.pwf-progress .pwf-progress-step .pwf-step-title {
    display: block;
    font-size: 11px !important;
    color: var(--pwf-gray);
    margin-top: 6px;
    line-height: 1.3;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active step */
.pwf-progress-step.pwf-step-active .pwf-step-number {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold);
    color: #fff;
}

.pwf-progress .pwf-progress-step.pwf-step-active .pwf-step-title {
    color: var(--pwf-gold);
    font-weight: 600;
}

/* Completed step */
.pwf-progress-step.pwf-step-completed .pwf-step-number {
    border-color: var(--pwf-green);
    background: var(--pwf-green);
    color: #fff;
}

/* ─── Form steps ─────────────────────────────────── */
.pwf-step-content {
    display: none;
    animation: pwfFadeIn 0.3s ease;
}

.pwf-step-content.pwf-step-active {
    display: block;
}

@keyframes pwfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwf-step-content h3 {
    font-size: 22px;
    color: var(--pwf-text);
    margin: 0 0 8px;
}

.pwf-step-desc {
    color: var(--pwf-gray);
    margin-bottom: 24px;
    font-size: 15px;
}

/* ─── Option cards (catalog + copresenter) ───────── */
.pwf-option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pwf-option-cards-small {
    max-width: 480px;
}

.pwf-option-card {
    display: block;
    position: relative;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--pwf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.pwf-option-card:hover {
    border-color: var(--pwf-gold);
    box-shadow: 0 2px 12px var(--pwf-gold-shadow);
}

.pwf-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pwf-option-card input[type="radio"]:checked ~ .pwf-card-content {
    /* handled below */
}

.pwf-option-card:has(input:checked) {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold-bg);
}

.pwf-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.pwf-card-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--pwf-gray);
}

.pwf-option-card:has(input:checked) .pwf-card-icon .dashicons {
    color: var(--pwf-gold);
}

.pwf-card-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--pwf-text);
}

.pwf-card-desc {
    font-size: 13px;
    color: var(--pwf-gray);
}

.pwf-card-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--pwf-green);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pwf-card-price {
    font-weight: 600;
    color: var(--pwf-gold);
}

/* ─── Auto-catalog notice ────────────────────────── */
.pwf-auto-catalog-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: var(--pwf-gold-bg);
    border: 1px solid var(--pwf-gold-border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--pwf-text);
}

.pwf-auto-catalog-notice .dashicons {
    color: var(--pwf-green);
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* ─── Booth selector ─────────────────────────────── */
.pwf-booth-selector-wrap {
    margin-top: 8px;
}

.pwf-booth-selector {
    margin-bottom: 20px;
}

.pwf-floor-plan {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.pwf-floor-plan img {
    width: 100%;
    height: auto;
    display: block;
}

.pwf-booth-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--pwf-light);
    border-radius: 8px;
    margin-bottom: 16px;
}

.pwf-booth-row {
    display: flex;
    gap: 8px;
}

.pwf-booth {
    flex: 1;
    min-width: 70px;
    min-height: 54px;
    padding: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.pwf-booth:hover:not(.pwf-booth-reserved):not(.pwf-booth-selected) {
    border-color: var(--pwf-gold);
    box-shadow: 0 2px 8px var(--pwf-gold-shadow-md);
    transform: translateY(-1px);
}

.pwf-booth-selected {
    border-color: var(--pwf-gold) !important;
    background-color: var(--pwf-gold) !important;
    color: #fff;
}

.pwf-booth-reserved {
    background-color: #999 !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.pwf-booth-reserved::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--pwf-red);
    transform: rotate(-45deg);
}

/* Branded reserved booths — logo visible, no strike-through */
.pwf-booth-branded {
    opacity: 1 !important;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.pwf-booth-branded::after {
    display: none !important;
}

.pwf-booth-id {
    font-weight: 700;
    font-size: 14px;
    display: block;
}

.pwf-booth-status {
    font-size: 10px;
    display: block;
    opacity: 0.8;
}

/* Booth legend */
.pwf-booth-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.pwf-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pwf-gray);
}

.pwf-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
}

.pwf-legend-price-old {
    text-decoration: line-through;
    color: #9ca3af;
}

.pwf-legend-item strong {
    color: #065f46;
}

.pwf-legend-color.pwf-reserved {
    background-color: #999;
}

/* Selected booths display */
.pwf-selected-booths {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--pwf-border);
    border-radius: 6px;
    margin-top: 12px;
}

.pwf-selected-booths-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.pwf-selected-booth-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--pwf-gold);
    color: #fff;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
    font-size: 13px;
    font-weight: 600;
}

.pwf-none-selected {
    color: var(--pwf-gray);
    font-size: 13px;
    font-style: italic;
}

/* Included items box */
.pwf-included-items {
    padding: 16px;
    background: var(--pwf-gold-bg);
    border: 1px solid var(--pwf-gold-border);
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.pwf-included-items strong {
    display: block;
    margin-bottom: 4px;
}

/* ─── Services ───────────────────────────────────── */
.pwf-services-list {
    display: grid;
    gap: 10px;
}

.pwf-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwf-service-item {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--pwf-border);
    border-radius: 10px;
    transition: all 0.2s;
}

.pwf-service-item:hover {
    border-color: var(--pwf-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pwf-service-item:has(input:checked) {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold-bg);
    box-shadow: 0 0 0 1px var(--pwf-gold);
}

.pwf-service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.pwf-service-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0;
}

.pwf-service-item input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pwf-service-item input[type="checkbox"]:checked {
    background: #4CAF50;
}

.pwf-service-item input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.pwf-service-name {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
    color: var(--pwf-text);
}

.pwf-service-price {
    font-weight: 700;
    color: var(--pwf-gold);
    white-space: nowrap;
    font-size: 17px;
    background: var(--pwf-gold-bg);
    padding: 4px 12px;
    border-radius: 6px;
}

.pwf-service-item:has(input:checked) .pwf-service-price {
    background: var(--pwf-gold);
    color: #fff;
}

.pwf-service-desc {
    font-size: 14px;
    color: #555;
    margin-top: 12px;
    padding-left: 32px;
    line-height: 1.6;
}

.pwf-service-desc p {
    margin: 0 0 8px;
}

.pwf-service-desc p:last-child {
    margin-bottom: 0;
}

.pwf-service-desc a {
    color: var(--pwf-gold);
    text-decoration: underline;
    word-break: break-all;
}

/* Date dropdowns trio (day / month / year) — used for promotion start/end. */
.pwf-date-dropdowns {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 8px;
}

.pwf-date-dropdowns .pwf-date-part {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d4d9;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

@media (max-width: 480px) {
    .pwf-date-dropdowns {
        grid-template-columns: 1fr 1fr;
    }
    .pwf-date-dropdowns .pwf-date-part[data-part="year"] {
        grid-column: 1 / -1;
    }
}

/* Guest upsell block on the Promotsioon step — catalog-only feature. */
.pwf-promo-guest-block {
    text-align: center;
    padding: 28px 24px;
    border: 1px dashed rgba(212, 175, 55, 0.55);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff8ec 0%, #fff3df 100%);
    margin: 12px 0;
}

.pwf-promo-guest-block__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    color: #b48a2c;
}

.pwf-promo-guest-block__icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pwf-promo-guest-block__title {
    margin: 0 0 8px;
    font-family: var(--pwf-font-serif, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a2f10;
}

.pwf-promo-guest-block__text {
    margin: 0 auto 20px;
    max-width: 520px;
    color: #5a3a14;
    font-size: 14.5px;
    line-height: 1.55;
}

.pwf-promo-guest-block .pwf-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pwf-promo-guest-block__hint {
    margin: 14px 0 0;
    font-size: 13px;
    color: #7a6b5a;
}

/* Promotsioon — repeater + read-only card list. */
.pwf-promo-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.pwf-promo-notice--info {
    background: rgba(212, 175, 55, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #6b5320;
}

.pwf-promo-notice--locked {
    background: rgba(107, 114, 128, 0.10);
    border: 1px solid rgba(107, 114, 128, 0.30);
    color: #4b5563;
}

.pwf-promo-notice .dashicons {
    flex-shrink: 0;
    color: var(--pwf-gold, #D4AF37);
    font-size: 18px;
}

.pwf-promo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.pwf-promo-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
}

.pwf-promo-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
}

.pwf-promo-item__num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pwf-gold, #D4AF37);
}

.pwf-promo-remove {
    width: 28px;
    height: 28px;
    line-height: 1;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pwf-promo-remove:hover,
.pwf-promo-remove:focus-visible {
    background: rgba(220, 53, 69, 0.10);
    color: #b91c1c;
    border-color: rgba(220, 53, 69, 0.30);
}

.pwf-promo-add {
    margin-top: 4px;
}

/* Read-only card list inside /konto when deadline has passed. */
.pwf-promo-readonly {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwf-promo-readonly__item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
}

.pwf-promo-readonly__item strong {
    display: inline;
    font-weight: 600;
    color: #111827;
}

.pwf-promo-readonly__mode {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: #6b5320;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pwf-promo-readonly__item p {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

/* Stock badge — shows remaining count or "Välja müüdud". */
.pwf-service-stock {
    margin-left: auto;
    margin-right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(212, 182, 117, 0.16);
    color: #8a6a2c;
    white-space: nowrap;
}

.pwf-service-stock--out {
    background: rgba(220, 53, 69, 0.12);
    color: #b32d3a;
}

.pwf-service-item--sold-out {
    opacity: 0.55;
    cursor: not-allowed;
}

.pwf-service-item--sold-out .pwf-service-header {
    cursor: not-allowed;
}

/* Highlighted "important" item — gold border + corner badge. */
.pwf-service-item--important {
    position: relative;
    border-color: var(--pwf-gold, #D4B675);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(212, 182, 117, 0.06), rgba(212, 182, 117, 0.02));
    box-shadow: 0 0 0 4px rgba(212, 182, 117, 0.10);
}

.pwf-service-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--pwf-gold, #D4B675);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Confirm modal — two-button variant of pwf-modal. */
.pwf-modal--confirm .pwf-modal__buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pwf-modal--confirm .pwf-modal__btn--secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.pwf-modal--confirm .pwf-modal__btn--secondary:hover {
    background: #e5e7eb;
}

.pwf-modal--confirm .pwf-modal__list {
    text-align: left;
    margin: 0 0 8px;
    padding: 0 0 0 18px;
}

.pwf-modal--confirm .pwf-modal__list li {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.pwf-modal--confirm .pwf-modal__list strong {
    color: #1f2937;
}

/* Timeslot select per service — hidden until the service is ticked. */
.pwf-service-timeslots {
    display: none;
    margin-top: 10px;
    padding-left: 32px;
}

.pwf-service-item:has(input[type="checkbox"]:checked) .pwf-service-timeslots {
    display: block;
}

.pwf-service-timeslots label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.pwf-service-timeslots select {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid #d0d4d9;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.pwf-service-desc a:hover {
    color: var(--pwf-text);
}

.pwf-no-services {
    color: var(--pwf-gray);
    font-style: italic;
}

/* ─── Form fields ────────────────────────────────── */
.pwf-form-section {
    margin-bottom: 24px;
}

.pwf-form-section h4 {
    font-size: 16px;
    color: var(--pwf-text);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pwf-border);
}

.pwf-form-row {
    margin-bottom: 16px;
}

.pwf-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--pwf-text);
}

.pwf-field-hint {
    display: block;
    margin: -2px 0 8px;
    font-size: 12.5px;
    color: var(--pwf-text-muted, #6b7280);
    line-height: 1.45;
}

.pwf-form-row input[type="text"],
.pwf-form-row input[type="email"],
.pwf-form-row input[type="tel"],
.pwf-form-row input[type="url"],
.pwf-form-row textarea,
.pwf-form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pwf-border);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fff;
}

.pwf-form-row input:focus,
.pwf-form-row textarea:focus,
.pwf-form-row select:focus {
    outline: none;
    border-color: var(--pwf-gold);
    box-shadow: 0 0 0 3px var(--pwf-gold-glow);
}

.pwf-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pwf-field-error {
    border-color: var(--pwf-red) !important;
}

.pwf-error-message {
    color: var(--pwf-red);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ─── Presenter step: listing selector ────────────── */
.pwf-listing-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwf-listing-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid var(--pwf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.pwf-listing-card:hover {
    border-color: var(--pwf-gold);
    box-shadow: 0 2px 8px var(--pwf-gold-shadow);
}

.pwf-listing-card--selected,
.pwf-listing-card:has(input:checked) {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold-bg);
}

.pwf-listing-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pwf-listing-card__thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--pwf-light);
}

.pwf-listing-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--pwf-border);
}

.pwf-listing-card__thumb--placeholder .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--pwf-gray);
}

.pwf-listing-card__info {
    flex: 1;
    min-width: 0;
}

.pwf-listing-card__title {
    display: block;
    font-size: 15px;
    color: var(--pwf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwf-listing-card__cat,
.pwf-listing-card__tier {
    display: inline-block;
    font-size: 12px;
    color: var(--pwf-gray);
    margin-right: 8px;
}

.pwf-listing-card__tier {
    padding: 1px 8px;
    background: var(--pwf-light);
    border-radius: 4px;
    font-weight: 500;
}

.pwf-listing-card__check {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.pwf-listing-card--selected .pwf-listing-card__check,
.pwf-listing-card:has(input:checked) .pwf-listing-card__check {
    opacity: 1;
}

.pwf-listing-card__check .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--pwf-gold);
}

/* ─── Copresenter section ────────────────────────── */
.pwf-copresenter-section {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--pwf-border);
}

.pwf-copresenter-hint {
    font-size: 14px;
    color: var(--pwf-gray);
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    line-height: 1.5;
}

.pwf-copresenter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwf-listing-card--copresenter {
    position: relative;
}

.pwf-listing-card--copresenter input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pwf-listing-card--copresenter:has(input:checked) {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold-bg);
}

.pwf-listing-card--copresenter:has(input:checked) .pwf-listing-card__check {
    opacity: 1;
}

.pwf-listing-card--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pwf-listing-card__price {
    font-weight: 600;
    color: #155e75;
    font-size: 14px;
    margin-left: auto;
    white-space: nowrap;
}

.pwf-copresenter-item {
    margin-bottom: 4px;
}

.pwf-copresenter-brand {
    padding: 18px 18px;
    margin: -4px 0 8px;
    background: #f8fafc;
    border: 1px solid var(--pwf-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.pwf-copresenter-brand .pwf-form-row {
    margin-bottom: 16px;
}

.pwf-copresenter-brand .pwf-form-row:last-child {
    margin-bottom: 0;
}

.pwf-copresenter-brand label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--pwf-text);
}

.pwf-copresenter-brand input[type="text"],
.pwf-copresenter-brand textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pwf-border);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fff;
}

.pwf-copresenter-brand input[type="text"]:focus,
.pwf-copresenter-brand textarea:focus {
    outline: none;
    border-color: var(--pwf-gold);
    box-shadow: 0 0 0 3px var(--pwf-gold-glow);
}

.pwf-copresenter-brand textarea {
    resize: vertical;
}

#pwf-copresenter-count {
    font-size: 14px;
    color: #155e75;
    margin-top: 10px;
    padding: 10px 18px;
    background: #ecfeff;
    border-radius: 10px;
}

/* ─── Brand hint ─────────────────────────────────── */
.pwf-brand-hint {
    font-size: 14px;
    color: var(--pwf-gray);
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--pwf-gold-bg);
    border: 1px solid var(--pwf-gold-border);
    border-radius: 6px;
}

/* ─── Logo upload ────────────────────────────────── */
.pwf-logo-upload {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwf-logo-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--pwf-border);
}

.pwf-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.pwf-logo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

.pwf-btn-upload {
    background: var(--pwf-light);
    color: var(--pwf-text);
    border: 1px dashed var(--pwf-border);
    padding: 10px 18px;
    font-size: 14px;
}

.pwf-btn-upload:hover {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold-bg);
}

.pwf-btn-upload .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ─── Brand display on reserved booths ───────────── */
.pwf-booth-brand {
    display: block;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    opacity: 0.9;
}

.pwf-booth-brand-logo {
    display: block;
    width: 70%;
    max-height: 50%;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 2px;
    order: -1;
    position: relative;
    z-index: 1;
}

/* Grid mode: bigger booths can show more brand info */
.pwf-booth-grid .pwf-booth-brand {
    font-size: 10px;
}

.pwf-booth-grid .pwf-booth-brand-logo {
    width: 32px;
    height: 24px;
    margin: 2px auto;
}

/* Positioned mode: brand in small overlay booths */
.pwf-booth-positioned .pwf-booth-branded {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 2px;
    background-color: #fff !important;
    border-color: rgba(0,0,0,0.15);
}

.pwf-booth-positioned .pwf-booth-brand {
    font-size: 7px;
    line-height: 1.1;
    color: #333;
}

.pwf-booth-positioned .pwf-booth-brand-logo {
    width: 80%;
    max-height: 60%;
    order: -1;
}

/* ─── Pricing summary ────────────────────────────── */
.pwf-price-summary {
    background: #fff;
    border: 1px solid var(--pwf-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.pwf-price-summary h4 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pwf-border);
    font-size: 16px;
}

.pwf-pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.pwf-pricing-row.pwf-subtotal {
    border-top: 1px solid var(--pwf-border);
    margin-top: 8px;
    padding-top: 12px;
}

.pwf-pricing-row.pwf-discount {
    color: var(--pwf-green);
}

.pwf-pricing-row.pwf-total {
    border-top: 2px solid var(--pwf-gold);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.pwf-pricing-row.pwf-total .pwf-pricing-value {
    color: var(--pwf-gold);
}

.pwf-pricing-label {
    color: var(--pwf-gray);
}

.pwf-pricing-details {
    font-size: 12px;
    color: var(--pwf-gray);
    padding: 2px 0 6px;
    line-height: 1.5;
}

.pwf-price-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--pwf-gold);
    padding-top: 16px;
    margin-top: 12px;
}

.pwf-price-total span:last-child {
    color: var(--pwf-gold);
}

/* ─── Payment options ────────────────────────────── */
.pwf-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwf-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--pwf-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.pwf-payment-option:hover {
    border-color: var(--pwf-gold);
}

.pwf-payment-option:has(input:checked) {
    border-color: var(--pwf-gold);
    background: var(--pwf-gold-bg);
}

.pwf-payment-option input[type="radio"] {
    accent-color: var(--pwf-gold);
}

.pwf-reservation-note {
    font-size: 13px;
    color: var(--pwf-gray);
    margin-top: 12px;
    font-style: italic;
}

/* ─── Terms checkbox ─────────────────────────────── */
.pwf-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: var(--pwf-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pwf-terms-checkbox input {
    margin-top: 2px;
    accent-color: var(--pwf-gold);
}

.pwf-terms-checkbox a {
    color: var(--pwf-gold);
    text-decoration: underline;
}

/* ─── Terms modal ────────────────────────────────── */
.pwf-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwf-terms-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pwf-terms-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pwf-terms-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--pwf-border);
}

.pwf-terms-modal__header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--pwf-text);
}

.pwf-terms-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--pwf-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.pwf-terms-modal__close:hover {
    color: var(--pwf-text);
}

.pwf-terms-modal__body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pwf-text);
}

.pwf-terms-modal__body h1,
.pwf-terms-modal__body h2,
.pwf-terms-modal__body h3,
.pwf-terms-modal__body h4 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
}
.pwf-terms-modal__body h2,
.pwf-terms-modal__body h2.wp-block-heading { font-size: 22px; }
.pwf-terms-modal__body h3,
.pwf-terms-modal__body h3.wp-block-heading { font-size: 18px; }
.pwf-terms-modal__body h4,
.pwf-terms-modal__body h4.wp-block-heading { font-size: 16px; }

.pwf-terms-modal__body p {
    margin: 0 0 0.8em;
}

/* Theme reset removes list-style globally (_reset.css). Restore inside modal. */
.pwf-terms-modal__body ul,
.pwf-terms-modal__body ol,
.pwf-terms-modal__body ul.wp-block-list,
.pwf-terms-modal__body ol.wp-block-list {
    margin: 0 0 0.8em 0;
    padding-left: 1.6em;
    list-style-position: outside;
}
.pwf-terms-modal__body ul,
.pwf-terms-modal__body ul.wp-block-list { list-style-type: disc; }
.pwf-terms-modal__body ol,
.pwf-terms-modal__body ol.wp-block-list { list-style-type: decimal; }
.pwf-terms-modal__body li {
    display: list-item;
    margin-bottom: 0.3em;
}
.pwf-terms-modal__body strong { font-weight: 700; }
.pwf-terms-modal__body em     { font-style: italic; }
.pwf-terms-modal__body a {
    color: var(--pwf-primary, #2271b1);
    text-decoration: underline;
}

/* ─── Navigation buttons ─────────────────────────── */
.pwf-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--pwf-border);
}

.pwf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pwf-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pwf-btn-primary {
    background: var(--pwf-gold);
    color: #fff;
}

.pwf-btn-primary:hover {
    background: var(--pwf-gold-dark);
}

.pwf-btn-prev {
    background: var(--pwf-light);
    color: var(--pwf-text);
    border: 1px solid var(--pwf-border);
}

.pwf-btn-prev:hover {
    background: #e9ecef;
}

.pwf-btn-submit {
    background: var(--pwf-green);
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
}

.pwf-btn-submit:hover {
    background: #218838;
}

.pwf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Alerts ─────────────────────────────────────── */
.pwf-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.pwf-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pwf-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pwf-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pwf-notice {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}

.pwf-notice-error {
    background: #fef2f2;
    color: #991b1b;
}

.pwf-notice-warning {
    background: #fffbeb;
    color: #92400e;
}

/* ─── Success message ────────────────────────────── */
.pwf-success-message {
    text-align: center;
    padding: 60px 20px;
}

.pwf-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--pwf-green);
    border-radius: 50%;
    color: #fff;
    font-size: 40px;
    margin-bottom: 20px;
}

.pwf-success-message h2 {
    color: var(--pwf-green);
    margin-bottom: 12px;
}

.pwf-success-details {
    max-width: 480px;
    margin: 0 auto;
    color: var(--pwf-gray);
    line-height: 1.6;
}

/* ─── Loading ────────────────────────────────────── */
.pwf-loading {
    text-align: center;
    padding: 20px;
    color: var(--pwf-gray);
}

.pwf-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--pwf-border);
    border-top-color: var(--pwf-gold);
    border-radius: 50%;
    animation: pwfSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes pwfSpin {
    to { transform: rotate(360deg); }
}

/* ─── Review table ───────────────────────────────── */
.pwf-review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pwf-review-table th,
.pwf-review-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--pwf-border);
    font-size: 14px;
}

.pwf-review-table th {
    color: var(--pwf-gray);
    font-weight: 500;
    width: 140px;
}

/* ─── Positioned booth mode (floor plan overlay) ──── */
.pwf-booth-positioned {
    position: relative;
    display: block;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.pwf-booth-positioned .pwf-positioned-bg {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.pwf-booth-positioned .pwf-booth {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    padding: 2px;
    min-width: 0;
    min-height: 0;
}

.pwf-booth-positioned .pwf-booth:hover:not(.pwf-booth-reserved):not(.pwf-booth-selected) {
    border-color: var(--pwf-gold);
    box-shadow: 0 0 0 2px var(--pwf-gold), 0 2px 8px var(--pwf-gold-shadow-lg);
    z-index: 10;
}

.pwf-booth-positioned .pwf-booth-selected {
    border-color: var(--pwf-gold) !important;
    box-shadow: 0 0 0 3px var(--pwf-gold);
    z-index: 10;
}

.pwf-booth-positioned .pwf-booth-reserved:not(.pwf-booth-branded) {
    opacity: 0.4;
    cursor: not-allowed;
}

.pwf-booth-positioned .pwf-booth-reserved::after {
    display: none; /* No diagonal line in positioned mode */
}

.pwf-booth-positioned.pwf-readonly .pwf-booth {
    cursor: default;
}

/* Checkout note */
.pwf-checkout-note {
    padding: 14px 18px;
    background: var(--pwf-gold-bg);
    border: 1px solid var(--pwf-gold-border);
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--pwf-gray);
}

.pwf-invoice-notice {
    padding: 12px 16px;
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
    border-radius: 4px;
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--pwf-gray);
    line-height: 1.5;
}
.pwf-invoice-notice strong {
    color: #1E40AF;
    margin-right: 4px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .pwf-step-title {
        display: none;
    }

    .pwf-option-cards {
        grid-template-columns: 1fr;
    }

    .pwf-form-row-half {
        grid-template-columns: 1fr;
    }

    .pwf-fair-meta {
        flex-direction: column;
        gap: 8px;
    }

    .pwf-booth-grid {
        padding: 10px;
    }

    .pwf-booth {
        min-width: 55px;
        min-height: 42px;
        padding: 5px;
    }

    .pwf-booth-price {
        font-size: 10px;
    }

    .pwf-form-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .pwf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   Step 1: Package info (modal card)
   =========================== */
.pwf-package-info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.pwf-package-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f8f9fa;
    align-self: flex-start;
}

.pwf-package-badge__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pwf-package-badge__name {
    font-size: 1.1rem;
    font-weight: 600;
}

.pwf-package-discount-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pwf-package-discount-notice--has {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #155e75;
}

.pwf-package-discount-notice--has .dashicons {
    color: #06b6d4;
    margin-top: 2px;
    flex-shrink: 0;
}

.pwf-package-discount-notice--none {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.pwf-package-discount-notice--none .dashicons {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.pwf-package-booth-limit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #155e75;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pwf-package-booth-limit .dashicons {
    color: #06b6d4;
    margin-top: 2px;
    flex-shrink: 0;
}

.pwf-early-bird-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #155e75;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pwf-early-bird-notice .dashicons {
    color: #06b6d4;
    margin-top: 2px;
    flex-shrink: 0;
}

.pwf-total-discount-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    color: #065f46;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.pwf-total-discount-notice .dashicons {
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pwf-package-info {
        padding: 20px;
        margin: 0;
        max-width: 100%;
    }
}

/* ===========================
   Modal notification
   =========================== */
.pwf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pwfFadeIn 0.2s ease;
}

@keyframes pwfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pwf-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: pwfSlideUp 0.25s ease;
}

@keyframes pwfSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwf-modal__icon {
    margin-bottom: 16px;
}

.pwf-modal__icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #f59e0b;
}

.pwf-modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.pwf-modal__message {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

.pwf-modal__btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--pwf-blue, #276FAB);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pwf-modal__btn:hover {
    background: #1e5a8a;
}

@media (max-width: 480px) {
    .pwf-modal {
        padding: 24px;
    }
}

/* ===========================
   Sticky bottom total bar
   =========================== */
.pwf-sticky-total {
    display: none;
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-top: 2px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding: 12px 24px;
    margin: 24px -24px -24px;
    border-radius: 0 0 12px 12px;
}

.pwf-sticky-total.is-visible {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pwf-sticky-total__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.pwf-sticky-total__value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.pwf-sticky-total__label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pwf-sticky-total__item--discount .pwf-sticky-total__value {
    color: #16a34a;
}

.pwf-sticky-total__item--total .pwf-sticky-total__value {
    font-size: 24px;
    color: var(--pwf-gold-dark, #b8972f);
}

.pwf-sticky-total__divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
}

@media (max-width: 480px) {
    .pwf-sticky-total {
        margin: 12px -12px -12px;
        padding: 10px 12px;
        gap: 14px;
    }

    .pwf-sticky-total__value {
        font-size: 16px;
    }

    .pwf-sticky-total__item--total .pwf-sticky-total__value {
        font-size: 20px;
    }

    .pwf-sticky-total__label {
        font-size: 10px;
    }
}

/* ── Payment plan selector (step 6) ─────────────────────────── */
.pwf-payment-plan {
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.pwf-payment-plan h4 {
    margin: 0 0 8px;
}
.pwf-plan-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.pwf-plan-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pwf-plan-option:hover {
    border-color: #94a3b8;
}
.pwf-plan-option input[type="radio"]:checked ~ .pwf-plan-option__label,
.pwf-plan-option:has(input[type="radio"]:checked) {
    border-color: #2271b1;
    background: #eff6ff;
}
.pwf-plan-option input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.pwf-plan-option__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pwf-plan-option__hint {
    font-size: 13px;
    color: #64748b;
}
.pwf-plan-breakdown {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
.pwf-plan-breakdown__title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: #334155;
}
.pwf-plan-breakdown__row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.pwf-plan-breakdown__row:last-child {
    border-bottom: none;
}
.pwf-plan-breakdown__label {
    font-weight: 500;
}
.pwf-plan-breakdown__amount {
    font-weight: 700;
    text-align: right;
}
.pwf-plan-breakdown__note {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #64748b;
}
.pwf-plan-notice {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #78350f;
}

/* ── Step 7: Payment summary + Montonio button ────────────────── */
.pwf-payment-summary {
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.pwf-payment-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    font-size: 15px;
}
.pwf-payment-summary__row--total {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 6px;
    font-size: 16px;
}
.pwf-payment-summary__row--pay strong {
    font-size: 24px;
    color: #16a34a;
}
.pwf-payment-summary__note {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #78350f;
}
.pwf-payment-action {
    text-align: center;
    margin: 28px 0 16px;
}
.pwf-payment-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: stretch;
}
.pwf-btn-pay {
    font-size: 17px;
    padding: 16px 28px;
    min-width: 240px;
    flex: 1 1 240px;
    max-width: 320px;
    justify-content: center;
}
.pwf-btn-pay .dashicons {
    margin-right: 6px;
}
@media (max-width: 540px) {
    .pwf-payment-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .pwf-btn-pay {
        max-width: none;
        min-width: 0;
    }
}
.pwf-payment-note {
    margin: 14px auto 0;
    max-width: 480px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ===========================
   Pulmamess /konto vendor tab
   Scoped under .pulmad-account so account CSS variables resolve.
   =========================== */
.pulmad-account .pwf-vendor-account .pulmad-account__panel-header {
    flex-wrap: wrap;
    gap: 16px;
}
.pulmad-account .pwf-vendor-subnav {
    display: flex;
    gap: 4px;
    background: var(--account-bg-light, #f9f9f9);
    padding: 4px;
    border-radius: var(--account-radius-sm, 8px);
}
.pulmad-account .pwf-vendor-subnav__link {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--account-text-light, #666);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pulmad-account .pwf-vendor-subnav__link:hover {
    color: var(--account-text, #333);
    background: rgba(0, 0, 0, 0.04);
}
.pulmad-account .pwf-vendor-subnav__link.is-active {
    background: var(--account-bg, #fff);
    color: var(--account-primary, #325289);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pulmad-account .pwf-vendor-intro {
    margin: 0 0 20px;
    color: var(--account-text-light, #666);
    font-size: 14px;
    line-height: 1.5;
}

.pulmad-account .pwf-vendor-empty {
    padding: 32px 24px;
    background: var(--account-bg-light, #f9f9f9);
    border: 1px dashed var(--account-border, #e5e5e5);
    border-radius: var(--account-radius-sm, 8px);
    text-align: center;
}
.pulmad-account .pwf-vendor-empty__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--account-text, #333);
}
.pulmad-account .pwf-vendor-empty__text {
    margin: 0;
    font-size: 14px;
    color: var(--account-text-light, #666);
}

.pulmad-account .pwf-vendor-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pulmad-account .pwf-vendor-card {
    background: var(--account-bg-light, #f9f9f9);
    border-radius: var(--account-radius-sm, 8px);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}
.pulmad-account .pwf-vendor-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pulmad-account .pwf-vendor-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.pulmad-account .pwf-vendor-card__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.pulmad-account .pwf-vendor-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--account-text, #333);
    line-height: 1.3;
}
.pulmad-account .pwf-vendor-card__date {
    font-size: 13px;
    color: var(--account-text-light, #666);
}
.pulmad-account .pwf-vendor-card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.pulmad-account .pwf-vendor-card__badge--open      { background: var(--account-success, #10B981); }
.pulmad-account .pwf-vendor-card__badge--paid      { background: var(--account-success, #10B981); }
.pulmad-account .pwf-vendor-card__badge--confirmed { background: var(--account-primary, #325289); }
.pulmad-account .pwf-vendor-card__badge--pending   { background: var(--account-warning, #F59E0B); }
.pulmad-account .pwf-vendor-card__badge--default   { background: #6b7280; }

.pulmad-account .pwf-vendor-card__body {
    margin-bottom: 16px;
}
.pulmad-account .pwf-vendor-card__meta {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    column-gap: 16px;
    row-gap: 6px;
    margin: 0;
    font-size: 14px;
}
.pulmad-account .pwf-vendor-card__meta-row {
    display: contents;
}
.pulmad-account .pwf-vendor-card__meta dt {
    color: var(--account-text-light, #666);
    font-weight: 500;
}
.pulmad-account .pwf-vendor-card__meta dd {
    margin: 0;
    color: var(--account-text, #333);
}
.pulmad-account .pwf-vendor-card__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pulmad-account .pwf-vendor-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin: 0 0 20px;
    background: #ECFDF5;
    border-left: 4px solid #10B981;
    border-radius: 6px;
}
.pulmad-account .pwf-vendor-success__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-top: 2px;
}
.pulmad-account .pwf-vendor-success__body strong {
    display: block;
    color: #065F46;
    font-size: 15px;
    margin-bottom: 4px;
}
.pulmad-account .pwf-vendor-success__body p {
    margin: 0;
    color: var(--account-text, #333);
    font-size: 14px;
    line-height: 1.5;
}

.pulmad-account .pwf-vendor-card__invoices {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--account-border, #E5E7EB);
}
.pulmad-account .pwf-vendor-card__invoices-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--account-text-muted, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pulmad-account .pwf-vendor-card__invoice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pulmad-account .pwf-vendor-card__invoice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: var(--account-surface-alt, #F9FAFB);
    border-radius: 6px;
    font-size: 14px;
}
.pulmad-account .pwf-vendor-card__invoice-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.pulmad-account .pwf-vendor-card__invoice-label {
    font-weight: 600;
    color: var(--account-text, #333);
}
.pulmad-account .pwf-vendor-card__invoice-no,
.pulmad-account .pwf-vendor-card__invoice-date {
    color: var(--account-text-muted, #6B7280);
    font-size: 13px;
}
.pulmad-account .pwf-vendor-card__invoice-amount {
    font-weight: 600;
    color: var(--account-text, #333);
}
.pulmad-account .pwf-vendor-card__invoice-pending {
    font-size: 13px;
    color: var(--account-text-muted, #6B7280);
    font-style: italic;
}
.pulmad-account .pwf-vendor-card__invoice-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.pulmad-account .pwf-vendor-card__invoice-status--paid {
    background: #DCFCE7;
    color: #166534;
}
.pulmad-account .pwf-vendor-card__invoice-status--due {
    background: #FEF3C7;
    color: #92400E;
}
.pulmad-account .pwf-vendor-card__invoice-status--pending {
    background: #E5E7EB;
    color: #4B5563;
}
.pulmad-account .pwf-vendor-card__invoice--pending {
    opacity: 0.7;
}
.pulmad-account .pwf-vendor-card__invoice--paid {
    background: #F0FDF4;
}
.pulmad-account .pwf-vendor-card__invoice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pulmad-account .pwf-quickpay-btn {
    background: #0D6EFD;
    color: #fff;
    border-color: #0D6EFD;
}
.pulmad-account .pwf-quickpay-btn:hover {
    background: #0B5ED7;
    border-color: #0B5ED7;
}
.pulmad-account .pwf-quickpay-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}
.pulmad-account .pwf-vendor-card__invoice-actions button:disabled:not(.pwf-quickpay-btn) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
}
.pulmad-account .pwf-vendor-success--warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}
@media (max-width: 480px) {
    .pulmad-account .pwf-vendor-card__invoice {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .pulmad-account .pwf-vendor-card__invoice-info {
        justify-content: space-between;
    }
}

/* Help subview */
.pulmad-account .pwf-vendor-help {
    color: var(--account-text, #333);
    line-height: 1.6;
}
.pulmad-account .pwf-vendor-help__intro {
    margin: 0 0 24px;
    padding: 14px 18px;
    background: var(--account-primary-light, #DBE8F7);
    border-radius: var(--account-radius-sm, 8px);
    color: var(--account-primary-dark, #1E355C);
    font-size: 14px;
}
.pulmad-account .pwf-vendor-help__section {
    margin-bottom: 28px;
}
.pulmad-account .pwf-vendor-help__section:last-child {
    margin-bottom: 0;
}
.pulmad-account .pwf-vendor-help__section h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--account-text, #333);
}
.pulmad-account .pwf-vendor-help__section p,
.pulmad-account .pwf-vendor-help__section ul,
.pulmad-account .pwf-vendor-help__section ol {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--account-text, #333);
}
.pulmad-account .pwf-vendor-help__section ul,
.pulmad-account .pwf-vendor-help__section ol {
    padding-left: 22px;
}
.pulmad-account .pwf-vendor-help__section li {
    margin-bottom: 4px;
}
.pulmad-account .pwf-vendor-help__section a {
    color: var(--account-primary, #325289);
    text-decoration: none;
}
.pulmad-account .pwf-vendor-help__section a:hover {
    text-decoration: underline;
}
.pulmad-account .pwf-vendor-help__statuses {
    list-style: none !important;
    padding-left: 0 !important;
}
.pulmad-account .pwf-vendor-help__statuses li {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .pulmad-account .pwf-vendor-card__header {
        flex-direction: column;
        align-items: stretch;
    }
    .pulmad-account .pwf-vendor-card__badge {
        align-self: flex-start;
    }
    .pulmad-account .pwf-vendor-card__meta {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }
    .pulmad-account .pwf-vendor-card__meta-row {
        display: block;
    }
    .pulmad-account .pwf-vendor-card__meta dt {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .pulmad-account .pwf-vendor-card__footer {
        justify-content: stretch;
    }
    .pulmad-account .pwf-vendor-card__footer .pulmad-account__btn {
        flex: 1;
    }
}

/* ── Pre-registration valik-ekraan (guests vs catalog) ────────── */
.pwf-choice-screen {
    max-width: 1000px;
    margin: 32px auto;
    padding: 0 16px;
}
.pwf-choice-screen__header {
    text-align: center;
    margin-bottom: 32px;
}
.pwf-choice-screen__header h2 {
    font-size: 26px;
    margin: 0 0 12px;
    color: #1e293b;
}
.pwf-choice-screen__header p {
    font-size: 16px;
    color: #475569;
    margin: 0;
}
.pwf-choice-screen__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.pwf-choice-card {
    position: relative;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pwf-choice-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.pwf-choice-card--recommended {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
}
.pwf-choice-card--recommended:hover {
    border-color: #d97706;
    box-shadow: 0 6px 18px rgba(245,158,11,0.18);
}
.pwf-choice-card__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 20px;
}
.pwf-choice-card h3 {
    font-size: 22px;
    margin: 0 0 18px;
    color: #1e293b;
}
.pwf-choice-card__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.pwf-choice-card__benefits li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.pwf-choice-card__benefits li:last-child {
    border-bottom: none;
}
.pwf-choice-card__benefits li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 8px;
    color: #16a34a;
    font-weight: 700;
}
.pwf-choice-card__benefits--muted li::before {
    content: "·";
    color: #94a3b8;
    font-size: 22px;
    top: 2px;
}
.pwf-choice-card__benefits strong {
    color: #b45309;
    font-weight: 700;
}
.pwf-choice-card__benefits--muted strong {
    color: #475569;
}
.pwf-choice-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}
.pwf-choice-card__cta:not(.pwf-btn-primary) {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.pwf-choice-card__cta:not(.pwf-btn-primary):hover {
    background: #e2e8f0;
    color: #0f172a;
}
.pwf-choice-card__note {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin: 0 0 12px;
    min-height: 1.5em;
}
@media (max-width: 720px) {
    .pwf-choice-screen__cards {
        grid-template-columns: 1fr;
    }
}

/* Äriregister autocomplete (step 5 — Kontaktandmed) */
.pwf-ariregister-autocomplete {
    position: relative;
}
.pwf-ariregister__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
}
.pwf-ariregister__item {
    padding: 10px 14px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.4;
}
.pwf-ariregister__item:last-child {
    border-bottom: none;
}
.pwf-ariregister__item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Pending registration notice — sits between card header and body. */
.pulmad-account .pwf-vendor-card__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 16px 20px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    position: relative;
    overflow: hidden;
}

.pulmad-account .pwf-vendor-card__notice--pending {
    background: linear-gradient(180deg, #fff8ec 0%, #fff3df 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #5a3a14;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 6px 18px -10px rgba(180, 138, 44, 0.35);
}

.pulmad-account .pwf-vendor-card__notice--pending::before {
    /* Left accent stripe in gold */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #d4af37, #b48a2c);
}

.pulmad-account .pwf-vendor-card__notice-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    color: #b48a2c;
    margin-top: 1px;
}

.pulmad-account .pwf-vendor-card__notice-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

.pulmad-account .pwf-vendor-card__notice-body {
    flex: 1 1 auto;
    min-width: 0;
}

.pulmad-account .pwf-vendor-card__notice-title {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-primary, Georgia, serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a2f10;
    letter-spacing: -0.005em;
}

.pulmad-account .pwf-vendor-card__notice-text {
    margin: 0;
    color: #6b4a1f;
    font-size: 13.5px;
    line-height: 1.55;
}

/* Edit-form variant — full width inside the panel. */
.pulmad-account__panel > .pwf-vendor-card__notice--pending {
    margin: 0 0 24px;
}

@media (max-width: 480px) {
    .pulmad-account .pwf-vendor-card__notice {
        gap: 10px;
        padding: 14px 14px;
    }

    .pulmad-account .pwf-vendor-card__notice-icon {
        width: 32px;
        height: 32px;
    }
}

/* Vendor self-cancel button on /konto pulmamess card. */
.pulmad-account .pwf-vendor-card__cancel {
    background: transparent;
    border: 1px solid #e0a5a5;
    color: #b91c1c;
    cursor: pointer;
}
.pulmad-account .pwf-vendor-card__cancel:hover {
    background: #fef2f2;
    border-color: #b91c1c;
    color: #991b1b;
}
.pulmad-account .pwf-vendor-card__cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
