﻿/* ==========================================================================
   PocketEvents Pro – Frontend Styles
   ========================================================================== */

/* --- Variables (overridden inline by plugin) --- */
:root {
    --pocketemp-container-bg: #ffffff;
    --pocketemp-text-color: #333333;
    --pocketemp-button-color: #2271b1;
    --pocketemp-button-text-color: #ffffff;
    --pocketemp-button-border-radius: 6px;
    --pocketemp-button-hover: #135e96;
    --pocketemp-tile-bg: #ffffff;
    --pocketemp-border-radius: 8px;
    --pocketemp-tile-border-radius: 10px;
}

/* ==========================================================================
   SHARED / GENERAL
   ========================================================================== */
.pocketemp-events-wrap {
    color: var(--pocketemp-text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

.pocketemp-events-wrap *,
.pocketemp-events-wrap *::before,
.pocketemp-events-wrap *::after {
    box-sizing: border-box;
}

.pocketemp-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1.1em;
}

/* --- Buttons --- */
.pocketemp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--pocketemp-button-border-radius) !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    line-height: 1.4;
}

.pocketemp-btn:active {
    transform: translateY(0);
}

.pocketemp-btn-primary {
    background: var(--pocketemp-button-color) !important;
    color: var(--pocketemp-button-text-color) !important;
    border: none !important;
}

.pocketemp-btn-primary:hover {
    background: var(--pocketemp-button-hover) !important;
    color: var(--pocketemp-button-text-color) !important;
    border: none !important;
}

.pocketemp-btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.pocketemp-btn-block {
    display: block;
    width: 100%;
}

.pocketemp-btn:disabled,
.pocketemp-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pocketemp-btn-outline {
    background: transparent !important;
    border: 2px solid var(--pocketemp-button-color) !important;
    color: var(--pocketemp-button-color) !important;
}

.pocketemp-btn-outline:hover {
    background: var(--pocketemp-button-color) !important;
    color: var(--pocketemp-button-text-color) !important;
}

/* --- Category Badge --- */
.pocketemp-kat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.pocketemp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 0;
}

.pocketemp-filter-btn {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pocketemp-filter-btn:hover {
    border-color: var(--pocketemp-button-color);
    color: var(--pocketemp-button-color);
}

.pocketemp-filter-btn.active {
    background: var(--pocketemp-button-color);
    color: var(--pocketemp-button-text-color);
    border-color: var(--pocketemp-button-color);
}

/* ==========================================================================
   CARD / KACHELN LAYOUT
   ========================================================================== */
.pocketemp-events-grid {
    display: grid;
    gap: 16px;
}

.pocketemp-events-grid.columns-1 {
    grid-template-columns: 1fr;
}

.pocketemp-events-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pocketemp-events-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pocketemp-events-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pocketemp-event-card {
    background: var(--pocketemp-container-bg);
    border-radius: var(--pocketemp-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.pocketemp-event-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px);
}

/* Card Image */
.pocketemp-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.pocketemp-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pocketemp-event-card:hover .pocketemp-card-image img {
    transform: scale(1.05);
}

.pocketemp-card-image .pocketemp-kat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.pocketemp-card-sold-out {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.pocketemp-card-sold-out span {
    background: #dc3232;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card Body */
.pocketemp-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pocketemp-card-body h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pocketemp-text-color);
}

.pocketemp-card-subtitle {
    font-size: 14px !important;
    color: var(--pocketemp-text-color) !important;
    margin: 0 0 12px !important;
    opacity: 0.75;
}

/* Card Meta */
.pocketemp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.pocketemp-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pocketemp-card-speakers {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
}

.pocketemp-card-footer {
    margin-top: auto;
    padding-top: 12px;
}

/* ==========================================================================
   TABLE LAYOUT
   ========================================================================== */
.pocketemp-events-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pocketemp-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pocketemp-events-table th {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    white-space: nowrap;
}

.pocketemp-events-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pocketemp-events-table tbody tr:hover {
    background: #fafbfc;
}

/* Table – Event cell */
.pocketemp-table-event {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pocketemp-table-event img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.pocketemp-table-event-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.pocketemp-table-event-info small {
    color: #888;
    font-size: 12px;
}

/* Table – Ort type tags */
.pocketemp-ort-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pocketemp-ort-tag.vor_ort {
    background: #e8f5e9;
    color: #2e7d32;
}

.pocketemp-ort-tag.online {
    background: #e3f2fd;
    color: #1565c0;
}

.pocketemp-ort-tag.hybrid {
    background: #fff3e0;
    color: #e65100;
}

/* Card – Ort type pill (overview cards, matches backend toggle style) */
.pocketemp-ort-pill {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    border: 2px solid transparent;
}

.pocketemp-ort-pill--vor_ort {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.pocketemp-ort-pill--online {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #1565c0;
}

.pocketemp-ort-pill--hybrid {
    background: #fff3e0;
    color: #e65100;
    border-color: #e65100;
}

/* Table – Availability */
.pocketemp-availability {
    font-size: 13px;
    font-weight: 500;
}

.pocketemp-availability.available {
    color: #2e7d32;
}

.pocketemp-availability.sold-out {
    color: #dc3232;
    font-weight: 700;
}

.pocketemp-availability.limited {
    color: #e65100;
}

.pocketemp-more-dates {
    font-size: 12px;
    color: #888;
}

/* ==========================================================================
   SINGLE EVENT VIEW
   ========================================================================== */

/* Hero */
.pocketemp-event-hero {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: var(--pocketemp-border-radius) var(--pocketemp-border-radius) 0 0;
    overflow: hidden;
}

.pocketemp-event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: flex-end;
}

.pocketemp-event-hero__content {
    padding: 32px;
    color: #fff;
    width: 100%;
}

.pocketemp-event-hero__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pocketemp-event-hero__title {
    font-size: 32px;
    margin: 0 0 6px;
    font-weight: 800;
    line-height: 1.2;
}

.pocketemp-event-hero__subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Fallback header (no image) */
.pocketemp-event-header {
    margin-bottom: 24px;
}

.pocketemp-event-header h1 {
    font-size: 28px;
    margin: 8px 0 4px;
}

.pocketemp-event-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Content layout */
.pocketemp-event-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-top: 24px;
}

.pocketemp-event-main {
    min-width: 0;
}

/* Sections */
.pocketemp-event-section {
    margin-bottom: 32px;
}

.pocketemp-event-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.pocketemp-event-description {
    line-height: 1.75;
}

.pocketemp-event-description p {
    margin: 0 0 12px;
}

/* Highlights */
.pocketemp-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pocketemp-highlights-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.pocketemp-highlights-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--pocketemp-button-color);
    font-weight: 700;
    font-size: 16px;
}

/* Termine */
.pocketemp-termine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pocketemp-termin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.pocketemp-termin-item:hover {
    border-color: var(--pocketemp-button-color);
}

.pocketemp-termin-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    text-align: center;
}

.pocketemp-termin-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--pocketemp-button-color);
}

.pocketemp-termin-month {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.04em;
}

.pocketemp-termin-details {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.pocketemp-termin-action {
    flex-shrink: 0;
}

/* Speakers grid */
.pocketemp-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.pocketemp-speaker-card {
    text-align: center;
    padding: 20px 16px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #eee;
}

.pocketemp-speaker-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.pocketemp-speaker-placeholder {
    background: var(--pocketemp-button-color);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.pocketemp-speaker-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.pocketemp-speaker-card small {
    color: #888;
    font-size: 12px;
}

.pocketemp-speaker-bio {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* ==========================================================================
   SIDEBAR / INFO BOX & REGISTRATION FORM
   ========================================================================== */
.pocketemp-event-sidebar {
    position: relative;
}

.pocketemp-event-info-box {
    position: sticky;
    top: 20px;
    background: var(--pocketemp-tile-bg);
    border-radius: var(--pocketemp-tile-border-radius);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Quick Facts */
.pocketemp-info-facts {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.pocketemp-info-fact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.pocketemp-info-fact:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.pocketemp-info-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.pocketemp-info-fact small {
    display: block;
    color: #888;
    font-size: 12px;
}

.pocketemp-price-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--pocketemp-button-color);
}

/* Registration form */
.pocketemp-registration-form {
    padding: 20px;
}

.pocketemp-registration-form h3 {
    font-size: 17px;
    margin: 0 0 16px;
    font-weight: 700;
}

.pocketemp-form-group {
    margin-bottom: 14px;
}

.pocketemp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--pocketemp-text-color);
}

.pocketemp-form-group input[type="text"],
.pocketemp-form-group input[type="email"],
.pocketemp-form-group input[type="tel"],
.pocketemp-form-group select,
.pocketemp-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}

.pocketemp-form-group input:focus,
.pocketemp-form-group select:focus,
.pocketemp-form-group textarea:focus {
    outline: none;
    border-color: var(--pocketemp-button-color);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.pocketemp-form-submit {
    margin-top: 18px;
}

.pocketemp-form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.pocketemp-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.pocketemp-form-message.error {
    background: #ffeaea;
    color: #dc3232;
    border: 1px solid #ffcdcd;
}

/* Sold-out notice */
.pocketemp-sold-out-notice {
    padding: 24px 20px;
    text-align: center;
    color: #dc3232;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
    .pocketemp-event-content {
        grid-template-columns: 1fr;
    }

    .pocketemp-event-info-box {
        position: static;
    }

    /* Force 2 columns — covers both .columns-X classes and --columns CSS variable */
    .pocketemp-events-grid,
    .pocketemp-events-grid.columns-3,
    .pocketemp-events-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pocketemp-event-hero {
        min-height: 260px;
    }

    .pocketemp-event-hero__title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {

    /* Force single column for ALL grid variants on mobile */
    .pocketemp-events-grid,
    .pocketemp-events-grid.columns-2,
    .pocketemp-events-grid.columns-3,
    .pocketemp-events-grid.columns-4 {
        grid-template-columns: 1fr !important;
    }

    .pocketemp-events-table th:nth-child(n+4),
    .pocketemp-events-table td:nth-child(n+4) {
        display: none;
    }

    .pocketemp-filter-bar {
        gap: 6px;
    }

    .pocketemp-filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .pocketemp-event-hero {
        min-height: 200px;
        border-radius: 0;
    }

    .pocketemp-event-hero__content {
        padding: 20px;
    }

    .pocketemp-event-hero__title {
        font-size: 20px;
    }

    .pocketemp-termin-item {
        flex-wrap: wrap;
    }

    .pocketemp-speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pocketemp-card-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================================
   CARD LAYOUT - DATE BADGE + REDESIGNED CARD
   ========================================================================== */

/* Grid: use CSS variable for columns */
.pocketemp-events-grid {
    grid-template-columns: repeat(var(--columns, 3), 1fr);
}

/* Image wrapper (relative container for date badge) */
.pocketemp-card-image-wrap {
    position: relative;
    width: 100%;
}

.pocketemp-card-image {
    width: 100%;
    padding-top: 58%;
    background-size: cover;
    background-position: center;
    background-color: #e8edf2;
    position: relative;
    overflow: hidden;
}

.pocketemp-card-image--placeholder {
    background-color: transparent;
}

.pocketemp-card-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    font-size: 12px;
    font-style: italic;
}

.pocketemp-card-sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pocketemp-card-sold-out-overlay span {
    background: #dc3232;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Date badge ------------------------------------------------------- */
/* Multi-day wrapper - positions the badge group absolutely over the image */
.pocketemp-date-badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.pocketemp-date-badge-arrow {
    align-self: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.pocketemp-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: var(--pocketemp-tile-border-radius, 8px);
    background: var(--pocketemp-tile-bg, #2271b1);
    color: var(--pocketemp-tile-text-color, #fff);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    z-index: 2;
    pointer-events: none;
}

/* When inside a wrapper, override the absolute positioning */
.pocketemp-date-badge-wrap .pocketemp-date-badge {
    position: static;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.pocketemp-date-badge__month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    opacity: 1 !important;
}

.pocketemp-date-badge__day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin: 2px 0;
}

.pocketemp-date-badge__year {
    font-size: 11px;
    line-height: 1;
    opacity: 0.85;
}

/* --- Card date text --------------------------------------------------- */
.pocketemp-card-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--pocketemp-button-color, #2271b1);
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* --- Card body overrides ---------------------------------------------- */
.pocketemp-card-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--pocketemp-text-color);
}

.pocketemp-card-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pocketemp-text-color);
    margin-bottom: 8px;
    text-align: center;
}

.pocketemp-card-speaker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--pocketemp-text-color);
}

.pocketemp-speaker-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.pocketemp-card-speaker-info {
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
}

.pocketemp-card-speaker-info strong {
    font-size: 13px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pocketemp-text-color);
}

.pocketemp-card-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.35;
    font-size: 13px;
    color: var(--pocketemp-text-color);
    text-align: center;
    margin-bottom: 8px;
}

.pocketemp-card-location svg {
    flex-shrink: 0;
}

/* More dates badge on image */
.pocketemp-more-dates-badge {
    position: absolute;
    top: 12px;
    left: 76px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.pocketemp-card-highlights {
    font-size: 13px;
    color: var(--pocketemp-text-color);
    line-height: 1.5;
    margin-bottom: 6px;
    opacity: 0.85;
}

.pocketemp-card-highlights strong {
    color: var(--pocketemp-text-color);
    opacity: 1;
}

/* Card footer */
.pocketemp-card-footer {
    padding: 10px 16px 14px;
    border-top: 1px solid var(--pocketemp-button-hover) !important;;
    margin-top: auto;
}

.pocketemp-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.pocketemp-card-actions--full {
    justify-content: space-between;
}

.pocketemp-btn-tag-sold-out {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--pocketemp-button-border-radius);
    font-size: 13px;
    font-weight: 700;
    color: #999;
    background: #f0f0f0;
}

.pocketemp-modal-btn-sold-out {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: var(--pocketemp-button-border-radius);
    font-size: 15px;
    font-weight: 700;
    color: #999;
    background: #f0f0f0;
    border: none;
    cursor: not-allowed;
    text-align: center;
}

/* ==========================================================================
   LIST VIEW (layout="tabelle" shortcode attribute)
   ========================================================================== */

.pocketemp-layout-liste .pocketemp-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pocketemp-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--pocketemp-container-bg);
    border: 1px solid #e8e8e8;
    border-radius: var(--pocketemp-tile-border-radius, 10px);
    padding: 16px 20px;
    transition: box-shadow 0.2s, transform 0.15s;
}

.pocketemp-list-row:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Date box */
.pocketemp-list-date-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.pocketemp-list-date-arrow {
    color: #8c8f94;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.pocketemp-list-date-box--end {
    opacity: 0.88;
}

.pocketemp-list-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    width: 62px;
    height: 70px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
    padding: 4px 6px;
    background: var(--pocketemp-tile-bg, #fff);
}

.pocketemp-list-date-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.pocketemp-list-date-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1.4;
}

.pocketemp-list-date-year {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.pocketemp-list-date-tba {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* List info: 3-column flex layout */
.pocketemp-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Left column: date + time */
.pocketemp-list-col-datetime {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 90px;
}

.pocketemp-list-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--pocketemp-text-color);
    white-space: nowrap;
}

.pocketemp-list-time {
    font-size: 14px;
    color: var(--pocketemp-text-color);
    white-space: nowrap;
}

/* Center column: title + subtitle + View Details */
.pocketemp-list-col-title {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.pocketemp-list-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pocketemp-text-color) !important;
}

.pocketemp-list-subtitle {
    font-size: 12px;
    color: var(--pocketemp-text-color);
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right column: pills */
.pocketemp-list-col-pills {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pocketemp-list-dates-count {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: #f0f0f1;
    color: #3c434a;
    letter-spacing: .02em;
}

.pocketemp-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.pocketemp-list-details-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--pocketemp-button-color) !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    transition: opacity 0.15s !important;
    align-self: center !important;
    display: inline-block !important;
    border-radius: 0px !important;
    box-shadow: none !important;
}

.pocketemp-list-details-btn:hover {
    opacity: 0.7;
}

/* Status badges */
.pocketemp-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pocketemp-status-upcoming {
    background: #e8f5e9;
    color: #2e7d32;
}

.pocketemp-status-register {
    background: #fff3e0;
    color: #e65100;
}

.pocketemp-status-sold-out {
    background: #fce4e4;
    color: #dc3232;
}

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */

body.pocketemp-modal-active {
    overflow: hidden;
}

.pocketemp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: hidden;
}

.pocketemp-modal-inner {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: pocketemp-modal-in 0.22s ease;
}

@keyframes pocketemp-modal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pocketemp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.pocketemp-modal-close:hover {
    background: rgba(0, 0, 0, 0.82);
}

.pocketemp-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.pocketemp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--pocketemp-button-color, #2271b1);
    border-radius: 50%;
    animation: pocketemp-spin 0.7s linear infinite;
}

@keyframes pocketemp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── 2-column event modal ───────────────────────────────────────────────── */
.pocketemp-modal-2col {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 460px;
    align-items: start;
}

/* Left column */
.pocketemp-modal-col-left {
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0 0 0 12px;
    position: sticky;
    top: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.pocketemp-modal-img-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.pocketemp-modal-img {
    width: 100%;
    padding-top: 62%;
    background-size: cover;
    background-position: center;
    background-color: #d8dde4;
}

.pocketemp-modal-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}

/* Date badge reused from cards, overlays top-left of image */
.pocketemp-modal-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* All-dates chips */
.pocketemp-modal-dates-list {
    display: flex;
    gap: 8px;
    padding: 12px 14px 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Multi-day chip pair wrapper */
.pocketemp-modal-date-chip-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pocketemp-modal-date-chip-arrow {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.75;
}

.pocketemp-modal-date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid;
    border-radius: 8px;
    padding: 5px 9px;
    min-width: 44px;
    text-align: center;
    line-height: 1.15;
    background: #fff;
}

.pocketemp-modal-date-chip__month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
}

.pocketemp-modal-date-chip__day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.pocketemp-modal-date-chip__year {
    font-size: 10px;
    opacity: 0.7;
}

/* Meta info rows – time, location, speaker */
.pocketemp-modal-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #444;
    border-top: 1px solid #eee;
}

.pocketemp-modal-meta-row svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--pocketemp-text-color);
}

.pocketemp-modal-meta-row>div {
    line-height: 1.45;
}

.pocketemp-modal-meta-row strong {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pocketemp-text-color);
    margin-bottom: 1px;
}

.pocketemp-modal-meta-speaker {
    align-items: center;
}

.pocketemp-modal-speaker-thumb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pocketemp-modal-speaker-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.pocketemp-modal-speaker-info {
    line-height: 1.45;
}

.pocketemp-modal-speaker-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: none;
    letter-spacing: 0;
}

.pocketemp-modal-speaker-info small {
    color: #888;
    font-size: 12px;
}

/* Right column */
.pocketemp-modal-col-right {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pocketemp-container-bg);
}

.pocketemp-modal-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 6px;
    padding-right: 36px;
}

.pocketemp-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.5;
}

.pocketemp-modal-section {
    margin-bottom: 16px;
}

.pocketemp-modal-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pocketemp-text-color, #333);
    margin: 0 0 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.pocketemp-modal-description {
    font-size: 13px;
    line-height: 1.75;
    color: var(--pocketemp-text-color, #333);
}

.pocketemp-modal-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pocketemp-modal-highlights li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 13px;
    color: #444;

}

.pocketemp-modal-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--pocketemp-button-color, #2271b1);
    font-weight: 700;
}

/* Price tile in left column */
.pocketemp-modal-price-tile {
    margin: 8px 14px 14px;
    background: linear-gradient(135deg, #f0f4f9 0%, #e8eef6 100%);
    border: 1px solid #dde5ef;
    border-radius: 10px;
    padding: 14px 16px;
}

.pocketemp-modal-price-tile__header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #aaa;
    margin-bottom: 8px;
}

.pocketemp-modal-price-tile__main {
    font-size: 26px;
    font-weight: 800;
    color: var(--pocketemp-button-color, #2271b1);
    line-height: 1;
}

.pocketemp-modal-price-tile__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.pocketemp-modal-price-tile__original {
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    text-decoration: line-through;
}

.pocketemp-modal-price-tile__discounted {
    font-size: 24px;
    font-weight: 800;
    color: var(--pocketemp-button-color, #2271b1);
    line-height: 1;
}

.pocketemp-modal-price-tile__discount-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.pocketemp-modal-price-tile__code {
    background: var(--pocketemp-button-color, #2271b1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: monospace, monospace;
    padding: 3px 9px;
    border-radius: 5px;
}

.pocketemp-modal-price-tile__pct {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
}

.pocketemp-modal-price-tile__exp {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

.pocketemp-modal-price-tile__exp svg {
    flex-shrink: 0;
    color: #aaa;
}

/* CTA footer */
.pocketemp-modal-right-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 2px solid #f0f0f0;
}

/* Responsive: stack to single column */
@media (max-width: 680px) {
    .pocketemp-modal-2col {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .pocketemp-modal-col-left {
        border-right: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        position: static !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .pocketemp-modal-col-right {
        padding: 18px 18px 20px;
    }

    .pocketemp-modal-title {
        font-size: 17px;
        padding-right: 28px;
    }

    .pocketemp-modal-img {
        padding-top: 50%;
    }
}

/* --- Responsive additions ----------------------------------------------- */
@media (max-width: 640px) {
    /* List row: date box left, info stacks vertically beside it */
    .pocketemp-list-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Info block becomes a vertical column */
    .pocketemp-list-info {
        flex: 1 !important;
        min-width: 0 !important;
        flex-wrap: nowrap !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    /* Hide text date/time — colored date box already shows the date */
    .pocketemp-list-col-datetime {
        display: none !important;
    }

    /* Title column: full width of info area */
    .pocketemp-list-col-title {
        flex: none !important;
        width: 100% !important;
    }

    /* Pills column: hidden on mobile — all info visible in details modal */
    .pocketemp-list-col-pills {
        display: none !important;
    }

    /* View Details: full width, centered */
    .pocketemp-list-details-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 6px !important;
    }

    .pocketemp-modal-inner {
        max-height: calc(100vh - 32px);
    }

    .pocketemp-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pocketemp-card-actions {
        justify-content: stretch;
    }

    .pocketemp-card-actions .pocketemp-btn {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================
   Registration Type Toggle
   ============================================================ */
.pocketemp-reg-type-toggle {
    display: flex;
    gap: 0;
    margin-top: 4px;
    border-radius: var(--pocketemp-button-border-radius, 6px);
    overflow: hidden;
    border: 1px solid #d0d5dd;
}

.pocketemp-reg-type-option {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s, font-weight 0.15s;
    background: #fff;
    color: var(--pocketemp-text-color, #1d2327);
    border: none !important;
    border-radius: 0 !important;
    user-select: none;
}

.pocketemp-reg-type-option:first-child {
    border-right: 1px solid #d0d5dd !important;
}

.pocketemp-reg-type-option:hover {
    background: #f5f7fa;
}

.pocketemp-reg-type-option.active,
.pocketemp-reg-type-option:has(input:checked) {
    background: var(--pocketemp-button-color, #2271b1);
    color: var(--pocketemp-button-text-color, #fff);
    font-weight: 600;
}

.pocketemp-reg-type-option input[type="radio"] {
    display: none;
}

/* ============================================================
   Group / Company Fields
   ============================================================ */
.pocketemp-group-fields {
    padding: 16px;
    margin: 8px 0 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--pocketemp-border-radius, 8px);
}

.pocketemp-group-fields .pocketemp-form-group {
    margin-bottom: 12px;
}

.pocketemp-group-fields .pocketemp-form-group:last-child {
    margin-bottom: 0;
}

.pocketemp-anzahl-input {
    width: 90px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

/* ============================================================
   Dynamic Participant Rows
   ============================================================ */
.pocketemp-teilnehmer-fields {
    margin-top: 12px;
}

.pocketemp-participant-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.pocketemp-participant-row .pocketemp-participant-num {
    font-weight: 700;
    font-size: 12px;
    color: #94a3b8;
    min-width: 24px;
}

.pocketemp-participant-row input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .pocketemp-participant-row {
        flex-wrap: wrap;
    }

    .pocketemp-participant-row input {
        flex-basis: 100%;
    }
}

/* ============================================================
   Marketing Consent Checkbox
   ============================================================ */
.pocketemp-form-group label input[type="checkbox"][name="pocketemp_marketing"] {
    accent-color: var(--pocketemp-button-color, #2271b1);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   Modal – Register Now Button (left column)
   ============================================================ */
.pocketemp-modal-register-btn {
    margin-top: 14px;
    width: 100%;
}

/* ============================================================
   Checkout Step
   ============================================================ */
.pocketemp-checkout-wrap {
    padding: 16px;
    background: var(--pocketemp-container-bg);
    color: var(--pocketemp-text-color, #1d2327);
}

/* Discount code section */
.pocketemp-discount-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.pocketemp-discount-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
    min-width: 0;
}

.pocketemp-discount-input:focus {
    border-color: #2271b1;
}

.pocketemp-discount-input:disabled {
    background: #f5f5f5;
    color: #999;
}

.pocketemp-discount-apply {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .2s;
}

.pocketemp-discount-apply:hover {
    opacity: .85;
}

.pocketemp-discount-apply:disabled {
    opacity: .5;
    cursor: default;
}

.pocketemp-discount-msg {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 0;
}

.pocketemp-discount-msg.success {
    color: #1a6630;
}

.pocketemp-discount-msg.error {
    color: #c0392b;
}

.pocketemp-price-original {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 6px;
}

.pocketemp-price-discounted {
    color: #1a6630;
    font-size: 16px;
    font-weight: 700;
}

.pocketemp-checkout-back {
    display: inline-block;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 600;
}

.pocketemp-checkout-back:hover {
    opacity: .75;
}

.pocketemp-checkout-section {
    background: var(--pocketemp-tile-bg);
    color: var(--pocketemp-tile-text-color, #fff);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;

}

.pocketemp-checkout-summary-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.pocketemp-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    gap: 12px;
}

.pocketemp-checkout-label {
    color: var(--pocketemp-tile-text-color, #fff);
    flex-shrink: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.pocketemp-checkout-row-price {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.pocketemp-checkout-price {
    font-weight: 700;
    font-size: 16px;
}

/* Payment method card */
.pocketemp-pm-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pocketemp-pm-option {
    display: block;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .2s;
}

.pocketemp-pm-option.pocketemp-pm-selected,
.pocketemp-pm-option:has(input:checked) {
    border-color: #0ac551;
    background: var(--pocketemp-tile-bg, #fff);
}

.pocketemp-pm-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pocketemp-pm-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.pocketemp-pm-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pocketemp-pm-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--pocketemp-tile-text-color, #fff);
}

.pocketemp-pm-desc {
    font-size: 12px;
    color: var(--pocketemp-tile-text-color, #fff);
    line-height: 1.4;
}

/* Custom PM tooltip trigger */
.pocketemp-cpm-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    cursor: help;
    margin-left: 4px;
}

.pocketemp-cpm-tip .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 255, 0.65);
    transition: color .15s;
}

.pocketemp-cpm-tip:hover .dashicons {
    color: #fff;
}

/* Tooltip bubble */
.pocketemp-cpm-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 320px;
    background: #1e2535;
    color: #f0f3ff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 13px;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
    white-space: pre-line;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, visibility .18s;
    z-index: 9999;
}

/* Arrow */
.pocketemp-cpm-tip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e2535;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, visibility .18s;
    z-index: 9999;
}

.pocketemp-cpm-tip:hover::after,
.pocketemp-cpm-tip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Checkout success state */
.pocketemp-checkout-success {
    text-align: center;
    padding: 32px 16px;
}

.pocketemp-checkout-success-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.pocketemp-checkout-success p {
    font-size: 15px;
    color: #1a6630;
    font-weight: 500;
}

/* ============================================================
   Stripe Thank-You Overlay
   ============================================================ */
#pocketemp-thankyou-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

#pocketemp-thankyou-overlay.pocketemp-thankyou-visible {
    opacity: 1;
}

.pocketemp-thankyou-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.3s ease;
}

#pocketemp-thankyou-overlay.pocketemp-thankyou-visible .pocketemp-thankyou-card {
    transform: translateY(0) scale(1);
}

.pocketemp-ty-topbar {
    height: 4px;
    background: linear-gradient(90deg, var(--pocketemp-button-color), var(--pocketemp-button-hover));
}

.pocketemp-ty-body {
    padding: 36px 32px 28px;
    text-align: center;
}

.pocketemp-ty-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pocketemp-button-color) 12%, transparent);
    margin-bottom: 20px;
}

.pocketemp-ty-check {
    font-size: 36px;
    font-weight: 700;
    color: var(--pocketemp-button-color);
    line-height: 1;
}

.pocketemp-ty-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.pocketemp-ty-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.pocketemp-ty-details {
    background: #f5f6f7;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.pocketemp-ty-ref-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pocketemp-ty-field-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    margin-bottom: 4px;
    font-weight: 600;
}

.pocketemp-ty-ref {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--pocketemp-button-color);
    letter-spacing: -0.02em;
}

.pocketemp-ty-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    margin-top: 4px;
}

.pocketemp-ty-status--paid {
    background: color-mix(in srgb, var(--pocketemp-button-color) 14%, transparent);
    color: var(--pocketemp-button-color);
}

.pocketemp-ty-status--pending {
    background: #fff3cd;
    color: #856404;
}

.pocketemp-ty-event-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 16px;
}

.pocketemp-ty-event-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0 14px;
    line-height: 1.3;
}

.pocketemp-ty-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pocketemp-ty-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pocketemp-ty-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pocketemp-ty-meta-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    font-weight: 600;
    margin-bottom: 2px;
}

.pocketemp-ty-meta-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.pocketemp-ty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--pocketemp-button-border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-bottom: 10px;
    transition: opacity 0.15s, transform 0.15s;
    box-sizing: border-box;
    text-align: center;
}

.pocketemp-ty-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.pocketemp-ty-btn-calendar {
    background: var(--pocketemp-button-color);
    color: var(--pocketemp-button-text-color);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--pocketemp-button-color) 35%, transparent);
}

.pocketemp-ty-btn-close {
    background: transparent;
    color: var(--pocketemp-button-color);
    border: 2px solid var(--pocketemp-button-color);
    margin-bottom: 0;
}

.pocketemp-ty-footer {
    padding: 14px 32px;
    background: #f5f6f7;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.pocketemp-ty-footer p {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}


/* ============================================================
   Inline Booking Form (inside modal)
   ============================================================ */
.pocketemp-reg-form-wrap {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--pocketemp-container-bg);
}

.pocketemp-reg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--pocketemp-text-color);
    text-decoration: none;
    margin-bottom: 14px;
}

.pocketemp-reg-back-link:hover {
    color: #000;
    text-decoration: underline;
}

.pocketemp-reg-form-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--pocketemp-text-color, #1d2327);
    line-height: 1.3;
}

.pocketemp-reg-section {
    margin-bottom: 20px;
}

.pocketemp-reg-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pocketemp-tile-text-color, #fff);
    margin-bottom: 10px;
}

/* Termin chips */
.pocketemp-reg-termin-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pocketemp-reg-termin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}

.pocketemp-reg-termin-chip:hover {
    border-color: #888;
}

.pocketemp-reg-termin-chip:has(input:checked) {
    border-color: var(--pocketemp-button-color, #2271b1);
    background: color-mix(in srgb, var(--pocketemp-button-color, #2271b1) 10%, #fff);
    color: var(--pocketemp-button-color, #2271b1);
    font-weight: 700;
}

.pocketemp-reg-termin-chip input[type="radio"] {
    display: none;
}

/* Sold-out termin chip */
.pocketemp-reg-termin-chip--sold-out {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #d0d5dd;
    background: #f5f5f5;
    color: #888;
    pointer-events: none;
}

.pocketemp-reg-termin-chip--sold-out:hover {
    border-color: #d0d5dd;
}

.pocketemp-chip-sold-out-badge {
    display: inline-block;
    padding: 1px 7px;
    background: #dc3232;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    line-height: 1.6;
}

/* Input fields */
.pocketemp-reg-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pocketemp-reg-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: var(--pocketemp-border-radius, 8px);
    font-size: 14px;
    color: var(--pocketemp-text-color, #1d2327);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
    font-family: inherit;
}

.pocketemp-reg-input:focus {
    outline: none;
    border-color: var(--pocketemp-button-color, #2271b1);
}

.pocketemp-reg-textarea {
    resize: vertical;
    min-height: 72px;
}

/* Marketing checkbox */
.pocketemp-reg-marketing {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
    cursor: pointer;
    line-height: 1.5;
}

.pocketemp-reg-marketing input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--pocketemp-button-color, #2271b1);
}

/* Feedback message */
.pocketemp-reg-message {
    padding: 10px 14px;
    border-radius: var(--pocketemp-border-radius, 8px);
    font-size: 13px;
    margin-bottom: 12px;
}

.pocketemp-reg-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pocketemp-reg-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   COMPANY / GROUP REGISTRATION
   ========================================================================== */

/* Toggle switch */
.pocketemp-reg-company-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: var(--pocketemp-border-radius, 8px);
    transition: border-color .15s, background .15s;
}

.pocketemp-reg-company-toggle:hover {
    border-color: #888;
}

.pocketemp-reg-company-toggle:has(input:checked) {
    border-color: var(--pocketemp-button-color, #2271b1);
    background: color-mix(in srgb, var(--pocketemp-button-color, #2271b1) 8%, #fff);
}

.pocketemp-reg-company-toggle input[type="checkbox"] {
    display: none;
}

.pocketemp-reg-company-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d0d5dd;
    border-radius: 12px;
    transition: background .2s;
    flex-shrink: 0;
}

.pocketemp-reg-company-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.pocketemp-reg-company-toggle:has(input:checked) .pocketemp-reg-company-toggle-slider {
    background: var(--pocketemp-button-color, #2271b1);
}

.pocketemp-reg-company-toggle:has(input:checked) .pocketemp-reg-company-toggle-slider::after {
    transform: translateX(20px);
}

.pocketemp-reg-company-toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--pocketemp-text-color, #1d2327);
}

/* Participant count stepper */
.pocketemp-reg-count-row {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d0d5dd;
    border-radius: var(--pocketemp-border-radius, 8px);
    overflow: hidden;
}

.pocketemp-reg-count-btn {
    width: 40px;
    height: 42px;
    background: #f7f8fa;
    border: none;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    color: #555;
    transition: background .15s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pocketemp-reg-count-btn:hover {
    background: #e9ecf0;
}

.pocketemp-reg-count-btn:active {
    background: #dde1e7;
}

.pocketemp-reg-count-input {
    width: 60px;
    height: 42px;
    border: none;
    border-left: 1.5px solid #d0d5dd;
    border-right: 1.5px solid #d0d5dd;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--pocketemp-text-color, #1d2327);
    -moz-appearance: textfield;
    appearance: textfield;
    background: #fff;
}

.pocketemp-reg-count-input::-webkit-outer-spin-button,
.pocketemp-reg-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.pocketemp-reg-count-input:focus {
    outline: none;
}

/* Participant rows */
.pocketemp-reg-participant-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.pocketemp-reg-participant-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pocketemp-button-color, #2271b1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .pocketemp-reg-participant-row {
        flex-wrap: wrap;
    }

    .pocketemp-reg-participant-num {
        display: none;
    }
}

/* ── Capacity warning ── */
.pocketemp-capacity-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    margin-top: 8px;
    padding: 10px 14px;
}