/* Event Registration Widget Styles */

.event-registration-widget {
    margin: 0;
    padding: 0;
}

/* Status Badges */
.event-registration-widget .alert {
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.75rem;
}

.event-registration-widget .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.event-registration-widget .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.event-registration-widget .alert-secondary {
    background-color: #e2e3e5;
    border-color: #d6d8db;
    color: #383d41;
}

/* Progress Bar */
.event-registration-widget .progress {
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
}

.event-registration-widget .progress-bar {
    transition: width 0.6s ease;
}

/* Capacity Info */
.event-registration-widget .text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
}

/* Buttons */
.event-registration-widget .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    transition: all 0.3s ease;
    border: none;
}

.event-registration-widget .btn-primary {
    background: #A4C8E1;
    color: #2E282A;
    box-shadow: 0 2px 4px rgba(164, 200, 225, 0.3);
}

.event-registration-widget .btn-primary:hover {
    background: #8fb9d4;
    box-shadow: 0 4px 8px rgba(164, 200, 225, 0.4);
    transform: translateY(-1px);
}

.event-registration-widget .btn-warning {
    background: #ffc107;
    color: #000;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.event-registration-widget .btn-warning:hover {
    background: #e0a800;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
    transform: translateY(-1px);
}

.event-registration-widget .btn-outline-danger {
    color: #dc3545;
    border: 2px solid #dc3545;
    background: transparent;
}

.event-registration-widget .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

.event-registration-widget .btn-outline-secondary {
    color: #6c757d;
    border: 2px solid #6c757d;
    background: transparent;
}

.event-registration-widget .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.event-registration-widget .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Icons */
.event-registration-widget .bi {
    font-size: 1rem;
}

/* Small text */
.event-registration-widget small {
    font-size: 0.8rem;
}

.event-registration-widget .event-merch-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
}

.event-registration-widget .event-merch-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
}

.event-registration-widget .event-merch-toggle input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.event-registration-widget .event-merch-toggle span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-registration-widget .event-merch-toggle strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.swal2-html-container .event-merch-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
}

.swal2-html-container .event-merch-toggle input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.swal2-html-container .event-merch-toggle span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.swal2-html-container .event-merch-toggle strong,
.swal2-html-container .event-merch-toggle small {
    line-height: 1.25;
}

/* Loading State */
.event-registration-widget .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive */
@media (max-width: 576px) {
    .event-registration-widget .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .event-registration-widget .alert {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Animation for updates */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-registration-widget > * {
    animation: fadeIn 0.3s ease-out;
}

/* Waiting list indicator */
.event-registration-widget .waiting-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

/* Confirmed indicator */
.event-registration-widget .confirmed-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d4edda;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.event-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.event-option-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.event-option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-option-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    background: #f8f9fa;
}

.event-option-pill span {
    color: #6c757d;
}

.event-option-pill.is-sold-out {
    opacity: 0.55;
}

.event-format-choice-list {
    display: grid;
    gap: 8px;
}

.event-format-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.event-format-choice.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.event-format-choice input {
    flex: 0 0 auto;
    margin: 0;
}

.reg-group-details {
    margin: -2px 0 8px 26px;
}

.reg-group-member-list {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.reg-group-member-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.reg-group-member-row:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.reg-group-remove-member {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reg-addon-required-person-list {
    display: grid;
    gap: 8px;
}

.reg-addon-required-person-row {
    display: grid;
    gap: 4px;
}

@media (max-width: 576px) {
    .reg-group-member-row,
    .reg-group-member-row:first-child {
        grid-template-columns: 1fr;
    }

    .reg-group-remove-member {
        width: 100%;
    }
}
