/* ===================================================================
   Visegradevent Programs – Pastel Indigo Theme  v1.3.0
   =================================================================== */

:root {
    --vep-primary:        #6366f1;
    --vep-primary-dark:   #4f46e5;
    --vep-primary-light:  #e0e7ff;
    --vep-primary-xlight: #eef2ff;
    --vep-border:         #c7d2fe;
    --vep-border-light:   #e0e7ff;
    --vep-title:          #1e1b4b;
    --vep-text:           #374151;
    --vep-muted:          #6b7280;
    --vep-card:           #ffffff;
    --vep-shadow:         0 2px 12px rgba(99, 102, 241, 0.08);
    --vep-shadow-hover:   0 8px 28px rgba(99, 102, 241, 0.18);
    --vep-radius:         10px;
    --vep-radius-sm:      6px;
}

/* ----- Wrapper ----- */
.vep-wrapper {
    font-family: inherit;
    max-width: 1100px;
    margin: 0 auto;
}

/* ----- Section ----- */
.vep-section {
    margin-bottom: 64px;
}

.vep-section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--vep-title);
    border-bottom: 3px solid var(--vep-border);
    padding-bottom: 0.4em;
    margin-bottom: 0.9em;
}

.vep-section-desc {
    background: var(--vep-primary-xlight);
    border-left: 4px solid var(--vep-primary);
    padding: 1em 1.4em;
    margin-bottom: 1.8em;
    font-size: 0.95rem;
    color: var(--vep-text);
    line-height: 1.7;
    border-radius: 0 var(--vep-radius-sm) var(--vep-radius-sm) 0;
}

/* ----- Program grid ----- */
.vep-programs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* =========================================================
   Tile (programs with image)
   ========================================================= */

.vep-program--tile {
    background: var(--vep-card);
    border: 1px solid var(--vep-border-light);
    border-radius: var(--vep-radius);
    overflow: hidden;
    box-shadow: var(--vep-shadow);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.vep-program--tile:hover {
    box-shadow: var(--vep-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--vep-border);
}

.vep-program-image {
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vep-primary-light) 0%, var(--vep-primary) 100%);
    flex-shrink: 0;
}

.vep-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vep-program--tile:hover .vep-program-image img {
    transform: scale(1.04);
}

.vep-program--tile .vep-program-body {
    padding: 1.1em 1.25em 0.7em;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vep-program--tile .vep-program-actions {
    padding: 0 1.25em 1.1em;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* =========================================================
   List item (programs without image)
   ========================================================= */

.vep-program--list {
    grid-column: 1 / -1;
    background: var(--vep-card);
    border: 1px solid var(--vep-border-light);
    border-left: 4px solid var(--vep-primary);
    border-radius: var(--vep-radius-sm);
    padding: 0.9em 1.1em;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--vep-shadow);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.vep-program--list:hover {
    box-shadow: var(--vep-shadow-hover);
    border-left-color: var(--vep-primary-dark);
}

.vep-program--list .vep-program-body {
    flex: 1;
    min-width: 0;
}

.vep-program--list .vep-program-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* ----- Shared text ----- */
.vep-program-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vep-title);
    margin: 0 0 0.35em;
    line-height: 1.35;
}

.vep-program-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.5em;
}

.vep-program-meta span {
    font-size: 0.76rem;
    background: var(--vep-primary-light);
    color: #3730a3;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

.vep-group-size {
    font-size: 0.76rem;
    background: #ede9fe;
    color: #6d28d9;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

.vep-program-excerpt {
    font-size: 0.84rem;
    color: var(--vep-muted);
    line-height: 1.55;
    flex: 1;
    margin: 0 0 0.6em;
}

/* ----- Buttons ----- */
.vep-detail-btn {
    background: transparent;
    border: 1.5px solid var(--vep-border);
    color: var(--vep-primary);
    padding: 0.32em 0.9em;
    border-radius: var(--vep-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.vep-detail-btn:hover {
    background: var(--vep-primary-light);
    border-color: var(--vep-primary);
}

.vep-add-to-plan-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--vep-primary);
    color: #fff;
    border: 0;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vep-add-to-plan-btn:hover {
    background: var(--vep-primary-dark);
    transform: scale(1.1);
}

.vep-add-to-plan-btn.vep-added {
    background: #10b981;
}

/* =========================================================
   Modal
   ========================================================= */

.vep-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

.vep-modal.vep-modal--open {
    display: flex;
}

.vep-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.55);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.vep-modal-box {
    position: relative;
    background: var(--vep-card);
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2em 2.2em;
    z-index: 1;
    box-shadow: 0 24px 64px rgba(99, 102, 241, 0.2);
}

.vep-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: var(--vep-primary-light);
    border: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--vep-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.vep-modal-close:hover {
    background: var(--vep-primary);
    color: #fff;
}

.vep-modal-box h2 {
    font-size: 1.35rem;
    color: var(--vep-title);
    margin: 0 2.5em 0.3em 0;
    line-height: 1.3;
}

.vep-modal-meta {
    font-size: 0.85rem;
    color: var(--vep-muted);
    margin-bottom: 1.4em;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vep-modal-meta span {
    background: var(--vep-primary-light);
    color: #3730a3;
    border-radius: 20px;
    padding: 2px 10px;
}

.vep-modal-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--vep-text);
}

.vep-modal-body b,
.vep-modal-body strong {
    color: var(--vep-title);
}

/* =========================================================
   Description image/table resets – remove ALL borders/stripes
   ========================================================= */

.vep-modal-body table,
.vep-section-desc table,
.vep-program-desc table {
    border-collapse: collapse !important;
    border: 0 !important;
    width: 100%;
    background: transparent !important;
}

.vep-modal-body table tr,
.vep-modal-body table thead,
.vep-modal-body table tbody,
.vep-section-desc table tr,
.vep-section-desc table thead,
.vep-section-desc table tbody,
.vep-program-desc table tr,
.vep-program-desc table thead,
.vep-program-desc table tbody {
    background: transparent !important;
    border: 0 !important;
}

.vep-modal-body table td,
.vep-modal-body table th,
.vep-section-desc table td,
.vep-section-desc table th,
.vep-program-desc table td,
.vep-program-desc table th {
    border: 0 !important;
    background: transparent !important;
    vertical-align: top;
    padding: 0 !important;
}

/* Side-by-side images from MigrateImages */
.vep-modal-body .table-image,
.vep-section-desc .table-image,
.vep-program-desc .table-image {
    width: 100%;
    table-layout: fixed;
}

.vep-modal-body .table-image td:first-child,
.vep-section-desc .table-image td:first-child,
.vep-program-desc .table-image td:first-child {
    padding-right: 6px !important;
}

.vep-modal-body .table-image td:last-child,
.vep-section-desc .table-image td:last-child,
.vep-program-desc .table-image td:last-child {
    padding-left: 6px !important;
}

/* Bootstrap row/col single-image wrapper */
.vep-modal-body .row,
.vep-section-desc .row,
.vep-program-desc .row {
    margin: 0.5em 0;
}

.vep-modal-body .row .col,
.vep-section-desc .row .col,
.vep-program-desc .row .col {
    padding: 0;
}

/* All images in descriptions */
.vep-modal-body img,
.vep-section-desc img,
.vep-program-desc img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--vep-radius-sm);
    margin: 0.4em 0;
    padding: 0 !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 480px) {
    .vep-programs {
        grid-template-columns: 1fr;
    }
    .vep-program--list {
        grid-column: auto;
        flex-wrap: wrap;
    }
    .vep-program--list .vep-program-actions {
        width: 100%;
    }
    .vep-section-title {
        font-size: 1.3rem;
    }
    .vep-modal-box {
        padding: 1.5em 1.1em;
    }
}

/* ===================================================================
   Planner shortcode
   =================================================================== */

.vep-planner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.vep-planner-header {
    text-align: center;
    padding: 1.5em 1em;
}

.vep-planner-header h2 {
    font-size: 1.9rem;
    color: var(--vep-title);
    margin-bottom: 0.3em;
}

.vep-planner-header p {
    color: var(--vep-muted);
    font-size: 0.95rem;
}

.vep-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vep-title);
    margin: 0 0 1.2em;
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.vep-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vep-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.vep-inquiry-section {
    background: var(--vep-primary-xlight);
    border-radius: 12px;
    padding: 1.8em;
    margin-bottom: 20px;
    border: 1px solid var(--vep-border-light);
}

.vep-inquiry-section--planner {
    margin-top: 0;
}

.vep-planner-hint {
    font-size: 0.87rem;
    color: var(--vep-muted);
    margin: -0.6em 0 1.2em;
}

/* ----- Two-column layout ----- */
.vep-planner-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .vep-planner-layout {
        grid-template-columns: 1fr;
    }
}

/* ----- Left panel ----- */
.vep-planner-left {
    border: 1px solid var(--vep-border);
    border-radius: var(--vep-radius);
    overflow: hidden;
    background: var(--vep-card);
}

#vep-program-search {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75em 1em;
    border: 0;
    border-bottom: 1px solid var(--vep-border-light);
    font-size: 0.9rem;
    outline: none;
    background: var(--vep-primary-xlight);
}

#vep-program-search:focus {
    border-bottom-color: var(--vep-primary);
    box-shadow: 0 1px 0 0 var(--vep-primary);
}

#vep-program-list {
    max-height: 480px;
    overflow-y: auto;
    padding: 0.4em;
}

.vep-planner-section-title {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vep-muted);
    padding: 0.5em 0.8em;
    margin: 0.5em 0 0.2em;
    border-bottom: 1px solid var(--vep-border-light);
}

.vep-planner-program {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5em 0.7em;
    border-radius: var(--vep-radius-sm);
    cursor: grab;
    margin-bottom: 3px;
    transition: background 0.15s;
}

.vep-planner-program:hover {
    background: var(--vep-primary-xlight);
}

.vep-planner-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--vep-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vep-primary);
    font-size: 1rem;
}

.vep-planner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vep-planner-program-info {
    flex: 1;
    min-width: 0;
}

.vep-planner-program-info strong {
    font-size: 0.87rem;
    color: var(--vep-title);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vep-planner-meta {
    display: flex;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--vep-muted);
    margin-top: 2px;
    flex-wrap: wrap;
}

.vep-add-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--vep-primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.vep-add-btn:hover {
    background: var(--vep-primary-dark);
}

/* ----- Right panel ----- */
.vep-planner-right {
    border: 1px solid var(--vep-border);
    border-radius: var(--vep-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--vep-card);
}

.vep-timeline-header {
    padding: 0.75em 1em;
    background: var(--vep-primary-xlight);
    border-bottom: 1px solid var(--vep-border-light);
}

.vep-timeline-header label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--vep-title);
}

.vep-timeline-header select {
    margin-left: 0.5em;
    padding: 0.28em 0.5em;
    border: 1px solid var(--vep-border);
    border-radius: var(--vep-radius-sm);
    font-size: 0.88rem;
    outline: none;
    background: #fff;
}

.vep-timeline-header select:focus {
    border-color: var(--vep-primary);
}

#vep-timeline-list {
    flex: 1;
    min-height: 260px;
    padding: 0.5em;
    transition: background 0.2s;
}

.vep-timeline-dropzone.vep-dragover {
    background: var(--vep-primary-xlight);
    outline: 2px dashed var(--vep-primary);
}

.vep-timeline-empty {
    padding: 2em;
    text-align: center;
    color: #aaa;
    font-style: italic;
    font-size: 0.87rem;
}

.vep-timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6em 0.8em;
    background: var(--vep-card);
    border: 1px solid var(--vep-border-light);
    border-radius: var(--vep-radius-sm);
    margin-bottom: 5px;
    cursor: grab;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.vep-timeline-item:hover {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
    border-color: var(--vep-border);
}

.vep-timeline-time {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--vep-primary);
    min-width: 42px;
}

.vep-timeline-content {
    flex: 1;
    min-width: 0;
}

.vep-timeline-name {
    font-weight: 600;
    font-size: 0.87rem;
    display: block;
    color: var(--vep-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vep-timeline-dur {
    font-size: 0.74rem;
    color: var(--vep-muted);
}

#vep-timeline-summary {
    padding: 0.6em 1em;
    background: var(--vep-primary-xlight);
    border-top: 1px solid var(--vep-border-light);
    font-size: 0.87rem;
    color: var(--vep-primary-dark);
    font-weight: 600;
}

.vep-remove-btn {
    background: transparent;
    border: 0;
    color: #ef4444;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.vep-remove-btn:hover {
    opacity: 1;
}

/* ----- Inquiry form ----- */
.vep-form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vep-form-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

.vep-form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--vep-title);
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vep-form-group input,
.vep-form-group textarea,
.vep-form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6em 0.8em;
    border: 1.5px solid var(--vep-border);
    border-radius: var(--vep-radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vep-form-group input:focus,
.vep-form-group textarea:focus,
.vep-form-group select:focus {
    outline: none;
    border-color: var(--vep-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#vep-submit-btn {
    display: block;
    width: 100%;
    padding: 0.9em;
    background: var(--vep-primary);
    color: #fff;
    border: 0;
    border-radius: var(--vep-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.2em;
    transition: background 0.2s, transform 0.1s;
}

#vep-submit-btn:not(:disabled):hover {
    background: var(--vep-primary-dark);
    transform: translateY(-1px);
}

#vep-submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.vep-msg {
    padding: 0.8em 1.2em;
    border-radius: var(--vep-radius-sm);
    margin-top: 1em;
    font-size: 0.9rem;
}

.vep-msg--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.vep-msg--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ----- Mobile ----- */
@media (max-width: 600px) {
    .vep-inquiry-section {
        padding: 1.2em;
    }
    .vep-form-group {
        min-width: 100%;
    }
    .vep-programs {
        grid-template-columns: 1fr;
    }
    .vep-program--list {
        grid-column: auto;
        flex-wrap: wrap;
    }
    .vep-program--list .vep-program-actions {
        width: 100%;
    }
}

/* ===================================================================
   Floating Cart (FAB + bottom sheet / desktop drawer)
   =================================================================== */

/* ----- FAB button ----- */
#vep-cart-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vep-primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: fixed; /* re-affirm for specificity */
}

#vep-cart-btn:hover {
    background: var(--vep-primary-dark);
    transform: scale(1.07);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

/* ----- Badge ----- */
#vep-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

#vep-cart-badge.visible {
    display: flex;
}

/* ----- Backdrop ----- */
#vep-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(30, 27, 75, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#vep-cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ----- Cart panel (mobile: bottom sheet) ----- */
#vep-cart-panel {
    position: fixed;
    z-index: 10000;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 -8px 40px rgba(99, 102, 241, 0.15);
    overflow: hidden;
}

#vep-cart-panel.open {
    transform: translateY(0);
}

/* ----- Desktop drawer ----- */
@media (min-width: 1024px) {
    #vep-cart-panel {
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        width: 400px;
        max-height: none;
        border-radius: 0;
        border-left: 1px solid var(--vep-border-light);
        transform: translateX(100%);
        box-shadow: -4px 0 40px rgba(99, 102, 241, 0.12);
    }
    #vep-cart-panel.open {
        transform: translateX(0);
    }
}

/* ----- Mobile drag handle ----- */
.vep-cart-handle {
    width: 40px;
    height: 4px;
    background: var(--vep-border);
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .vep-cart-handle {
        display: none;
    }
}

/* ----- Header ----- */
.vep-cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75em 1em;
    border-bottom: 1px solid var(--vep-border-light);
    flex-shrink: 0;
    gap: 8px;
}

.vep-cart-header > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vep-cart-header strong {
    font-size: 1rem;
    color: var(--vep-title);
}

#vep-cart-subtitle {
    font-size: 0.8rem;
    color: var(--vep-muted);
}

#vep-cart-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vep-primary-light);
    border: 0;
    color: var(--vep-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

#vep-cart-close:hover {
    background: var(--vep-primary);
    color: #fff;
}

/* ----- Start-time row ----- */
.vep-cart-start-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6em 1em;
    background: var(--vep-primary-xlight);
    border-bottom: 1px solid var(--vep-border-light);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vep-title);
    flex-shrink: 0;
}

.vep-cart-start-row select {
    padding: 0.28em 0.5em;
    border: 1px solid var(--vep-border);
    border-radius: var(--vep-radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
    outline: none;
}

.vep-cart-start-row select:focus {
    border-color: var(--vep-primary);
}

/* ----- Scrollable timeline area ----- */
.vep-cart-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.5em 0.75em;
    min-height: 80px;
}

#vep-cart-empty {
    font-style: italic;
    color: var(--vep-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5em 0;
    margin: 0;
}

/* ----- Timeline item ----- */
.vep-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5em 0.7em;
    background: var(--vep-card);
    border: 1px solid var(--vep-border-light);
    border-radius: var(--vep-radius-sm);
    margin-bottom: 5px;
    cursor: grab;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.vep-cart-item:hover {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
    border-color: var(--vep-border);
}

.vep-cart-item-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--vep-primary);
    min-width: 40px;
    flex-shrink: 0;
}

.vep-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.vep-cart-item-info strong {
    font-size: 0.84rem;
    color: var(--vep-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vep-cart-item-dur {
    font-size: 0.74rem;
    color: var(--vep-muted);
}

.vep-cart-item-remove {
    background: transparent;
    border: 0;
    color: #ef4444;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.vep-cart-item-remove:hover {
    opacity: 1;
}

/* ----- Summary bar ----- */
#vep-cart-summary {
    display: none;
    padding: 0.5em 1em;
    background: var(--vep-primary-xlight);
    border-top: 1px solid var(--vep-border-light);
    font-size: 0.82rem;
    color: var(--vep-primary-dark);
    font-weight: 600;
    flex-shrink: 0;
}

/* ----- Contact form ----- */
.vep-cart-form {
    padding: 0.75em 1em;
    border-top: 1px solid var(--vep-border-light);
    flex-shrink: 0;
}

.vep-cart-form-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--vep-muted);
    font-weight: 700;
    margin: 0 0 0.6em;
}

.vep-cart-form-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vep-cart-field-row {
    display: flex;
    gap: 6px;
}

.vep-cart-field-row > * {
    flex: 1;
    min-width: 0;
}

.vep-cart-form input,
.vep-cart-form textarea,
.vep-cart-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.45em 0.7em;
    border: 1.5px solid var(--vep-border);
    border-radius: var(--vep-radius-sm);
    font-size: 0.82rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vep-cart-form input:focus,
.vep-cart-form textarea:focus,
.vep-cart-form select:focus {
    outline: none;
    border-color: var(--vep-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vep-cart-form textarea {
    resize: vertical;
}

/* ----- Footer ----- */
.vep-cart-footer {
    padding: 0.75em 1em;
    border-top: 1px solid var(--vep-border-light);
    flex-shrink: 0;
}

#vep-cart-msg {
    display: none;
    padding: 0.6em 0.9em;
    border-radius: var(--vep-radius-sm);
    font-size: 0.82rem;
    margin-bottom: 0.6em;
}

#vep-cart-msg.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#vep-cart-msg.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#vep-cart-submit {
    display: block;
    width: 100%;
    padding: 0.75em;
    background: var(--vep-primary);
    color: #fff;
    border: 0;
    border-radius: var(--vep-radius);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#vep-cart-submit:not(:disabled):hover {
    background: var(--vep-primary-dark);
    transform: translateY(-1px);
}

#vep-cart-submit:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* === Duration inline editor === */
.vep-cart-item-dur-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.vep-cart-item-dur-input {
    width: 44px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.74rem;
    color: var(--vep-muted);
    padding: 1px 4px;
    background: transparent;
    font-family: inherit;
    text-align: right;
    -moz-appearance: textfield;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    cursor: text;
}

.vep-cart-item-dur-input::-webkit-inner-spin-button,
.vep-cart-item-dur-input::-webkit-outer-spin-button {
    opacity: 0;
}

.vep-cart-item-dur-input:hover {
    border-color: var(--vep-border);
    background: var(--vep-primary-xlight);
    color: var(--vep-text);
}

.vep-cart-item-dur-input:focus {
    outline: none;
    border-color: var(--vep-primary);
    background: var(--vep-primary-xlight);
    color: var(--vep-title);
}

.vep-cart-item-dur-unit {
    font-size: 0.72rem;
    color: var(--vep-muted);
    white-space: nowrap;
    pointer-events: none;
}
