/**
 * Dublin Silver Account - Main Styles
 * Version: 2.1.0
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.dsa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--dsa-font);
    border-radius: var(--dsa-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--dsa-transition);
    line-height: 1.4;
}

.dsa-btn-primary {
    background: var(--dsa-primary);
    color: var(--dsa-white);
}

.dsa-btn-primary:hover {
    background: var(--dsa-primary-dark);
    color: var(--dsa-white);
}

.dsa-btn-secondary {
    background: var(--dsa-secondary);
    color: var(--dsa-primary-dark);
}

.dsa-btn-secondary:hover {
    background: var(--dsa-secondary-dark);
}

.dsa-btn-outline {
    background: transparent;
    border: 2px solid var(--dsa-primary);
    color: var(--dsa-primary);
}

.dsa-btn-outline:hover {
    background: var(--dsa-primary);
    color: var(--dsa-white);
}

.dsa-btn-danger {
    background: var(--dsa-danger);
    color: var(--dsa-white);
}

.dsa-btn-danger:hover {
    background: #dc2626;
}

.dsa-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.dsa-btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.dsa-btn:disabled,
.dsa-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.dsa-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: dsa-spin 0.8s linear infinite;
    margin-left: 8px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.dsa-form-group {
    margin-bottom: 20px;
}

.dsa-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dsa-text);
    margin-bottom: 8px;
}

.dsa-form-label .required {
    color: var(--dsa-danger);
}

.dsa-form-input,
.dsa-form-select,
.dsa-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--dsa-font);
    border: 1px solid var(--dsa-border);
    border-radius: var(--dsa-radius-sm);
    background: var(--dsa-white);
    color: var(--dsa-text);
    transition: var(--dsa-transition);
}

.dsa-form-input:focus,
.dsa-form-select:focus,
.dsa-form-textarea:focus {
    outline: none;
    border-color: var(--dsa-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.dsa-form-input::placeholder,
.dsa-form-textarea::placeholder {
    color: var(--dsa-text-muted);
}

.dsa-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.dsa-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.dsa-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dsa-form-hint {
    font-size: 0.8rem;
    color: var(--dsa-text-muted);
    margin-top: 4px;
}

.dsa-form-error {
    font-size: 0.8rem;
    color: var(--dsa-danger);
    margin-top: 4px;
}

/* ==========================================================================
   Orders List
   ========================================================================== */
.dsa-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsa-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--dsa-bg);
    border-radius: var(--dsa-radius-sm);
    transition: var(--dsa-transition);
}

.dsa-order-item:hover {
    background: var(--dsa-border-light);
}

.dsa-order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsa-order-number {
    font-weight: 600;
    color: var(--dsa-primary);
}

.dsa-order-date {
    font-size: 0.85rem;
    color: var(--dsa-text-light);
}

.dsa-order-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dsa-order-total {
    font-weight: 600;
    color: var(--dsa-text);
}

.dsa-order-link {
    color: var(--dsa-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.dsa-order-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.dsa-order-status,
.dsa-apt-status,
.dsa-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: capitalize;
}

.dsa-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.dsa-status-processing,
.dsa-status-on-hold {
    background: rgba(59, 130, 246, 0.1);
    color: var(--dsa-info);
}

.dsa-status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dsa-success);
}

.dsa-status-confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--dsa-success);
}

.dsa-status-cancelled,
.dsa-status-failed,
.dsa-status-refunded {
    background: rgba(239, 68, 68, 0.1);
    color: var(--dsa-danger);
}

/* ==========================================================================
   Appointments List
   ========================================================================== */
.dsa-appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsa-appointment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--dsa-bg);
    border-radius: var(--dsa-radius-sm);
    transition: var(--dsa-transition);
}

.dsa-appointment-item:hover {
    background: var(--dsa-border-light);
}

.dsa-appointment-date-box {
    width: 56px;
    height: 56px;
    background: var(--dsa-primary);
    border-radius: var(--dsa-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dsa-white);
    flex-shrink: 0;
}

.dsa-apt-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.dsa-apt-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsa-appointment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsa-apt-type {
    font-weight: 600;
    color: var(--dsa-text);
}

.dsa-apt-time {
    font-size: 0.85rem;
    color: var(--dsa-text-light);
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.dsa-empty-state {
    text-align: center;
    padding: 32px 16px;
}

.dsa-empty-state-small {
    padding: 16px;
}

.dsa-empty-state p {
    color: var(--dsa-text-light);
    margin-bottom: 16px;
}

.dsa-empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--dsa-border);
    margin-bottom: 16px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.dsa-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--dsa-transition);
}

.dsa-modal.active {
    opacity: 1;
    visibility: visible;
}

.dsa-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.dsa-modal-container {
    position: relative;
    background: var(--dsa-white);
    border-radius: var(--dsa-radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: var(--dsa-transition);
    z-index: 1;
}

.dsa-modal.active .dsa-modal-container {
    transform: translateY(0) scale(1);
}

.dsa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--dsa-border);
}

.dsa-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dsa-primary);
    margin: 0;
}

.dsa-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    color: var(--dsa-text-light);
    transition: var(--dsa-transition);
}

.dsa-modal-close:hover {
    background: var(--dsa-bg);
    color: var(--dsa-text);
}

.dsa-modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.dsa-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid var(--dsa-border);
    background: var(--dsa-bg);
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.dsa-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--dsa-border);
    padding-bottom: 8px;
    overflow-x: auto;
}

.dsa-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dsa-text-light);
    background: transparent;
    border: none;
    border-radius: var(--dsa-radius-sm);
    cursor: pointer;
    transition: var(--dsa-transition);
    white-space: nowrap;
}

.dsa-tab:hover {
    background: var(--dsa-bg);
    color: var(--dsa-text);
}

.dsa-tab.active {
    background: var(--dsa-primary);
    color: var(--dsa-white);
}

/* ==========================================================================
   Alerts / Notices
   ========================================================================== */
.dsa-alert {
    padding: 16px 20px;
    border-radius: var(--dsa-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dsa-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dsa-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid var(--dsa-success);
}

.dsa-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-left: 4px solid var(--dsa-warning);
}

.dsa-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid var(--dsa-danger);
}

.dsa-alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-left: 4px solid var(--dsa-info);
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */
.dsa-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dsa-card {
    background: var(--dsa-white);
    border-radius: var(--dsa-radius);
    padding: 20px;
    box-shadow: var(--dsa-shadow-sm);
    border: 1px solid var(--dsa-border-light);
    transition: var(--dsa-transition);
}

.dsa-card:hover {
    box-shadow: var(--dsa-shadow);
}

/* ==========================================================================
   Wishlist Items
   ========================================================================== */
.dsa-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.dsa-wishlist-item {
    background: var(--dsa-white);
    border-radius: var(--dsa-radius);
    overflow: hidden;
    border: 1px solid var(--dsa-border-light);
    transition: var(--dsa-transition);
}

.dsa-wishlist-item:hover {
    box-shadow: var(--dsa-shadow);
}

.dsa-wishlist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--dsa-bg);
}

.dsa-wishlist-details {
    padding: 16px;
}

.dsa-wishlist-name {
    font-weight: 600;
    color: var(--dsa-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.dsa-wishlist-price {
    font-weight: 700;
    color: var(--dsa-primary);
    margin-bottom: 12px;
}

.dsa-wishlist-actions {
    display: flex;
    gap: 8px;
}

.dsa-wishlist-actions .dsa-btn {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
}

/* ==========================================================================
   Returns
   ========================================================================== */
.dsa-returns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsa-return-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--dsa-bg);
    border-radius: var(--dsa-radius-sm);
}

.dsa-return-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.dsa-return-product img {
    width: 56px;
    height: 56px;
    border-radius: var(--dsa-radius-sm);
    object-fit: cover;
}

.dsa-return-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsa-return-name {
    font-weight: 600;
    color: var(--dsa-text);
}

.dsa-return-reason {
    font-size: 0.85rem;
    color: var(--dsa-text-light);
}

/* ==========================================================================
   Appointment Booking Form
   ========================================================================== */
.dsa-booking-form {
    max-width: 600px;
}

.dsa-time-slots,
.dsa-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.dsa-time-slot {
    padding: 12px;
    text-align: center;
    background: var(--dsa-bg);
    border: 2px solid transparent;
    border-radius: var(--dsa-radius-sm);
    cursor: pointer;
    transition: var(--dsa-transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.dsa-time-slot:hover {
    border-color: var(--dsa-primary);
}

.dsa-time-slot.selected {
    background: var(--dsa-primary);
    color: var(--dsa-white);
    border-color: var(--dsa-primary);
}

.dsa-time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Appointment Details Card
   ========================================================================== */
.dsa-appointment-card {
    background: var(--dsa-white);
    border-radius: var(--dsa-radius);
    border: 1px solid var(--dsa-border-light);
    overflow: hidden;
}

.dsa-appointment-card-header {
    background: var(--dsa-primary);
    color: var(--dsa-white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dsa-appointment-card-body {
    padding: 20px;
}

.dsa-appointment-detail {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dsa-border-light);
}

.dsa-appointment-detail:last-child {
    border-bottom: none;
}

.dsa-appointment-detail-icon {
    width: 40px;
    height: 40px;
    background: var(--dsa-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dsa-primary);
    flex-shrink: 0;
}

.dsa-appointment-detail-content {
    flex: 1;
}

.dsa-appointment-detail-label {
    font-size: 0.8rem;
    color: var(--dsa-text-light);
    margin-bottom: 2px;
}

.dsa-appointment-detail-value {
    font-weight: 600;
    color: var(--dsa-text);
}

.dsa-appointment-card-actions {
    padding: 16px 20px;
    background: var(--dsa-bg);
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   Login Required
   ========================================================================== */
.dsa-login-required {
    text-align: center;
    padding: 48px 24px;
    background: var(--dsa-white);
    border-radius: var(--dsa-radius-lg);
    box-shadow: var(--dsa-shadow);
}

.dsa-login-required p {
    color: var(--dsa-text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ==========================================================================
   Public Booking Page
   ========================================================================== */
.dsa-public-booking {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--dsa-white);
    border-radius: var(--dsa-radius-lg);
    box-shadow: var(--dsa-shadow-lg);
}

.dsa-public-booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.dsa-public-booking-header h2 {
    font-size: 1.75rem;
    color: var(--dsa-primary);
    margin-bottom: 8px;
}

.dsa-public-booking-header p {
    color: var(--dsa-text-light);
}

/* ==========================================================================
   Turnstile Widget
   ========================================================================== */
.cf-turnstile {
    margin: 20px 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes dsa-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dsa-fade-in {
    animation: dsa-fadeIn 0.3s ease;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.dsa-text-center { text-align: center; }
.dsa-text-right { text-align: right; }
.dsa-text-muted { color: var(--dsa-text-muted); }
.dsa-mt-0 { margin-top: 0; }
.dsa-mb-0 { margin-bottom: 0; }
.dsa-mb-1 { margin-bottom: 8px; }
.dsa-mb-2 { margin-bottom: 16px; }
.dsa-mb-3 { margin-bottom: 24px; }
.dsa-hidden { display: none !important; }
.dsa-flex { display: flex; }
.dsa-flex-between { justify-content: space-between; }
.dsa-flex-center { align-items: center; }
.dsa-gap-1 { gap: 8px; }
.dsa-gap-2 { gap: 16px; }

/* ==========================================================================
   Toast Notification - Fixed Position Global Alert
   ========================================================================== */
.dsa-toast-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.1);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dsa-toast-alert.dsa-toast-show {
    transform: translateX(0);
}

.dsa-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsa-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.dsa-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.dsa-toast-close:hover {
    background: #f0f0f0;
    color: #666;
}

.dsa-toast-success {
    border-left: 4px solid #10b981;
}

.dsa-toast-success .dsa-toast-icon {
    color: #10b981;
}

.dsa-toast-danger {
    border-left: 4px solid #ef4444;
}

.dsa-toast-danger .dsa-toast-icon {
    color: #ef4444;
}

.dsa-toast-warning {
    border-left: 4px solid #f59e0b;
}

.dsa-toast-warning .dsa-toast-icon {
    color: #f59e0b;
}

.dsa-toast-info {
    border-left: 4px solid #3b82f6;
}

.dsa-toast-info .dsa-toast-icon {
    color: #3b82f6;
}

/* ==========================================================================
   Wishlist Button - Single Product Page (Luxury Jewelry Style)
   ========================================================================== */
.dsa-wishlist-button-wrap {
    margin: 20px 0;
    display: inline-block;
}

.dsa-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1.5px solid #d4af37;
    color: #8b7355;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dsa-wishlist-btn:hover {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

.dsa-wishlist-btn:hover svg {
    stroke: #fff;
}

.dsa-wishlist-btn.dsa-in-wishlist {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    border-color: #d4af37;
    color: #fff;
}

.dsa-wishlist-btn.dsa-in-wishlist svg {
    fill: #fff;
    stroke: #fff;
}

.dsa-wishlist-btn.dsa-in-wishlist:hover {
    background: linear-gradient(135deg, #b8962e 0%, #9a7b1c 100%);
}

.dsa-wishlist-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: #d4af37;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Wishlist Button - Product Loop/Archive (Elegant Floating Style)
   ========================================================================== */
.dsa-wishlist-btn-loop {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #bbb;
    opacity: 0;
    transform: scale(0.8);
}

/* Show on hover of product card */
.woocommerce ul.products li.product:hover .dsa-wishlist-btn-loop,
.woocommerce-page ul.products li.product:hover .dsa-wishlist-btn-loop,
.product-item:hover .dsa-wishlist-btn-loop {
    opacity: 1;
    transform: scale(1);
}

/* Always show if in wishlist */
.dsa-wishlist-btn-loop.dsa-in-wishlist {
    opacity: 1;
    transform: scale(1);
}

.dsa-wishlist-btn-loop:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: scale(1.1) !important;
}

.dsa-wishlist-btn-loop svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.dsa-wishlist-btn-loop:hover svg {
    color: #d4af37;
    stroke: #d4af37;
}

.dsa-wishlist-btn-loop.dsa-in-wishlist {
    color: #d4af37;
    background: #fff;
}

.dsa-wishlist-btn-loop.dsa-in-wishlist svg {
    fill: #d4af37;
    stroke: #d4af37;
}

.dsa-wishlist-btn-loop.dsa-in-wishlist:hover {
    color: #c9a227;
}

.dsa-wishlist-btn-loop.dsa-in-wishlist:hover svg {
    fill: #c9a227;
    stroke: #c9a227;
}

/* Ensure product items have relative positioning */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* Loading state */
.dsa-wishlist-btn.dsa-loading,
.dsa-wishlist-btn-loop.dsa-loading {
    opacity: 0.7;
    pointer-events: none;
}

.dsa-wishlist-btn.dsa-loading svg,
.dsa-wishlist-btn-loop.dsa-loading svg {
    animation: dsa-pulse 1s ease-in-out infinite;
}

@keyframes dsa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Mobile - always show wishlist button */
@media (max-width: 768px) {
    .dsa-wishlist-btn-loop {
        opacity: 1;
        transform: scale(1);
        width: 36px;
        height: 36px;
    }
    
    .dsa-toast-alert {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ==========================================================================
   Booking Popup Modal
   ========================================================================== */
.dsa-booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dsa-booking-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dsa-booking-popup-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: dsa-popup-in 0.3s ease-out;
}

@keyframes dsa-popup-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dsa-booking-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.dsa-booking-popup-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.dsa-booking-popup-content {
    padding: 32px;
}

.dsa-booking-popup-content .dsa-public-booking {
    padding: 0;
}

.dsa-booking-popup-content .dsa-booking-header {
    padding-right: 40px;
}

/* ==========================================================================
   Floating Book Now Button
   ========================================================================== */
.dsa-floating-book-btn {
    position: fixed;
    bottom: 24px;
    z-index: 99999;
}

.dsa-floating-book-btn.dsa-floating-right {
    right: 24px;
}

.dsa-floating-book-btn.dsa-floating-left {
    left: 24px;
}

.dsa-floating-book-btn button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dsa-floating-book-btn button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dsa-floating-book-btn button svg {
    flex-shrink: 0;
}

/* Gold button style */
.dsa-btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #fff;
    border: none;
}

.dsa-btn-gold:hover {
    background: linear-gradient(135deg, #c9a227 0%, #b8962e 100%);
    color: #fff;
}

/* Open booking popup - can be added to any link/button */
.dsa-open-booking-popup {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .dsa-booking-popup {
        padding: 10px;
        align-items: flex-end;
    }
    
    .dsa-booking-popup-container {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .dsa-booking-popup-content {
        padding: 24px 20px;
    }
    
    .dsa-floating-book-btn {
        bottom: 16px;
    }
    
    .dsa-floating-book-btn.dsa-floating-right {
        right: 16px;
    }
    
    .dsa-floating-book-btn.dsa-floating-left {
        left: 16px;
    }
    
    .dsa-floating-book-btn button span {
        display: none;
    }
    
    .dsa-floating-book-btn button {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
}

/* ==========================================================================
   Public Booking Form - Luxury Jewelry Style
   ========================================================================== */
.dsa-public-booking {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dsa-booking-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.dsa-booking-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dsa-booking-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.dsa-form-section {
    margin-bottom: 28px;
}

.dsa-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

.dsa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .dsa-form-row {
        grid-template-columns: 1fr;
    }
}

.dsa-form-group {
    margin-bottom: 16px;
}

.dsa-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dsa-form-label .required {
    color: #d4af37;
}

.dsa-form-input,
.dsa-form-select,
.dsa-form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dsa-form-input:focus,
.dsa-form-select:focus,
.dsa-form-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.dsa-form-input::placeholder,
.dsa-form-textarea::placeholder {
    color: #9ca3af;
}

.dsa-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.dsa-form-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.dsa-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.dsa-form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Primary booking button - Gold luxury style */
.dsa-public-booking .dsa-btn-primary,
.dsa-booking-popup .dsa-btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dsa-public-booking .dsa-btn-primary:hover,
.dsa-booking-popup .dsa-btn-primary:hover {
    background: linear-gradient(135deg, #c9a227 0%, #b8962e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.dsa-public-booking .dsa-btn-primary:active,
.dsa-booking-popup .dsa-btn-primary:active {
    transform: translateY(0);
}

/* Loading state */
.dsa-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsa-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dsa-spin 0.8s linear infinite;
}

.dsa-spinner-sm {
    width: 14px;
    height: 14px;
}

/* Success message */
.dsa-success-message {
    text-align: center;
    padding: 40px 20px;
}

.dsa-success-message svg {
    color: #10b981;
    margin-bottom: 16px;
}

.dsa-success-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.dsa-success-message p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.dsa-create-account-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dsa-create-account-prompt .dsa-btn-outline {
    padding: 10px 20px;
    border: 2px solid #d4af37;
    color: #d4af37;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dsa-create-account-prompt .dsa-btn-outline:hover {
    background: #d4af37;
    color: #fff;
}

/* Time loading indicator */
.dsa-time-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.dsa-time-loading .dsa-spinner {
    border-color: #e5e7eb;
    border-top-color: #d4af37;
}

/* Popup specific overrides */
.dsa-booking-popup-content .dsa-public-booking {
    padding: 0;
}

.dsa-booking-popup-content .dsa-booking-header {
    text-align: left;
}

.dsa-booking-popup-container {
    border-top: 4px solid #d4af37;
}

/* Turnstile styling */
.dsa-public-booking .cf-turnstile {
    margin: 16px 0;
}

/* Dark close button for popup */
.dsa-booking-popup-close {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
}

.dsa-booking-popup-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ==========================================================================
   Wishlist Shortcode Button
   ========================================================================== */
.dsa-wishlist-btn-shortcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #bbb;
}

.dsa-wishlist-btn-shortcode:hover {
    background: #fff;
    color: #d4af37;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dsa-wishlist-btn-shortcode.dsa-in-wishlist {
    color: #d4af37;
}

.dsa-wishlist-btn-shortcode.dsa-in-wishlist svg {
    fill: #d4af37;
    stroke: #d4af37;
}

/* Wishlist text link */
.dsa-wishlist-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.dsa-wishlist-link:hover {
    color: #d4af37;
}

.dsa-wishlist-link.dsa-in-wishlist {
    color: #d4af37;
}

.dsa-wishlist-link.dsa-in-wishlist svg {
    fill: #d4af37;
}

/* ==========================================================================
   Booking Popup - Mobile First Responsive Design
   ========================================================================== */

/* Base mobile styles (default) */
.dsa-booking-popup {
    padding: 0;
    align-items: flex-end;
}

.dsa-booking-popup-container {
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
    max-width: 100%;
    width: 100%;
}

.dsa-booking-popup-content {
    padding: 20px 16px 30px;
}

.dsa-booking-popup-content .dsa-booking-header {
    text-align: center;
    padding-right: 0;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.dsa-booking-popup-content .dsa-booking-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.dsa-booking-popup-content .dsa-booking-header p {
    font-size: 14px;
}

.dsa-booking-popup-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
}

/* Form mobile styles */
.dsa-booking-popup .dsa-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
}

.dsa-booking-popup .dsa-form-group {
    margin-bottom: 12px;
}

.dsa-booking-popup .dsa-form-label {
    font-size: 12px;
    margin-bottom: 5px;
}

.dsa-booking-popup .dsa-form-input,
.dsa-booking-popup .dsa-form-select,
.dsa-booking-popup .dsa-form-textarea {
    padding: 14px 12px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    border-radius: 10px;
}

.dsa-booking-popup .dsa-form-textarea {
    min-height: 80px;
}

.dsa-booking-popup .dsa-form-section {
    margin-bottom: 20px;
}

.dsa-booking-popup .dsa-form-section-title {
    font-size: 14px;
    margin-bottom: 12px;
}

.dsa-booking-popup .dsa-form-actions {
    margin-top: 20px;
    padding-top: 20px;
    position: sticky;
    bottom: 0;
    background: #fff;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 10px;
}

.dsa-booking-popup .dsa-btn-primary {
    padding: 16px 24px;
    font-size: 14px;
    border-radius: 12px;
}

/* Success message mobile */
.dsa-booking-popup .dsa-success-message {
    padding: 30px 16px;
}

.dsa-booking-popup .dsa-success-message h3 {
    font-size: 20px;
}

.dsa-booking-popup .dsa-success-message p {
    font-size: 14px;
}

.dsa-booking-popup .dsa-create-account-prompt {
    flex-direction: column;
    gap: 8px;
}

/* Tablet styles */
@media (min-width: 576px) {
    .dsa-booking-popup {
        padding: 20px;
        align-items: center;
    }
    
    .dsa-booking-popup-container {
        border-radius: 16px;
        max-width: 540px;
        max-height: 90vh;
    }
    
    .dsa-booking-popup-content {
        padding: 28px 24px;
    }
    
    .dsa-booking-popup-content .dsa-booking-header h2 {
        font-size: 24px;
    }
    
    .dsa-booking-popup .dsa-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .dsa-booking-popup .dsa-form-actions {
        position: static;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .dsa-booking-popup-container {
        max-width: 640px;
    }
    
    .dsa-booking-popup-content {
        padding: 32px;
    }
    
    .dsa-booking-popup-content .dsa-booking-header h2 {
        font-size: 28px;
    }
    
    .dsa-booking-popup-content .dsa-booking-header p {
        font-size: 15px;
    }
    
    .dsa-booking-popup .dsa-form-label {
        font-size: 13px;
    }
    
    .dsa-booking-popup .dsa-form-input,
    .dsa-booking-popup .dsa-form-select {
        padding: 12px 14px;
    }
}

/* Large desktop */
@media (min-width: 992px) {
    .dsa-booking-popup-container {
        max-width: 700px;
    }
}

/* ==========================================================================
   Floating Book Button - Mobile First
   ========================================================================== */
.dsa-floating-book-btn {
    bottom: 16px;
}

.dsa-floating-book-btn.dsa-floating-right {
    right: 16px;
}

.dsa-floating-book-btn.dsa-floating-left {
    left: 16px;
}

.dsa-floating-book-btn button {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.dsa-floating-book-btn button span {
    display: none;
}

@media (min-width: 576px) {
    .dsa-floating-book-btn {
        bottom: 24px;
    }
    
    .dsa-floating-book-btn.dsa-floating-right {
        right: 24px;
    }
    
    .dsa-floating-book-btn.dsa-floating-left {
        left: 24px;
    }
    
    .dsa-floating-book-btn button {
        width: auto;
        height: auto;
        padding: 14px 24px;
        border-radius: 50px;
    }
    
    .dsa-floating-book-btn button span {
        display: inline;
    }
}

/* ==========================================================================
   Public Booking Form Page - Mobile First
   ========================================================================== */
.dsa-public-booking {
    padding: 16px;
}

.dsa-public-booking .dsa-booking-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.dsa-public-booking .dsa-booking-header h2 {
    font-size: 22px;
}

.dsa-public-booking .dsa-booking-header p {
    font-size: 14px;
}

.dsa-public-booking .dsa-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
}

.dsa-public-booking .dsa-form-input,
.dsa-public-booking .dsa-form-select,
.dsa-public-booking .dsa-form-textarea {
    font-size: 16px; /* Prevents iOS zoom */
}

@media (min-width: 576px) {
    .dsa-public-booking {
        padding: 24px;
    }
    
    .dsa-public-booking .dsa-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .dsa-public-booking .dsa-booking-header h2 {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .dsa-public-booking {
        padding: 32px;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Touch-friendly improvements
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets on touch devices */
    .dsa-booking-popup-close {
        width: 44px;
        height: 44px;
    }
    
    .dsa-form-select {
        min-height: 48px;
    }
    
    .dsa-btn-primary {
        min-height: 52px;
    }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .dsa-booking-popup-container {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .dsa-floating-book-btn {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    @media (min-width: 576px) {
        .dsa-floating-book-btn {
            bottom: calc(24px + env(safe-area-inset-bottom));
        }
    }
}
