/* ── Cart badge (floating, bottom-LEFT to avoid scroll-to-top) ──────────────── */
.de-cart-badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    background: #2271b1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    transform: translateY(8px);
    cursor: pointer;
    white-space: nowrap;
}
.de-cart-badge.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.de-cart-badge:hover {
    background: #135e96;
    color: #fff;
    text-decoration: none;
}
.de-badge-count {
    background: #fff;
    color: #2271b1;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── "Add to cart" button inside the schedule modal ─────────────────────────── */
.de-modal-cart-row {
    margin-top: 16px;
}
.de-modal-cart-btn {
    padding: 10px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
}
.de-modal-cart-btn:hover {
    background: #135e96;
}
.de-modal-cart-btn.in-cart {
    background: #46b450;
}
.de-modal-cart-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* ── Cart page ───────────────────────────────────────────────────────────────── */
.de-cart {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 0;
}
.de-cart-heading {
    font-size: 1.4em;
    margin-bottom: 16px;
}
.de-empty,
.de-loading {
    color: #777;
    font-style: italic;
}
.de-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.de-cart-table th,
.de-cart-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    font-size: 14px;
}
.de-cart-table th {
    background: #f6f6f6;
    font-weight: 600;
}
.de-schedule-group-title {
    margin: 24px 0 8px;
    font-size: 1.1em;
    font-weight: 700;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 4px;
    color: #2271b1;
}
.de-cart-table + .de-schedule-group-title {
    margin-top: 32px;
}
.de-remove-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    color: #c00;
    font-size: 12px;
}
.de-remove-btn:hover { background: #fff0f0; }

/* ── Enrollment form ─────────────────────────────────────────────────────────── */
.de-form-note {
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f9f9f9;
    border-left: 3px solid #ccc;
}
.de-field-row {
    margin-bottom: 16px;
}
.de-field-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}
.de-field-row input {
    width: 100%;
    max-width: 360px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}
.de-required {
    color: #c00;
}
.de-submit-btn {
    padding: 12px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s;
}
.de-submit-btn:hover  { background: #135e96; }
.de-submit-btn:disabled { opacity: .6; cursor: default; }
.de-error {
    color: #c00;
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-top: 12px;
}

/* ── Success box ─────────────────────────────────────────────────────────────── */
.de-success-box {
    background: #f0faf0;
    border: 1px solid #b3e0b3;
    border-radius: 4px;
    padding: 28px 32px;
    text-align: center;
    margin-top: 24px;
}
.de-success-box h3 { color: #2a7d2a; font-size: 1.5em; margin-bottom: 12px; }
