/* =========================================================
   CONTACT FORM 7 — MULTIPLE CEREMONY SELECTOR
========================================================= */

.gwhy-cf7-ceremony-field[hidden],
.gwhy-form-ceremony-selector[hidden] {
    display: none;
}

.gwhy-cf7-ceremony-field {
    grid-column: 1 / -1;
}

.gwhy-cf7-field-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 243, 223, 0.86);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.gwhy-form-ceremony-selector {
    position: relative;
    width: 100%;
}

.gwhy-form-ceremony-control {
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid rgba(226, 182, 91, 0.24);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 0, 0, 0.34);
    color: var(--gw-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

.gwhy-form-ceremony-control:hover,
.gwhy-form-ceremony-selector.is-open .gwhy-form-ceremony-control {
    border-color: rgba(255, 106, 26, 0.58);
    background: rgba(0, 0, 0, 0.44);
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.10);
}

.gwhy-form-ceremony-control:focus-visible {
    outline: 2px solid var(--gw-primary-2);
    outline-offset: 3px;
}

.gwhy-form-ceremony-control-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.gwhy-form-ceremony-control-copy strong {
    color: var(--gw-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.gwhy-form-ceremony-control-copy small {
    color: rgba(255, 243, 223, 0.48);
    font-size: 11px;
    line-height: 1.35;
}

.gwhy-form-ceremony-control-meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gwhy-form-ceremony-control-count {
    padding: 5px 9px;
    border: 1px solid rgba(255, 106, 26, 0.20);
    border-radius: var(--radius-pill);
    background: rgba(255, 106, 26, 0.08);
    color: var(--gw-primary-2);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.gwhy-form-ceremony-control-meta > i {
    color: rgba(255, 243, 223, 0.55);
    font-size: 11px;
    transition: transform 0.22s ease;
}

.gwhy-form-ceremony-selector.is-open
    .gwhy-form-ceremony-control-meta > i {
    transform: rotate(180deg);
}

.gwhy-form-ceremony-dropdown {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 182, 91, 0.26);
    border-radius: 14px;
    background: #130a06;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.gwhy-form-ceremony-dropdown[hidden] {
    display: none;
}

.gwhy-form-ceremony-search-wrap {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid rgba(226, 182, 91, 0.14);
}

.gwhy-form-ceremony-search-wrap > i {
    position: absolute;
    left: 27px;
    top: 50%;
    color: var(--gw-primary-2);
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.gwhy-booking-form-pro .gwhy-form-ceremony-search {
    min-height: 42px;
    padding: 10px 42px 10px 38px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.30);
}

.gwhy-form-ceremony-search-clear {
    position: absolute;
    right: 22px;
    top: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 243, 223, 0.64);
    cursor: pointer;
    transform: translateY(-50%);
}

.gwhy-form-ceremony-search-clear[hidden] {
    display: none;
}

.gwhy-form-ceremony-options {
    max-height: 286px;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 119, 34, 0.62)
        rgba(255, 255, 255, 0.04);
}

.gwhy-form-ceremony-options::-webkit-scrollbar {
    width: 5px;
}

.gwhy-form-ceremony-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-pill);
}

.gwhy-form-ceremony-options::-webkit-scrollbar-thumb {
    background: rgba(255, 119, 34, 0.62);
    border-radius: var(--radius-pill);
}

.gwhy-form-ceremony-option {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.gwhy-form-ceremony-option[hidden] {
    display: none;
}

.gwhy-form-ceremony-option:hover {
    border-color: rgba(226, 182, 91, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.gwhy-form-ceremony-option.is-selected {
    border-color: rgba(255, 106, 26, 0.36);
    background: rgba(255, 106, 26, 0.07);
}

.gwhy-form-ceremony-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gwhy-form-ceremony-check {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 119, 34, 0.55);
    border-radius: 4px;
    display: grid !important;
    place-items: center;
    background: rgba(255, 255, 255, 0.025);
    color: #130703;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.gwhy-form-ceremony-check i {
    font-size: 10px;
    opacity: 0;
    transform: scale(0.72);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.gwhy-form-ceremony-checkbox:checked +
    .gwhy-form-ceremony-check {
    border-color: var(--gw-primary);
    background: var(--gw-primary);
}

.gwhy-form-ceremony-checkbox:checked +
    .gwhy-form-ceremony-check i {
    opacity: 1;
    transform: scale(1);
}

.gwhy-form-ceremony-checkbox:focus-visible +
    .gwhy-form-ceremony-check {
    outline: 2px solid var(--gw-primary-2);
    outline-offset: 3px;
}

.gwhy-form-ceremony-option-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.gwhy-form-ceremony-option-copy strong {
    color: rgba(255, 243, 223, 0.88);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.gwhy-form-ceremony-option-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 243, 223, 0.48);
    font-size: 10px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gwhy-form-ceremony-option-price {
    color: var(--gw-gold);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.gwhy-form-ceremony-option-price .woocommerce-Price-currencySymbol {
    margin-right: 1px;
}

.gwhy-form-ceremony-no-products,
.gwhy-form-ceremony-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--gw-muted);
    font-size: 12px;
}

.gwhy-form-ceremony-no-results[hidden] {
    display: none;
}

.gwhy-form-ceremony-dropdown-footer {
    min-height: 46px;
    padding: 9px 12px;
    border-top: 1px solid rgba(226, 182, 91, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 243, 223, 0.46);
    font-size: 10px;
}

.gwhy-form-ceremony-clear-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gw-primary-2);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.gwhy-form-ceremony-clear-all:disabled {
    opacity: 0.45;
    cursor: default;
}

.gwhy-form-ceremony-selected-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(226, 182, 91, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.gwhy-form-ceremony-selected-head {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gwhy-form-ceremony-selected-head > span {
    color: rgba(255, 243, 223, 0.62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gwhy-form-ceremony-total {
    color: var(--gw-gold);
    font-size: 10px;
    font-weight: 700;
}

.gwhy-form-ceremony-chips {
    min-height: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gwhy-form-ceremony-empty {
    align-self: center;
    color: rgba(255, 243, 223, 0.42);
    font-size: 11px;
}

.gwhy-form-ceremony-chip {
    max-width: 100%;
    min-height: 32px;
    padding: 5px 7px 5px 10px;
    border: 1px solid rgba(255, 106, 26, 0.25);
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 106, 26, 0.08);
    color: rgba(255, 243, 223, 0.82);
    font-size: 10px;
}

.gwhy-form-ceremony-chip-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gwhy-form-ceremony-chip small {
    color: var(--gw-gold);
    font-size: 9px;
    white-space: nowrap;
}

.gwhy-form-ceremony-chip-remove {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 243, 223, 0.62);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.gwhy-form-ceremony-chip-remove:hover {
    background: var(--gw-primary);
    color: #130703;
}

.gwhy-form-ceremony-chip-remove i {
    font-size: 9px;
}

@media (max-width: 600px) {
    .gwhy-form-ceremony-control {
        align-items: flex-start;
    }

    .gwhy-form-ceremony-control-meta {
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 6px;
    }

    .gwhy-form-ceremony-dropdown {
        position: relative;
        top: auto;
        margin-top: 8px;
    }

    .gwhy-form-ceremony-options {
        max-height: 310px;
    }

    .gwhy-form-ceremony-option {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .gwhy-form-ceremony-option-price {
        grid-column: 2;
        justify-self: start;
    }

    .gwhy-form-ceremony-selected-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gwhy-form-ceremony-chip {
        width: 100%;
        border-radius: 10px;
    }

    .gwhy-form-ceremony-chip-remove {
        margin-left: auto;
        flex: 0 0 20px;
    }
}
