.pme-wrap,
.pme-events,
.pme-single {
    max-width: 980px;
    margin: 0 auto;
}

.pme-registration {
    margin-top: 2.75rem;
}

.pme-registration__title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 1.5rem;
    color: #17202a;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.pme-registration__title::before,
.pme-registration__title::after {
    height: 1px;
    flex: 1 1 auto;
    background: #d8dee8;
    content: '';
}

.pme-events {
    display: grid;
    gap: 1rem;
}

.pme-events-list {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.pme-card,
.pme-event-card,
.pme-payment-panel,
.pme-ticket-panel {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.pme-event-list-card {
    padding: 22px;
    border-color: #e6e9ef;
    box-shadow: 0 10px 26px rgba(23, 32, 42, 0.07);
}

.pme-event-list-date {
    margin: 0 0 8px;
    color: #006d77;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.pme-event-list-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.pme-event-list-title a {
    color: #17202a;
    text-decoration: none;
}

.pme-event-list-title a:hover,
.pme-event-list-title a:focus {
    color: #006d77;
    text-decoration: none;
}

.pme-event-list-location,
.pme-event-list-excerpt,
.pme-event-list-meta {
    margin: 0 0 10px;
    color: #344054;
    font-size: 16px;
    line-height: 1.6;
}

.pme-event-list-location,
.pme-event-list-meta {
    color: #667085;
}

.pme-event-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 4px 0 0;
}

.pme-text-link,
.pme-text-link:visited {
    color: #a44120;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.pme-text-link:hover,
.pme-text-link:focus {
    color: #7f2f18;
    text-decoration: underline;
}

.pme-event-card {
    display: grid;
    gap: 0.6rem;
}

.pme-event-card h3,
.pme-single h2,
.pme-payment-panel h3,
.pme-ticket-panel h3 {
    margin-top: 0;
}

.pme-meta {
    color: #4b5563;
    font-size: 0.95rem;
}

.pme-status,
.pme-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    background: #eef2f7;
    color: #253041;
    font-size: 0.85rem;
    font-weight: 600;
}

.pme-notice {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    color: #172554;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}

.pme-success {
    border-left-color: #15803d;
    background: #ecfdf3;
    color: #14532d;
}

.pme-warning {
    border-left-color: #d97706;
    background: #fff7ed;
    color: #7c2d12;
}

.pme-error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #7f1d1d;
}

.pme-form {
    display: grid;
    gap: 0.9rem;
    margin: 1.25rem 0;
}

.pme-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pme-form p {
    margin: 0;
}

.pme-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.pme-form input[type="text"],
.pme-form input[type="email"],
.pme-form input[type="tel"],
.pme-form input[type="number"],
.pme-form input[type="datetime-local"],
.pme-form textarea {
    width: 100%;
    max-width: 620px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.pme-form textarea {
    min-height: 7rem;
}

.pme-button,
.pme-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border: 0;
    border-radius: 6px;
    padding: 0.55rem 0.9rem;
    background: #1f6f5b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pme-button:hover,
.pme-button:focus {
    background: #155f4b;
    color: #fff;
}

.pme-secondary,
.pme-secondary:visited {
    background: #334155;
}

.pme-secondary:hover,
.pme-secondary:focus {
    background: #1f2937;
}

.pme-button[disabled] {
    cursor: progress;
    opacity: 0.7;
}

.pme-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.35rem 1rem;
    margin: 1rem 0;
}

.pme-details dt {
    color: #475569;
    font-weight: 700;
}

.pme-details dd {
    margin: 0;
}

.pme-event-standard {
    margin: 0 0 28px;
    padding: 24px 0;
    border-top: 1px solid #d8dee8;
    border-bottom: 1px solid #d8dee8;
}

.pme-event-standard--has-image {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(440px, 1.25fr);
    gap: 42px;
    align-items: start;
}

.pme-event-standard__details {
    min-width: 0;
}

.pme-event-standard__info {
    min-width: 0;
}

.pme-event-standard__info .pme-details {
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 0;
}

.pme-event-standard__info .pme-details dt {
    margin-top: 14px;
    color: #061b35;
    font-size: 0.76rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.pme-event-standard__info .pme-details dt:first-child {
    margin-top: 0;
}

.pme-event-standard__info .pme-details dd {
    color: #17202a;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
}

.pme-event-standard__description {
    min-width: 0;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #d8dee8;
}

.pme-event-standard__description h2 {
    margin: 0 0 14px;
    color: #061b35;
    font-size: 1.25rem;
    line-height: 1.25;
}

.pme-event-standard__description h2 + * {
    margin-top: 0;
}

.pme-event-standard__description > :last-child {
    margin-bottom: 0;
}

.pme-event-standard__image {
    width: min(100%, 520px);
    margin: 0 auto;
    min-width: 0;
    justify-self: center;
    padding: 0;
    border: 0 !important;
    background: transparent;
    box-shadow: none !important;
}

.pme-event-standard__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

.pme-media-picker__preview {
    margin: 10px 0;
}

.pme-media-picker__preview img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border: 1px solid #d8dee8;
    border-radius: 6px;
}

.pme-event-poster-active .entry-header {
    display: none;
}

.pme-event-poster {
    position: relative;
    width: min(100%, 760px);
    aspect-ratio: 1125 / 1585;
    margin: 0 auto 32px;
    overflow: hidden;
    background-color: #061b35;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.pme-event-poster__title {
    position: absolute;
    inset: 0 0 auto;
    padding: 30px 28px 24px;
    background: rgba(2, 18, 35, 0.9);
}

.pme-event-poster__title h1 {
    margin: 0;
    color: #eebe44;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.pme-event-poster__details-wrap {
    position: absolute;
    top: 20%;
    left: 0;
    width: min(55%, 390px);
    padding: 22px 24px;
    background: rgba(2, 18, 35, 0.9);
}

.pme-event-poster__details {
    grid-template-columns: 1fr;
    gap: 3px;
    margin: 0;
}

.pme-event-poster__details dt {
    margin-top: 9px;
    color: #eebe44;
    font-size: 0.77rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.pme-event-poster__details dt:first-child {
    margin-top: 0;
}

.pme-event-poster__details dd {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.45;
}

.pme-payment-grid,
.pme-ticket-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.pme-payment-reference {
    display: inline-block;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 1.05rem;
}

.pme-payment-instructions {
    white-space: pre-wrap;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}

.pme-table-scroll {
    overflow-x: auto;
}

.pme-registrations-table th,
.pme-registrations-table td {
    vertical-align: top;
}

.pme-actions-cell {
    min-width: 230px;
}

.pme-inline-action {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 0.35rem;
}

.pme-action-note {
    width: 8rem;
}

.pme-audit-log {
    margin-top: 0.35rem;
}

.pme-audit-log ol {
    margin-left: 1.2rem;
}

.pme-checkin .pme-card {
    max-width: 560px;
}

html[dir="rtl"] .pme-wrap,
html[dir="rtl"] .pme-events,
html[dir="rtl"] .pme-single,
body.rtl .pme-wrap,
body.rtl .pme-events,
body.rtl .pme-single {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .pme-event-list-actions,
body.rtl .pme-event-list-actions {
    justify-content: flex-start;
}

html[dir="rtl"] .pme-notice,
body.rtl .pme-notice {
    border-left: 0;
    border-right: 4px solid #2563eb;
}

html[dir="rtl"] .pme-success,
body.rtl .pme-success {
    border-right-color: #15803d;
}

html[dir="rtl"] .pme-warning,
body.rtl .pme-warning {
    border-right-color: #d97706;
}

html[dir="rtl"] .pme-error,
body.rtl .pme-error {
    border-right-color: #dc2626;
}

html[dir="rtl"] .pme-event-poster__details-wrap,
body.rtl .pme-event-poster__details-wrap {
    right: 0;
    left: auto;
}

html[dir="rtl"] .pme-event-standard__info,
body.rtl .pme-event-standard__info {
    padding: 0;
    border: 0;
}

@media (max-width: 700px) {
    .pme-payment-grid,
    .pme-ticket-grid {
        grid-template-columns: 1fr;
    }

    .pme-event-poster__title {
        padding: 22px 20px 18px;
    }

    .pme-event-poster__title h1 {
        font-size: 1.7rem;
    }

    .pme-event-poster__details-wrap {
        top: 22%;
        width: min(88%, 360px);
        padding: 16px 18px;
    }

    .pme-event-poster__details dd {
        font-size: 0.92rem;
    }

    .pme-event-standard,
    .pme-event-standard--has-image {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px 0;
    }

    .pme-event-standard__info,
    html[dir="rtl"] .pme-event-standard__info,
    body.rtl .pme-event-standard__info {
        padding: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }
}
