/* DiscoveryPass Booking System public styles */

/* Layout wrappers */
.discoverypass-booking-widget {
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    max-width: 900px;
    margin: 0 auto 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dp-booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dp-booking-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
}

.dp-booking-subtitle {
    margin-top: 0;
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 0.95rem;
}

.dp-booking-global-message {
    margin-bottom: 16px;
}

/* Buttons */
.dp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.dp-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.dp-button:disabled {
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.dp-button-ghost {
    background: #f3f4f6;
    color: #374151;
    box-shadow: none;
}

.dp-button-ghost:hover {
    background: #e5e7eb;
}

.dp-button-small {
    padding: 5px 11px;
    font-size: 0.8rem;
}

/* Link */
.dp-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.dp-link:hover {
    text-decoration: underline;
}

/* Class grid */
.dp-class-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .dp-class-grid {
        grid-template-columns: 1fr;
    }
}

/* Class cards */
.dp-class-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dp-class-info h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.dp-class-meta {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #6b7280;
}

.dp-class-credits {
    margin: 0;
    font-size: 0.9rem;
    color: #111827;
}

.dp-class-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 180px;
}

.dp-class-message {
    font-size: 0.8rem;
}

.dp-error {
    color: #b91c1c;
}

.dp-success {
    color: #065f46;
}

/* Credits info trigger */
.dp-credits-info-trigger {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dp-credits-info-trigger:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #9ca3af;
}

/* Modal */
.dp-credits-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dp-credits-modal-overlay.is-visible {
    display: flex;
}

.dp-credits-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    position: relative;
}

.dp-credits-modal h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
}

.dp-credits-modal p {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.dp-credits-modal ul {
    margin: 0 0 10px 18px;
    padding: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.dp-credits-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6b7280;
}

/* Top-up cards */
.dp-topup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .dp-topup-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dp-card.dp-topup-card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.dp-topup-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.dp-topup-credits {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #111827;
}

.dp-topup-price {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #4b5563;
}

.dp-partner-label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-partner-name {
    background: #f1f1f1;
    padding: 3px 6px;
    border-radius: 4px;
}

