.wowrsvp-rsvp-website-box {
    margin: 18px 0 22px;
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.wowrsvp-rsvp-website-heading {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wowrsvp-rsvp-website-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.wowrsvp-rsvp-website-row + .wowrsvp-rsvp-website-row {
    margin-top: 14px;
}

.wowrsvp-rsvp-website-field-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.wowrsvp-rsvp-website-name {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.wowrsvp-rsvp-website-input {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 5px !important;
    background: #f8f8f8 !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 46px !important;
    color: #333 !important;
    cursor: text !important;
}

.wowrsvp-rsvp-website-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.wowrsvp-rsvp-website-open,
.wowrsvp-rsvp-website-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    border: 1px solid #111 !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: opacity .2s ease !important;
}

.wowrsvp-rsvp-website-open {
    background: #111 !important;
    color: #fff !important;
}

.wowrsvp-rsvp-website-copy {
    background: #fff !important;
    color: #111 !important;
}

.wowrsvp-rsvp-website-open:hover,
.wowrsvp-rsvp-website-copy:hover {
    opacity: .82 !important;
}

@media (max-width: 767px) {
    .wowrsvp-rsvp-website-box {
        padding: 16px;
    }

    .wowrsvp-rsvp-website-row {
        display: block;
    }

    .wowrsvp-rsvp-website-actions {
        margin-top: 9px;
    }

    .wowrsvp-rsvp-website-open,
    .wowrsvp-rsvp-website-copy {
        flex: 1 1 50%;
    }
}
/* Mobile RSVP Responses layout refinements */
@media (max-width: 767px) {
    .wowrsvp-search-form,
    .wowrsvp-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .wowrsvp-search-wrapper {
        position: relative !important;
        overflow: hidden !important;
    }

    .wowrsvp-search-form input[type="search"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-right: 48px !important;
    }

    .wowrsvp-search-clear {
        right: 10px !important;
        max-width: 36px !important;
    }

    .wowrsvp-filter-mobile {
        width: auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .wowrsvp-filter-mobile-label {
        display: block !important;
        margin: 0 0 7px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        letter-spacing: .08em !important;
        text-transform: uppercase !important;
    }

    .wowrsvp-filter-toggle {
        width: 88px !important;
        min-width: 88px !important;
        padding: 0 12px !important;
    }
}



/* Mobile RSVP Responses refinements v1.0.8 */
@media (max-width: 767px) {
    /* Keep the search clear control simple: black X, no black circle/background. */
    .wowrsvp-search-clear {
        appearance: none !important;
        -webkit-appearance: none !important;
        background: transparent !important;
        background-color: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #111 !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 24px !important;
        font-weight: 400 !important;
        line-height: 30px !important;
        text-align: center !important;
        transform: none !important;
    }

    .wowrsvp-search-clear:hover,
    .wowrsvp-search-clear:focus,
    .wowrsvp-search-clear:active {
        background: transparent !important;
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #111 !important;
        outline: none !important;
    }

    /* Center the Responses label above the compact All dropdown. */
    .wowrsvp-filter-mobile {
        align-items: center !important;
        text-align: center !important;
    }

    .wowrsvp-filter-mobile-label {
        width: 100% !important;
        margin: 0 0 5px !important;
        text-align: center !important;
    }

    .wowrsvp-filter-toggle {
        width: 82px !important;
        min-width: 82px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 0 10px !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
        line-height: 38px !important;
    }
}


/* Mobile refinements v1.0.9 - force overrides after theme styles */
@media (max-width: 767px) {
    /* Search clear: plain black X only */
    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear,
    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear:hover,
    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear:focus,
    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear:active {
        appearance: none !important;
        -webkit-appearance: none !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #111 !important;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 25px !important;
        font-weight: 400 !important;
        line-height: 28px !important;
        text-align: center !important;
        position: absolute !important;
        top: 50% !important;
        right: 10px !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        outline: none !important;
        z-index: 3 !important;
    }

    /* Compact response selector: label and button centered together */
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile-label {
        width: 82px !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
        text-align: center !important;
        line-height: 14px !important;
        font-size: 11px !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-toggle {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 8px !important;
        margin: 0 !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
        line-height: 36px !important;
    }
}


/* Mobile search clear icon v1.1.2 - draw a clean X instead of relying on a font glyph. */
@media (max-width: 767px) {
    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear {
        font-size: 0 !important;
        line-height: 0 !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: block !important;
        position: absolute !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: transparent !important;
        text-indent: -9999px !important;
        overflow: visible !important;
    }

    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear::before,
    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear::after {
        content: "" !important;
        position: absolute !important;
        width: 17px !important;
        height: 2px !important;
        left: 50% !important;
        top: 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #111 !important;
        border: 0 !important;
        border-radius: 1px !important;
        transform-origin: center !important;
    }

    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear::before {
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }

    .wowrsvp-responses .wowrsvp-search-wrapper .wowrsvp-search-clear::after {
        transform: translate(-50%, -50%) rotate(-45deg) !important;
    }
}


/* Mobile response selector v1.1.3 - allow longer selected labels such as Accepted to fit cleanly. */
@media (max-width: 767px) {
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile {
        width: auto !important;
        min-width: 82px !important;
        max-width: 120px !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile-label {
        width: 100% !important;
        white-space: nowrap !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-toggle {
        width: auto !important;
        min-width: 82px !important;
        max-width: 120px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-label {
        display: inline-block !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-arrow {
        display: inline-block !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}


/* Direct print preview v1.1.5 */
.wowrsvp-print-preview {
    display: none !important;
}

@media print {
    body > *:not(.wowrsvp-print-preview) {
        display: none !important;
    }

    .wowrsvp-print-preview {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #333 !important;
        font-family: Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .wowrsvp-print-preview .report-header {
        margin-bottom: 30px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid #333 !important;
    }

    .wowrsvp-print-preview .report-header h1 {
        margin: 0 !important;
        font-size: 32px !important;
    }

    .wowrsvp-print-preview .generated-date {
        margin-top: 8px !important;
        font-size: 14px !important;
    }

    .wowrsvp-print-preview table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        margin: 20px 0 30px !important;
    }

    .wowrsvp-print-preview th,
    .wowrsvp-print-preview td {
        padding: 10px !important;
        border: 1px solid #ccc !important;
        text-align: left !important;
        vertical-align: top !important;
        word-break: break-word !important;
    }

    .wowrsvp-print-preview th {
        background: #f5f5f5 !important;
        font-weight: 600 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .wowrsvp-print-preview h2 {
        margin-top: 40px !important;
        margin-bottom: 15px !important;
    }

    .wowrsvp-print-preview tr {
        break-inside: avoid !important;
    }
}


/* Mobile response selector typography v1.1.6 */
@media (max-width: 767px) {
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-toggle,
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-label,
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-arrow {
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-toggle {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 9px !important;
        gap: 3px !important;
        border-radius: 18px !important;
        line-height: 1 !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile {
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-menu button {
        font-size: 13px !important;
    }
}

/* Mobile response filter fixed-width layout v1.1.7
 * Give the selector its own predictable column so All/Accepted/Declined
 * never compete with Export CSV or Print for horizontal space.
 */
@media (max-width: 767px) {
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-toolbar-top {
        display: grid !important;
        grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile {
        width: 104px !important;
        min-width: 104px !important;
        max-width: 104px !important;
        flex: 0 0 104px !important;
        margin: 0 !important;
        align-self: center !important;
        box-sizing: border-box !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile-label {
        width: 104px !important;
        font-size: 11px !important;
        margin-bottom: 5px !important;
        text-align: center !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-toggle {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 9px !important;
        margin: 0 auto !important;
        font-size: 13px !important;
        line-height: 36px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        gap: 3px !important;
        white-space: nowrap !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-label,
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-arrow {
        font-size: 13px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter {
        display: none !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-actions {
        display: contents !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-actions .wowrsvp-export,
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-actions .wowrsvp-print-button {
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-self: stretch !important;
    }
}


/* Mobile response toolbar spacing v1.1.8 */
@media (max-width: 767px) {
    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-toolbar-top {
        grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 8px !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
    }

    .wowrsvp-responses .wowrsvp-toolbar .wowrsvp-filter-mobile-label {
        width: 112px !important;
    }
}

/* Print report table cleanup v1.1.8 */
@media print {
    .wowrsvp-print-preview table {
        border-collapse: collapse !important;
    }

    .wowrsvp-print-preview th,
    .wowrsvp-print-preview td {
        border: 0 !important;
        border-bottom: 0 !important;
        border-top: 0 !important;
    }

    .wowrsvp-print-preview thead tr {
        border-bottom: 1px solid #333 !important;
    }

    .wowrsvp-print-preview tr.rsvp-declined-start {
        border-top: 1px solid #333 !important;
    }

    .wowrsvp-print-preview tr.rsvp-declined-start td {
        border-top: 1px solid #333 !important;
    }
}
