/**
 * eSpa247 Booking Plugin Styles
 */

.espa247-booking-container {
    max-width: 1024px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.espa247-loading {
    text-align: center;
    padding: 40px;
}

.espa247-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Salon Info */
.espa247-salon-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.espa247-salon-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.espa247-salon-address {
    color: #666;
    font-size: 16px;
    margin: 0 0 15px 0;
}

.espa247-salon-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.espa247-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.espa247-star {
    color: #ddd;
    font-size: 20px;
}

.espa247-star.active {
    color: #ffc107;
}

.espa247-rating-text {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

/* Form Steps */
.espa247-step {
    margin-bottom: 30px;
    position: relative;
}

.espa247-step h4 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
.espa247-step-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 40%, #fff 100%);
    padding: 15px 0 10px;
    margin-top: 20px;
    z-index: 5;
    box-shadow: 0 -6px 15px rgba(0, 0, 0, 0.08);
}

.espa247-step-actions .espa247-btn {
    min-width: 180px;
}

.espa247-step-actions .espa247-btn-secondary {
    margin-right: auto;
}

    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Categories Menu */
.espa247-categories-menu {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.espa247-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.espa247-category-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.espa247-category-btn:hover {
    border-color: #007bff;
    background: #f0f7ff;
    color: #007bff;
}

.espa247-category-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

/* Sticky Services Section */
.espa247-sticky-services-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.espa247-sticky-services-section h5 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.espa247-sticky-services-section h5::before {
    content: "\f155";
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    color: #ffb900;
    margin-right: 8px;
}

.espa247-sticky-services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .espa247-sticky-services-list {
        grid-template-columns: 1fr;
    }
}

.espa247-sticky-service {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.espa247-sticky-service:hover {
    border-color: #ffc107;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

/* Services Section */
.espa247-services-section {
    margin-bottom: 20px;
}

.espa247-services-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

/* Services List */
.espa247-services-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.espa247-service-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.espa247-service-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.espa247-service-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.espa247-service-checkbox {
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.espa247-service-item:has(.espa247-service-checkbox:checked) {
    border-color: #007bff;
    background: #f0f7ff;
}

.espa247-service-content {
    flex: 1;
}

.espa247-service-content h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.espa247-service-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    line-height: 1.5!important;
}

.espa247-service-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.espa247-service-price {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
}

.espa247-service-duration {
    color: #666;
    font-size: 14px;
}

.espa247-service-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}

/* Category Groups */
.espa247-category-group {
    margin-bottom: 30px;
}

.espa247-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.espa247-category-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 15px;
}

/* Sticky Services Section */
.espa247-sticky-services-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #007bff;
}

.espa247-sticky-services-section h5 {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.espa247-sticky-services-section h5::before {
    content: "\f155";
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    color: #ffb900;
    margin-right: 8px;
}

.espa247-sticky-services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .espa247-sticky-services-list {
        grid-template-columns: 1fr;
    }
}

.espa247-sticky-service {
    border: 2px solid #007bff;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.espa247-sticky-service:hover {
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Selected Services Summary */
.espa247-selected-services {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.espa247-selected-services p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

/* Sticky Footer Bar */
.espa247-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 15px 20px;
    transition: transform 0.3s ease;
}

.espa247-sticky-footer-content {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.espa247-sticky-selected-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.espa247-sticky-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.espa247-sticky-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.espa247-sticky-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.espa247-sticky-price {
    color: #007bff;
    font-size: 20px;
}

.espa247-sticky-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.espa247-sticky-actions .espa247-btn {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* Add padding to bottom of form to prevent content from being hidden behind sticky footer */
.espa247-booking-form {
    padding-bottom: 100px;
}

/* Hide original step actions on mobile when sticky footer is visible */
@media (max-width: 768px) {
    .espa247-sticky-footer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .espa247-sticky-selected-info {
        justify-content: space-around;
        min-width: auto;
    }
    
    .espa247-sticky-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .espa247-sticky-actions .espa247-btn {
        width: 100%;
        min-width: 100%;
    }
    
    /* Hide original step actions on mobile to avoid duplication */
    .espa247-step-actions {
        display: none !important;
    }
    
    .espa247-selected-services {
        display: none !important;
    }
    
    .espa247-booking-form {
        padding-bottom: 180px; /* More space for mobile sticky footer */
    }
}

/* Desktop: Show both sticky footer and original actions, but make original less prominent */
@media (min-width: 769px) {
    .espa247-step-actions {
        position: relative;
        background: transparent;
        box-shadow: none;
        padding: 20px 0;
    }
    
    /* Keep selected services visible in form for desktop */
    .espa247-selected-services {
        display: block;
    }
}

/* Date Input */
.espa247-date-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.espa247-date-input:focus {
    outline: none;
    border-color: #007bff;
}

/* Time Slots */
.espa247-time-slots-container {
    margin-bottom: 20px;
}

.espa247-loading-slots {
    text-align: center;
    padding: 40px;
}

.espa247-time-slots {
    display: grid;
    gap: 20px;
}

.espa247-employee-slots {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.espa247-employee-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.espa247-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.espa247-time-slot-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.espa247-time-slot-btn:hover {
    border-color: #007bff;
    background: #f0f7ff;
    color: #007bff;
}

.espa247-time-slot-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.espa247-no-slots {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

/* Time Slot Themes */

/* Default Theme (already defined above) */

/* Modern Theme */
.espa247-theme-modern .espa247-time-slot-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(0);
}

.espa247-theme-modern .espa247-time-slot-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.espa247-theme-modern .espa247-time-slot-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.espa247-theme-modern .espa247-slots-modern {
    gap: 15px;
}

/* Minimal Theme */
.espa247-theme-minimal .espa247-time-slot-btn {
    border: 1px solid #ddd;
    background: transparent;
    color: #555;
    font-weight: 400;
    border-radius: 4px;
    padding: 10px 16px;
}

.espa247-theme-minimal .espa247-time-slot-btn:hover {
    border-color: #333;
    background: #fafafa;
    color: #333;
}

.espa247-theme-minimal .espa247-time-slot-btn.active {
    border-color: #333;
    background: #333;
    color: #fff;
    font-weight: 500;
}

.espa247-theme-minimal .espa247-slots-minimal {
    gap: 8px;
}

/* Card Style Theme */
.espa247-theme-card .espa247-time-slot-btn {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    transition: all 0.2s ease;
}

.espa247-theme-card .espa247-time-slot-btn:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.espa247-theme-card .espa247-time-slot-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.espa247-theme-card .espa247-slots-card {
    gap: 12px;
}

/* Grid Theme */
.espa247-theme-grid .espa247-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.espa247-theme-grid .espa247-time-slot-btn {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    font-weight: 500;
}

.espa247-theme-grid .espa247-time-slot-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}

.espa247-theme-grid .espa247-time-slot-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 600;
}

/* Buttons */
.espa247-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.espa247-btn-primary {
    background: #007bff;
    color: #fff;
}

.espa247-btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.espa247-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.espa247-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.espa247-btn-secondary:hover {
    background: #5a6268;
}

/* Success Message */
.espa247-success-message {
    text-align: center;
    padding: 60px 20px;
}

.espa247-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.espa247-success-message h3 {
    color: #28a745;
    font-size: 24px;
    margin: 0 0 10px 0;
}

/* Error Message */
.espa247-error-message {
    display: none;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #721c24;
    font-weight: 500;
    position: relative;
}

.espa247-error-message.show {
    display: block !important;
}

.espa247-error-text {
    color: #721c24;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.espa247-error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
}

/* Employees List */
.espa247-employees-list {
    margin-bottom: 20px;
}

.espa247-employees-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.espa247-employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.espa247-employee-btn {
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.espa247-employee-btn:hover {
    border-color: #007bff;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.espa247-employee-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.espa247-employee-btn.active .espa247-employee-name {
    color: #fff;
}

.espa247-employee-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.espa247-employee-avatar-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    flex-shrink: 0;
}

.espa247-employee-btn.active .espa247-employee-avatar-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.espa247-employee-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.espa247-employee-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #666;
    background: #e0e0e0;
    border-radius: 50%;
}

.espa247-employee-btn.active .espa247-employee-avatar-placeholder {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.espa247-employee-name {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-align: center;
    word-break: break-word;
    margin: 20px 0;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* Customer Information Form */
.espa247-customer-form {
    margin: 20px 0;
}

.espa247-form-group {
    margin-bottom: 20px;
}

.espa247-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.espa247-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.espa247-form-group .required {
    color: #dc3545;
    margin-left: 3px;
}

.espa247-form-input,
.espa247-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.espa247-form-input:focus,
.espa247-form-textarea:focus {
    outline: none;
    border-color: #007bff;
}

.espa247-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.espa247-form-input:invalid {
    border-color: #dc3545;
}

.espa247-form-input:valid {
    border-color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .espa247-booking-container {
        padding: 20px;
        margin: 10px;
    }
    
    .espa247-step-actions {
        flex-direction: column;
        box-shadow: none;
    }
    
    .espa247-step-actions .espa247-btn {
        width: 100%;
        min-width: 100%;
    }
    
    .espa247-step-actions .espa247-btn-secondary {
        margin-right: 0;
    }
    
    .espa247-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .espa247-employees-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .espa247-employee-btn {
        min-height: 100px;
        padding: 12px;
    }
    
    .espa247-employee-avatar-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .espa247-employee-name {
        font-size: 12px;
    }
    
    .espa247-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Giftcard Container */
.espa247-giftcard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.espa247-giftcard-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.espa247-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.espa247-form-group-half {
    margin-bottom: 0;
}

.espa247-giftcard-title {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.espa247-amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.espa247-amount-btn {
    padding: 15px 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.espa247-amount-btn:hover {
    background: #e8f4f8;
    border-color: #2271b1;
    color: #2271b1;
}

.espa247-amount-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.espa247-amount-other-wrapper {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.espa247-amount-btn.espa247-amount-other {
    flex: 0 0 auto;
    min-width: 150px;
}

.espa247-other-amount-input {
    flex: 1;
    min-width: 200px;
    margin-top: 0;
}

.espa247-amount-input-inline {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.espa247-amount-input-inline:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.espa247-amount-hint {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Vouchers Container */
.espa247-vouchers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.espa247-vouchers-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.espa247-vouchers-title {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.espa247-no-vouchers {
    text-align: center;
    padding: 40px;
    color: #666;
}

.espa247-vouchers-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.espa247-vouchers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.espa247-voucher-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.espa247-voucher-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.espa247-voucher-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.espa247-voucher-name {
    margin: 10px 0;
    color: #333;
    font-size: 18px;
}

.espa247-voucher-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.espa247-voucher-discount {
    color: #d63638;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.espa247-voucher-expiry {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

/* Giftcard Section */
.espa247-giftcard-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.espa247-giftcard-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.espa247-payment-methods {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.espa247-payment-methods h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.espa247-payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.espa247-payment-method {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.espa247-payment-method:hover {
    background-color: #f5f5f5;
}

.espa247-payment-method input[type="radio"] {
    margin-right: 10px;
}

.espa247-giftcard-success-message {
    text-align: center;
    padding: 30px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 2px solid #2271b1;
}

.espa247-giftcard-success-message .espa247-success-icon {
    font-size: 48px;
    color: #2271b1;
    margin-bottom: 15px;
}

.espa247-giftcard-success-message h3 {
    color: #2271b1;
    margin-bottom: 10px;
}

.espa247-giftcard-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
}

/* Responsive for Vouchers and Giftcard */
@media (max-width: 768px) {
    .espa247-vouchers-list {
        grid-template-columns: 1fr;
    }
    
    .espa247-payment-methods-list {
        flex-direction: column;
    }
    
    .espa247-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .espa247-form-group-half {
        margin-bottom: 20px;
    }
    
    .espa247-amount-other-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .espa247-amount-btn.espa247-amount-other {
        width: 100%;
        min-width: auto;
    }
    
    .espa247-other-amount-input {
        min-width: auto;
    }
}

