/**
 * Streets Embed Widget Styles
 * Version: 1.0.0
 */

/* CSS Variables for Advanced Theming */
.streets-embed-widget {
    /* Default color system */
    --streets-primary: #038882;
    --streets-primary-hover: #026b65;
    --streets-primary-light: #4ADEDB;
    --streets-secondary: #F59E0B;
    --streets-secondary-hover: #d97706;
    
    /* Gradient system */
    --streets-gradient-primary: linear-gradient(135deg, #038882, #026b65);
    --streets-gradient-secondary: linear-gradient(135deg, #F59E0B, #d97706);
    
    /* Background colors */
    --streets-bg: #ffffff;
    --streets-card-bg: #f8f9fa;
    --streets-modal-bg: #ffffff;
    
    /* Text colors */
    --streets-text: #333333;
    --streets-text-secondary: #666666;
    --streets-text-muted: #999999;
    
    /* Border and layout */
    --streets-border: #e0e0e0;
    --streets-border-radius: 8px;
    --streets-border-width: 1px;
    
    /* Typography */
    --streets-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --streets-font-size: 14px;
    --streets-font-weight: 400;
    --streets-font-weight-bold: 600;
    
    /* Spacing */
    --streets-spacing: 1rem;
    --streets-padding: 1.5rem;
    --streets-margin: 0;
    
    /* Effects */
    --streets-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --streets-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    --streets-transition: all 0.2s ease;
    
    /* Apply base styles using CSS variables */
    font-family: var(--streets-font);
    font-size: var(--streets-font-size);
    line-height: 1.5;
    color: var(--streets-text);
    background-color: var(--streets-bg);
    border-radius: var(--streets-border-radius);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: var(--streets-transition);
}

.streets-embed-widget *,
.streets-embed-widget *::before,
.streets-embed-widget *::after {
    box-sizing: border-box;
}

/* Loading state */
.streets-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
    font-size: 14px;
}

.streets-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #038882;
    border-radius: 50%;
    animation: streets-spin 1s linear infinite;
}

@keyframes streets-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Widget Styles */
.streets-embed-button-widget {
    display: inline-block;
    text-align: center;
}

.streets-embed-button {
    background: var(--streets-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--streets-border-radius);
    font-size: 16px;
    font-weight: var(--streets-font-weight-bold);
    font-family: var(--streets-font);
    cursor: pointer;
    transition: var(--streets-transition);
    width: 100%;
    max-width: 300px;
    box-shadow: var(--streets-shadow);
}

.streets-embed-button:hover {
    background: var(--streets-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--streets-shadow-hover);
}

.streets-embed-button:active {
    transform: translateY(0);
    box-shadow: var(--streets-shadow);
}

.streets-embed-button:focus {
    outline: 2px solid var(--streets-primary-light);
    outline-offset: 2px;
}

.streets-embed-button.small {
    padding: 8px 16px;
    font-size: 14px;
    max-width: 200px;
}

.streets-embed-button.large {
    padding: 16px 32px;
    font-size: 18px;
    max-width: 400px;
}

.button-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.button-price {
    font-weight: 700;
    opacity: 0.9;
}

/* Inline Widget Styles */
.streets-embed-inline-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.inline-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    max-height: 600px;
    overflow-y: auto;
}

/* Full Layout Styles */
.full-layout {
    gap: 1.5rem;
}

/* Compact Layout Styles */
.compact-layout {
    gap: 1rem;
    padding: 1.5rem;
    min-height: auto;
    min-width: 300px; /* Ensure minimum width */
}

.compact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compact-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info {
    flex: 1;
    min-width: 0;
}

.compact-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--streets-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--streets-primary);
    margin: 0;
}

.compact-checkout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.compact-button {
    padding: 0.75rem 1rem !important;
    font-size: 14px !important;
    font-weight: 600;
}

/* Promo Code Section Styles */
.promo-code-section {
    margin: 1rem 0 1.5rem 0;
    padding: 1rem;
    background: var(--streets-card-bg);
    border-radius: 8px;
    border: 1px solid var(--streets-border);
}

.promo-code-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--streets-text);
}

.promo-code-input-group {
    display: block;
}

.promo-code-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--streets-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    background: var(--streets-bg);
    color: var(--streets-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.promo-code-input:focus {
    outline: none;
    border-color: var(--streets-primary);
    box-shadow: 0 0 0 2px var(--streets-primary-light);
}

.promo-code-input.valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.promo-code-input.invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.promo-code-feedback {
    font-size: 12px;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
}

.promo-code-feedback.success {
    color: #28a745;
}

.promo-code-feedback.error {
    color: #dc3545;
}

/* Dark theme for promo code */
.streets-embed-widget[data-theme="dark"] .promo-code-section {
    background: rgba(45, 55, 72, 0.7);
    border-color: #4a5568;
}

.streets-embed-widget[data-theme="dark"] .promo-code-section h4 {
    color: #e5e7eb;
}

.streets-embed-widget[data-theme="dark"] .promo-code-input {
    background: #1a1a1a;
    border-color: #4a5568;
    color: #e5e7eb;
}

.streets-embed-widget[data-theme="dark"] .promo-code-input:focus {
    border-color: #4ADEDB;
    box-shadow: 0 0 0 2px rgba(74, 222, 219, 0.2);
}

/* Options Section Styles */
.options-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--streets-bg);
    border-radius: 8px;
    border: 1px solid var(--streets-border);
    max-height: 300px;
    overflow-y: auto;
}

.options-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--streets-text);
}

.option-group {
    margin-bottom: 1rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--streets-text);
    font-size: 14px;
}

.option-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--streets-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--streets-card-bg);
    color: var(--streets-text);
    transition: border-color 0.2s ease;
}

.option-input:focus {
    outline: none;
    border-color: var(--streets-primary);
    box-shadow: 0 0 0 2px var(--streets-primary-light);
}

.option-input.text-option {
    min-height: 80px;
    resize: vertical;
}

.option-input.multi-option {
    min-height: 100px;
}

.option-input:required {
    border-left: 3px solid var(--streets-secondary);
}

/* Reservation Section Styles */
.reservation-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--streets-bg);
    border-radius: 8px;
    border: 1px solid var(--streets-border);
    min-height: fit-content;
    overflow: visible; /* Removed fixed height and scrolling */
}

.reservation-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--streets-text);
}

.reservation-group {
    margin-bottom: 1rem;
}

.reservation-group:last-child {
    margin-bottom: 0;
}

.reservation-note {
    color: var(--streets-text-muted);
    font-size: 12px;
    display: block;
    margin-top: 0.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.event-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #038882;
}

.event-date {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.event-location {
    color: #666;
    font-size: 0.9rem;
}

.seller-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seller-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.seller-about {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.ticket-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.ticket-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.ticket-input:focus {
    outline: none;
    border-color: #038882;
    box-shadow: 0 0 0 2px rgba(3, 136, 130, 0.1);
}

/* Multiple Ticket Selector Styles */
.multiple-ticket-selector {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--streets-card-bg);
    border-radius: var(--streets-border-radius);
    border: 1px solid var(--streets-border);
}

.multiple-ticket-selector h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--streets-text);
}

.ticket-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--streets-bg);
    border-radius: var(--streets-border-radius);
    border: 1px solid var(--streets-border);
}

.ticket-option:last-child {
    margin-bottom: 0;
}

.ticket-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ticket-name {
    font-weight: 600;
    color: var(--streets-text);
}

.ticket-price {
    font-size: 0.9em;
    color: var(--streets-primary);
    font-weight: 600;
}

.ticket-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.ticket-quantity label {
    font-size: 0.8em;
    color: var(--streets-text-secondary);
    margin: 0;
}

.ticket-quantity-input {
    padding: 0.5rem;
    border: 1px solid var(--streets-border);
    border-radius: var(--streets-border-radius);
    font-size: var(--streets-font-size);
    background: var(--streets-bg);
    color: var(--streets-text);
    min-width: 60px;
    transition: var(--streets-transition);
}

.ticket-quantity-input:focus {
    outline: none;
    border-color: var(--streets-primary);
    box-shadow: 0 0 0 2px rgba(3, 136, 130, 0.1);
}

/* Responsive adjustments for ticket options */
@media (max-width: 480px) {
    .ticket-option {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .ticket-quantity {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.quantity-note {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.checkout-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkout-text {
    flex: 1;
}

.checkout-price {
    font-weight: 700;
    font-size: 1.1em;
}

/* Compact Layout Styles */
.compact-layout {
    gap: 1rem;
}

.compact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compact-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info {
    flex: 1;
    min-width: 0;
}

.compact-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: inherit;
    line-height: 1.3;
}

.compact-price {
    font-size: 1rem;
    font-weight: 600;
    color: #038882;
}

.compact-checkout {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.compact-checkout .quantity-selector {
    flex-shrink: 0;
    min-width: 120px;
}

.compact-button {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    font-size: 14px;
}

.item-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: inherit;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #038882;
    margin-bottom: 1rem;
}

.item-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.checkout-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector label {
    font-weight: 600;
    color: #555;
}

.quantity-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 80px;
}

.quantity-input:focus {
    outline: none;
    border-color: #038882;
    box-shadow: 0 0 0 2px rgba(3, 136, 130, 0.1);
}

.checkout-button {
    background: var(--streets-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--streets-border-radius);
    font-size: 16px;
    font-weight: var(--streets-font-weight-bold);
    font-family: var(--streets-font);
    cursor: pointer;
    transition: var(--streets-transition);
    width: 100%;
    box-shadow: var(--streets-shadow);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-button:hover:not(:disabled):not(.disabled) {
    background: var(--streets-primary-hover);
    box-shadow: var(--streets-shadow-hover);
}

.checkout-button:disabled,
.checkout-button.disabled {
    background: var(--streets-text-muted) !important;
    color: var(--streets-bg) !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
    transform: none !important;
}

.checkout-button.loading {
    background: var(--streets-primary) !important;
    color: white !important;
    opacity: 0.8;
    cursor: not-allowed;
}

.checkout-button.view-mode {
    background: var(--streets-secondary, #6c757d) !important;
    color: white !important;
    opacity: 1;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkout-button:focus {
    outline: 2px solid var(--streets-primary-light);
    outline-offset: 2px;
}

/* Modal Styles */
.streets-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.streets-modal {
    background: white;
    border-radius: 16px;
    max-width: 800px; /* Increased from 500px */
    width: 100%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.streets-modal.small {
    max-width: 400px;
}

.streets-modal.large {
    max-width: 900px; /* Increased from 600px */
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(95vh - 140px); /* Account for header height */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

/* WebKit scrollbar styling for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
}

.modal-image {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #038882;
    text-align: center;
    padding: 1rem;
    background: #f0f9f9;
    border-radius: 8px;
}

.quantity-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quantity-section label {
    font-weight: 600;
    color: #555;
}

.modal-checkout-button {
    background: #038882;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.modal-checkout-button:hover {
    background: #026b65;
}

.modal-checkout-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-checkout-button.loading {
    background: #038882 !important;
    color: white !important;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Branding */
.streets-branding,
.modal-branding {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.modal-branding {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    margin: 0;
    border-top: 1px solid #e0e0e0;
}

.streets-branding strong,
.modal-branding strong {
    color: #038882;
}

/* Enhanced Error States */
.streets-embed-error {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--streets-border-radius);
    color: #6c757d;
    gap: 1rem;
    min-height: 120px;
}

.streets-embed-error .error-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.streets-embed-error .error-content {
    flex: 1;
}

.streets-embed-error .error-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.streets-embed-error .error-message {
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

.streets-embed-error .error-retry,
.streets-embed-error .error-report {
    background: #038882;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--streets-transition);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.streets-embed-error .error-retry:hover {
    background: #026b65;
}

.streets-embed-error .error-report {
    background: #6c757d;
}

.streets-embed-error .error-report:hover {
    background: #5a6268;
}

/* Specific error type styling */
.streets-embed-error.error-network {
    border-left: 4px solid #17a2b8;
    background: #e1f7fa;
}

.streets-embed-error.error-network .error-icon {
    color: #17a2b8;
}

.streets-embed-error.error-api {
    border-left: 4px solid #ffc107;
    background: #fffbee;
}

.streets-embed-error.error-api .error-icon {
    color: #ffc107;
}

.streets-embed-error.error-validation {
    border-left: 4px solid #dc3545;
    background: #ffeaea;
}

.streets-embed-error.error-validation .error-icon {
    color: #dc3545;
}

.streets-embed-error.error-security {
    border-left: 4px solid #6f42c1;
    background: #f3f0ff;
}

.streets-embed-error.error-security .error-icon {
    color: #6f42c1;
}

.streets-embed-error.error-not-found {
    border-left: 4px solid #28a745;
    background: #f0f8f0;
}

.streets-embed-error.error-not-found .error-icon {
    color: #28a745;
}

.streets-embed-error.error-rate-limit {
    border-left: 4px solid #fd7e14;
    background: #fff5f0;
}

.streets-embed-error.error-rate-limit .error-icon {
    color: #fd7e14;
}

.streets-embed-error.error-maintenance {
    border-left: 4px solid #6c757d;
    background: #f8f9fa;
}

.streets-embed-error.error-maintenance .error-icon {
    color: #6c757d;
}

.streets-embed-error.error-timeout {
    border-left: 4px solid #e83e8c;
    background: #fff0f6;
}

.streets-embed-error.error-timeout .error-icon {
    color: #e83e8c;
}

/* Theme Variations */

/* Dark Theme */
.streets-embed-widget[data-theme="dark"] {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #374151;
}

.streets-embed-widget[data-theme="dark"] .streets-embed-button {
    background: #4ADEDB;
    color: #1a1a1a;
}

.streets-embed-widget[data-theme="dark"] .streets-embed-button:hover {
    background: #2dd4bf;
}

.streets-embed-widget[data-theme="dark"] .item-price {
    color: #4ADEDB;
}

.streets-embed-widget[data-theme="dark"] .checkout-button {
    background: #4ADEDB;
    color: #1a1a1a;
}

.streets-embed-widget[data-theme="dark"] .checkout-button:hover {
    background: #2dd4bf;
}

.streets-embed-widget[data-theme="dark"] .quantity-input {
    background: #2d3748;
    border-color: #4a5568;
    color: white;
}

.streets-embed-widget[data-theme="dark"] .checkout-section {
    border-color: #374151;
}

.streets-modal-overlay[data-theme="dark"] .streets-modal {
    background: #1a1a1a;
    color: white;
}

.streets-modal-overlay[data-theme="dark"] .modal-header {
    background: #2d3748;
    border-color: #374151;
}

.streets-modal-overlay[data-theme="dark"] .modal-header h2 {
    color: white;
}

.streets-modal-overlay[data-theme="dark"] .modal-close {
    color: #a0aec0;
}

.streets-modal-overlay[data-theme="dark"] .modal-close:hover {
    background: #4a5568;
    color: white;
}

.streets-modal-overlay[data-theme="dark"] .item-price-display {
    background: #2d3748;
    color: #4ADEDB;
}

.streets-modal-overlay[data-theme="dark"] .quantity-section {
    background: #2d3748;
}

.streets-modal-overlay[data-theme="dark"] .quantity-input {
    background: #1a1a1a;
    border-color: #4a5568;
    color: white;
}

.streets-modal-overlay[data-theme="dark"] .modal-checkout-button {
    background: #4ADEDB;
    color: #1a1a1a;
}

.streets-modal-overlay[data-theme="dark"] .modal-checkout-button:hover {
    background: #2dd4bf;
}

.streets-modal-overlay[data-theme="dark"] .modal-branding {
    background: #2d3748;
    border-color: #374151;
}

/* Dark theme for options and reservation sections */
.streets-embed-widget[data-theme="dark"] .options-section,
.streets-embed-widget[data-theme="dark"] .reservation-section,
.streets-embed-widget[data-theme="dark"] .ticket-options-section,
.streets-embed-widget[data-theme="dark"] .ticket-reservation-section {
    background: #2d3748;
    border-color: #4a5568;
    color: white;
}

.streets-embed-widget[data-theme="dark"] .options-section h4,
.streets-embed-widget[data-theme="dark"] .reservation-section h4,
.streets-embed-widget[data-theme="dark"] .ticket-options-section h4,
.streets-embed-widget[data-theme="dark"] .ticket-reservation-section h4 {
    color: white;
}

.streets-embed-widget[data-theme="dark"] .multiple-ticket-selector {
    background: #2d3748;
    border-color: #4a5568;
    color: white;
}

.streets-embed-widget[data-theme="dark"] .ticket-option {
    background: #374151;
    border-color: #4a5568;
    color: white;
}

.streets-embed-widget[data-theme="dark"] .ticket-name,
.streets-embed-widget[data-theme="dark"] .ticket-price {
    color: white;
}

.streets-embed-widget[data-theme="dark"] .ticket-quantity-input {
    background: #1a1a1a;
    border-color: #4a5568;
    color: white;
}

.streets-embed-widget[data-theme="dark"] .option-label {
    color: white;
}

.streets-embed-widget[data-theme="dark"] .option-input,
.streets-embed-widget[data-theme="dark"] .reservation-input {
    background: #1a1a1a;
    border-color: #4a5568;
    color: white;
}

.streets-embed-widget[data-theme="dark"] .reservation-loading {
    color: #4ADEDB;
}

/* Additional dark theme for ticket selector */
.streets-embed-widget[data-theme="dark"] .multiple-ticket-selector h4 {
    color: white;
}

.streets-embed-widget[data-theme="dark"] .ticket-info {
    color: #e5e7eb;
}

.streets-embed-widget[data-theme="dark"] .ticket-quantity label {
    color: #e5e7eb;
}

/* Dark theme for date/location containers */
.streets-embed-widget[data-theme="dark"] .hero-date,
.streets-embed-widget[data-theme="dark"] .hero-location,
.streets-embed-widget[data-theme="dark"] .showcase-date,
.streets-embed-widget[data-theme="dark"] .showcase-location,
.streets-embed-widget[data-theme="dark"] .card-date,
.streets-embed-widget[data-theme="dark"] .card-location {
    color: #495057;
}

.streets-embed-widget[data-theme="dark"] .minimal-date,
.streets-embed-widget[data-theme="dark"] .stunning-date,
.streets-embed-widget[data-theme="dark"] .stunning-location,
.streets-embed-widget[data-theme="dark"] .event-date,
.streets-embed-widget[data-theme="dark"] .event-location,
.streets-embed-widget[data-theme="dark"] .event-details {
    color: #e5e7eb;
    background: transparent;
    border-color: #4a5568;
}

/* Dark theme for seller/organizer containers */
.streets-embed-widget[data-theme="dark"] .card-seller,
.streets-embed-widget[data-theme="dark"] .showcase-seller,
.streets-embed-widget[data-theme="dark"] .stunning-seller,
.streets-embed-widget[data-theme="dark"] .seller-info {
    background: rgba(45, 55, 72, 0.7);
    border-color: #4a5568;
    color: #e5e7eb;
}

.streets-embed-widget[data-theme="dark"] .seller-name,
.streets-embed-widget[data-theme="dark"] .showcase-seller-name,
.streets-embed-widget[data-theme="dark"] .stunning-seller-name {
    color: #e5e7eb;
}

/* Dark theme for showcase layout cards */
.streets-embed-widget[data-theme="dark"] .showcase-content-section {
    background: #2d3748;
    color: #e5e7eb;
}

.streets-embed-widget[data-theme="dark"] .showcase-title {
    color: white;
}

.streets-embed-widget[data-theme="dark"] .showcase-price {
    color: #4ADEDB;
}

.streets-embed-widget[data-theme="dark"] .showcase-description {
    color: #e5e7eb;
}

/* Minimal Theme */
.streets-embed-widget[data-theme="minimal"] {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.streets-embed-widget[data-theme="minimal"] .streets-embed-button {
    background: #6c757d;
    color: white;
}

.streets-embed-widget[data-theme="minimal"] .streets-embed-button:hover {
    background: #5a6268;
}

.streets-embed-widget[data-theme="minimal"] .item-price {
    color: #28a745;
}

.streets-embed-widget[data-theme="minimal"] .checkout-button {
    background: #28a745;
    color: white;
}

.streets-embed-widget[data-theme="minimal"] .checkout-button:hover {
    background: #218838;
}

/* Minimal Layout Structure */
.minimal-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.minimal-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.minimal-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.minimal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minimal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.minimal-info {
    flex: 1;
}

.minimal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.minimal-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.minimal-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--streets-primary);
    margin-bottom: 0.5rem;
}

.minimal-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.minimal-button {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Compact Layout Structure */
.compact-layout {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-width: 350px; /* Ensure proper width on desktop */
    width: 100%; /* Allow full expansion */
    padding: 1rem;
}

.compact-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

.compact-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compact-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.compact-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--streets-primary);
    margin-bottom: 0.5rem;
}

.compact-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.compact-checkout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compact-button {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Compact layout without image - better space utilization */
.compact-no-image .compact-info {
    padding-right: 0;
    width: 100%;
}

.compact-no-image .compact-name {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.compact-no-image .compact-price {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--streets-primary);
}

/* Enhanced content for no-image compact layout */
.compact-enhanced-content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.compact-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.compact-date {
    font-size: 0.85rem;
    color: var(--streets-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.compact-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.25rem;
}

.compact-seller {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* Dark theme for compact enhanced content */
.streets-embed-widget[data-theme="dark"] .compact-enhanced-content {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.streets-embed-widget[data-theme="dark"] .compact-description {
    color: #e5e7eb;
}

.streets-embed-widget[data-theme="dark"] .compact-date {
    color: #4ADEDB;
}

.streets-embed-widget[data-theme="dark"] .compact-location {
    color: #d1d5db;
}

.streets-embed-widget[data-theme="dark"] .compact-seller {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .streets-modal {
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .streets-embed-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .streets-embed-button.large {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .item-name {
        font-size: 1.25rem;
    }
    
    .item-price-display {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
    
    .modal-checkout-button {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    /* Inline widget mobile adjustments */
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .event-details {
        padding: 0.75rem;
    }
    
    .seller-info {
        padding: 0.75rem;
    }
    
    .compact-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .compact-checkout {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .compact-checkout .quantity-selector {
        min-width: auto;
        width: 100%;
    }
    
    /* Allow compact layout to shrink on mobile */
    .compact-layout {
        min-width: 280px; /* Smaller minimum on mobile */
    }
}

@media (max-width: 480px) {
    .streets-modal-overlay {
        padding: 0.5rem;
    }
    
    .streets-modal {
        max-width: 95vw;
        margin: 1rem auto;
    }
    
    .stunning-modal-container {
        max-width: 95vw;
        width: 95vw;
        margin: 1rem auto;
        border-radius: 16px;
    }
    
    .modal-header,
    .stunning-modal-header {
        padding: 1.5rem;
    }
    
    .modal-body,
    .stunning-modal-content {
        padding: 1.5rem;
        max-height: calc(90vh - 120px);
    }
    
    .inline-content {
        gap: 0.75rem;
    }
    
    .checkout-section {
        padding-top: 0.75rem;
        gap: 0.75rem;
    }
    
    .quantity-section {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .button-content {
        flex-direction: column;
        gap: 4px;
    }
    
    .button-price {
        font-size: 0.9em;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .streets-embed-widget {
        border: 2px solid currentColor;
    }
    
    .streets-embed-button,
    .checkout-button,
    .modal-checkout-button {
        border: 2px solid transparent;
    }
    
    .streets-embed-button:focus,
    .checkout-button:focus,
    .modal-checkout-button:focus {
        outline: 3px solid #0066cc;
        outline-offset: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .streets-embed-button,
    .checkout-button,
    .modal-checkout-button,
    .modal-close {
        transition: none;
    }
    
    .streets-loading::after {
        animation: none;
    }
    
    .streets-embed-button:hover {
        transform: none;
    }
}

/* Manual reduced motion class */
.streets-reduced-motion,
.streets-reduced-motion * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* High contrast mode */
.streets-high-contrast {
    --streets-primary: #000000;
    --streets-primary-hover: #333333;
    --streets-bg: #ffffff;
    --streets-text: #000000;
    --streets-border: #000000;
    border: 2px solid var(--streets-border) !important;
}

.streets-high-contrast .streets-embed-button,
.streets-high-contrast .checkout-button {
    border: 2px solid #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

.streets-high-contrast .streets-embed-button:hover,
.streets-high-contrast .checkout-button:hover {
    background: #333333 !important;
}

/* Premium features */
.streets-premium .streets-branding,
.streets-premium .modal-branding {
    display: none !important;
}

/* Advanced theming classes */
.streets-theme-custom {
    /* Custom themes can override any CSS variables */
    color: inherit;
}

/* Dynamic CSS injection support */
.streets-embed-widget[data-custom-theme] {
    /* Placeholder for dynamically injected themes */
    color: inherit;
}

/* CSS Variables Override System */
.streets-embed-widget[style*="--streets-primary"] {
    /* When primary color is overridden via inline styles */
    color: inherit;
}

.streets-embed-widget[style*="--streets-bg"] {
    /* When background is overridden via inline styles */
    color: inherit;
}

/* Flexible spacing system */
.streets-spacing-compact {
    --streets-spacing: 0.5rem;
    --streets-padding: 1rem;
}

.streets-spacing-comfortable {
    --streets-spacing: 1.5rem;
    --streets-padding: 2rem;
}

.streets-spacing-loose {
    --streets-spacing: 2rem;
    --streets-padding: 2.5rem;
}

/* Typography scale system */
.streets-text-small {
    --streets-font-size: 12px;
}

.streets-text-large {
    --streets-font-size: 16px;
}

.streets-text-extra-large {
    --streets-font-size: 18px;
}

/* Border radius variants */
.streets-rounded-none {
    --streets-border-radius: 0;
}

.streets-rounded-small {
    --streets-border-radius: 4px;
}

.streets-rounded-large {
    --streets-border-radius: 16px;
}

.streets-rounded-full {
    --streets-border-radius: 9999px;
}

/* Shadow variants */
.streets-shadow-none {
    --streets-shadow: none;
    --streets-shadow-hover: none;
}

.streets-shadow-small {
    --streets-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --streets-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.streets-shadow-large {
    --streets-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    --streets-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Animation speed variants */
.streets-transition-fast {
    --streets-transition: all 0.1s ease;
}

.streets-transition-slow {
    --streets-transition: all 0.5s ease;
}

/* Utility classes for common customizations */
.streets-full-width {
    width: 100% !important;
    max-width: none !important;
}

.streets-center {
    margin: 0 auto !important;
    text-align: center !important;
}

.streets-left {
    text-align: left !important;
}

.streets-right {
    text-align: right !important;
}

/* =============================================
   STUNNING LAYOUTS - HERO STYLE
   ============================================= */

.hero-layout {
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1;
    clear: both;
}

.hero-background {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 300px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    padding: 2rem;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: var(--streets-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.hero-date, .hero-location {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: white;
    opacity: 0.9;
}

.hero-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    opacity: 0.9;
    margin: 1rem 0 0 0;
}

.hero-actions {
    padding: 2rem;
    background: var(--streets-bg);
    flex: 1;
    position: relative;
    z-index: 3;
}

.hero-button {
    background: var(--streets-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(3, 136, 130, 0.3);
}

.hero-button:hover {
    background: var(--streets-gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(3, 136, 130, 0.4);
}

.button-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
}

/* =============================================
   STUNNING LAYOUTS - CARD STYLE
   ============================================= */

.card-layout {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--streets-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    clear: both;
}

.card-layout:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-layout:hover .card-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--streets-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-price-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--streets-text);
}

.card-date, .card-location {
    font-size: 0.9rem;
    color: var(--streets-text-secondary);
    margin: 0.25rem 0;
}

.card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--streets-text-secondary);
    margin: 1rem 0;
}

.card-seller {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--streets-card-bg);
    border-radius: 10px;
}

.seller-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name {
    font-size: 0.9rem;
    color: var(--streets-text-secondary);
    font-weight: 500;
}

.card-actions {
    margin-top: 1.5rem;
}

.card-button {
    background: var(--streets-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: var(--streets-primary-hover);
    transform: translateY(-1px);
}

/* =============================================
   STUNNING LAYOUTS - MINIMAL STYLE
   ============================================= */

.minimal-layout {
    border-radius: 12px;
    overflow: hidden; /* Changed back to hidden to contain content */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--streets-bg);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    clear: both;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
}

.minimal-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.minimal-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.minimal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.minimal-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.minimal-info {
    flex: 1;
}

.minimal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--streets-text);
}

.minimal-date {
    font-size: 0.9rem;
    color: var(--streets-text-secondary);
    margin: 0.25rem 0;
}

.minimal-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--streets-primary);
    margin: 0.25rem 0 0 0;
}

.minimal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.minimal-button {
    background: var(--streets-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.minimal-button:hover {
    background: var(--streets-primary-hover);
    transform: translateY(-1px);
}

/* =============================================
   STUNNING LAYOUTS - SHOWCASE STYLE
   ============================================= */

.showcase-layout {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--streets-bg);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    clear: both;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.showcase-grid.showcase-no-image {
    grid-template-columns: 1fr;
}

.showcase-image-section {
    position: relative;
    background: var(--streets-card-bg);
}

.showcase-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
}

.showcase-type-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--streets-primary);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.showcase-content-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.showcase-header {
    margin-bottom: 1.5rem;
}

.showcase-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--streets-text);
    line-height: 1.2;
}

.showcase-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--streets-primary);
}

.showcase-meta {
    margin: 1.5rem 0;
}

.showcase-date, .showcase-location {
    font-size: 1rem;
    color: var(--streets-text-secondary);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-seller {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--streets-card-bg);
    border-radius: 12px;
}

.showcase-seller-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.showcase-seller-name {
    font-weight: 600;
    color: var(--streets-text);
}

.showcase-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--streets-text-secondary);
    margin: 1rem 0;
}

.showcase-actions {
    margin-top: auto;
}

.showcase-actions .promo-code-section {
    margin-bottom: 2rem;
}

/* Consistent promo code spacing across all layouts */
.hero-actions .promo-code-section,
.card-actions .promo-code-section {
    margin-bottom: 1.5rem;
}

.minimal-actions .promo-code-section {
    margin-bottom: 1rem;
}

.showcase-button {
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(3, 136, 130, 0.3);
}

.showcase-button:hover {
    background: var(--streets-gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(3, 136, 130, 0.4);
}

.showcase-button-icon {
    font-size: 1.5rem;
}

.showcase-button-text {
    font-weight: 700;
}

/* =============================================
   STUNNING MODAL STYLES
   ============================================= */

.stunning-modal {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.stunning-modal-container {
    position: relative;
    max-width: 1000px; /* Increased from 900px */
    width: 95vw;
    max-height: 95vh;
    margin: 2.5vh auto;
    background: var(--streets-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stunning-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.stunning-modal-close:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.stunning-modal-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stunning-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    color: white;
}

.stunning-hero-content {
    flex: 1;
}

.stunning-badge {
    display: inline-block;
    background: var(--streets-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stunning-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stunning-date, .stunning-location {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.stunning-seller {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.stunning-seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stunning-seller-name {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stunning-price-display {
    text-align: right;
}

.stunning-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--streets-secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stunning-modal-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stunning-modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    max-height: calc(90vh - 140px); /* Account for header/footer */
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

/* WebKit scrollbar styling for stunning modal */
.stunning-modal-content::-webkit-scrollbar {
    width: 8px;
}

.stunning-modal-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.stunning-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 4px;
}

.stunning-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
}

.stunning-description {
    margin-bottom: 2rem;
}

.stunning-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--streets-text);
}

.stunning-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--streets-text-secondary);
}

.stunning-booking-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--streets-text);
}

.stunning-booking-form {
    background: var(--streets-card-bg);
    border-radius: 15px;
    padding: 1.5rem;
}

.stunning-quantity-section {
    margin-bottom: 1.5rem;
}

.stunning-quantity-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--streets-text);
}

.stunning-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--streets-border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--streets-bg);
    color: var(--streets-text);
}

.stunning-modal-footer {
    padding: 2rem;
    background: var(--streets-card-bg);
    border-top: 1px solid var(--streets-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.stunning-total-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stunning-total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--streets-text);
}

.stunning-total-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--streets-primary);
}

.stunning-checkout-button {
    background: var(--streets-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(3, 136, 130, 0.3);
    min-width: 250px;
    justify-content: center;
}

.stunning-checkout-button:hover {
    background: var(--streets-gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(3, 136, 130, 0.4);
}

.stunning-button-icon {
    font-size: 1.3rem;
}

.stunning-button-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 700;
}

.stunning-modal-branding {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--streets-text-secondary);
    opacity: 0.7;
}

/* Fix scrolling and overflow issues in widgets */
.inline-content {
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 400px;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
}

.stunning-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 90vw;
    max-width: 900px; /* Increased from default */
}

.widget-container {
    max-height: none !important;
    overflow: visible !important;
    min-height: fit-content;
}

/* Ensure proper layout for inline widgets */
.streets-embed-widget {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    clear: both;
    min-height: fit-content;
}

/* Ensure inline widgets with fixed height can scroll */
.streets-embed-widget[data-streets-widget="inline"] {
    overflow-y: auto;
    overflow-x: hidden;
}

.streets-embed-widget[data-streets-widget="inline"] .inline-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    box-sizing: border-box;
    max-height: none;
}

/* Ensure scrollable content for fixed height widgets */
.streets-embed-inline-widget[style*="height"] {
    overflow-y: auto;
    overflow-x: hidden;
}

.streets-embed-inline-widget[style*="height"] .inline-content {
    max-height: calc(100% - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.streets-embed-inline-widget {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    clear: both;
    z-index: 1;
    min-height: fit-content;
    overflow: visible;
}

/* Additional styles for options and reservations sections */
.options-section,
.reservation-section,
.ticket-options-section,
.ticket-reservation-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Ensure reservation sections stay within all inline layout bounds */
.streets-embed-widget[data-streets-widget="inline"] .reservation-section,
.streets-embed-widget[data-streets-widget="inline"] .options-section,
.streets-embed-widget[data-streets-widget="inline"] .ticket-reservation-section,
.streets-embed-widget[data-streets-widget="inline"] .ticket-options-section,
.streets-embed-widget[data-streets-widget="inline"] .multiple-ticket-selector {
    margin: 0.5rem 0 1rem 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    overflow: hidden;
}

/* Ensure buttons within inline widgets don't overflow */
.streets-embed-widget[data-streets-widget="inline"] .reservation-section button,
.streets-embed-widget[data-streets-widget="inline"] .options-section button,
.streets-embed-widget[data-streets-widget="inline"] .ticket-reservation-section button,
.streets-embed-widget[data-streets-widget="inline"] .ticket-options-section button,
.streets-embed-widget[data-streets-widget="inline"] .checkout-button,
.streets-embed-widget[data-streets-widget="inline"] .minimal-button,
.streets-embed-widget[data-streets-widget="inline"] .ticket-quantity-controls button {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
}

/* Ensure minimal layout has proper internal spacing */
.minimal-layout .minimal-actions {
    padding: 0 1rem 1rem 1rem;
    box-sizing: border-box;
}

/* Specific fixes for minimal layout */
.minimal-layout .reservation-section,
.minimal-layout .options-section,
.minimal-layout .ticket-reservation-section,
.minimal-layout .ticket-options-section {
    margin: 0.5rem 1rem 1rem 1rem;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
}

.multiple-ticket-selector {
    margin-bottom: 1.5rem;
}

.ticket-option {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--streets-card-bg);
    border-radius: 8px;
    border: 1px solid var(--streets-border);
}

/* Ensure proper spacing for widget content */
.inline-content > *:last-child {
    margin-bottom: 0;
}

.hero-layout,
.showcase-layout,
.card-layout {
    min-height: auto; /* Allow content to determine height */
    overflow: visible;
}

.minimal-layout {
    min-height: auto; /* Allow content to determine height */
    overflow: visible; /* Allow expansion for options/reservations */
}

/* When minimal layout has options/reservations, allow it to expand */
.minimal-layout:has(.reservation-section),
.minimal-layout:has(.options-section),
.minimal-layout:has(.ticket-reservation-section),
.minimal-layout:has(.ticket-options-section),
.minimal-layout:has(.multiple-ticket-selector) {
    min-height: 300px; /* Minimum height for complex content */
    height: auto !important; /* Override any fixed height */
    overflow: visible;
}

/* Alternative approach for browsers that don't support :has() */
.minimal-layout.has-complex-content {
    min-height: 300px;
    height: auto !important;
    overflow: visible;
}

.hero-actions,
.showcase-actions,
.card-actions,
.minimal-actions {
    margin-top: auto; /* Push actions to bottom */
}

/* Responsive adjustments for stunning layouts */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .showcase-image-section {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
        color: white !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
    }
    
    .hero-content {
        padding: 1rem;
        max-width: 100%;
    }
    
    .stunning-title {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .minimal-container {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        overflow: visible;
    }
    
    .minimal-content {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        overflow: visible;
    }
    
    .minimal-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .minimal-layout {
        width: 100%;
        overflow: visible; /* Allow expansion on mobile too */
        min-height: fit-content;
    }
    
    .stunning-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stunning-checkout-button {
        width: 100%;
    }
}

/* ===== CONTACT EMBED WIDGETS ===== */

/* Contact Button Styles */
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--streets-font);
    font-weight: var(--streets-font-weight-bold);
    text-decoration: none;
    border: none;
    border-radius: var(--streets-border-radius);
    cursor: pointer;
    transition: var(--streets-transition);
    box-shadow: var(--streets-shadow);
    white-space: nowrap;
}

.contact-button:hover {
    box-shadow: var(--streets-shadow-hover);
    transform: translateY(-1px);
}

.contact-button:active {
    transform: translateY(0);
}

.contact-button.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.contact-button.medium {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.contact-button.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Contact Form Container */
.contact-form-container {
    font-family: var(--streets-font);
    line-height: 1.5;
}

.contact-form-container * {
    box-sizing: border-box;
}

/* Contact Form Styles */
.contact-form {
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--streets-font-weight-bold);
    color: var(--streets-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: var(--streets-border-width) solid var(--streets-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--streets-font);
    transition: var(--streets-transition);
    background: var(--streets-bg);
    color: var(--streets-text);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--streets-primary);
    box-shadow: 0 0 0 3px rgba(3, 136, 130, 0.1);
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder {
    color: var(--streets-text-muted);
}

/* Bootstrap-style validation classes (like checkout.js) */
.contact-form input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.contact-form input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Consent Section */
.consent-section {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.consent-section .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.consent-section .form-check:last-child {
    margin-bottom: 0;
}

.consent-section input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.125rem; /* Align with first line of text */
}

.consent-section label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.consent-section p {
    font-size: 0.8rem;
    color: var(--streets-text-secondary);
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
}

/* Contact Submit Button */
.contact-submit-btn {
    width: 100%;
    background: var(--streets-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: var(--streets-font-weight-bold);
    font-family: var(--streets-font);
    cursor: pointer;
    transition: var(--streets-transition);
}

.contact-submit-btn:hover {
    background: var(--streets-primary-hover);
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Success/Error Messages */
.contact-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

/* SMS Unavailable Container */
.sms-unavailable-container {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--streets-font);
}

.sms-unavailable-container h3 {
    margin: 0 0 1rem 0;
    color: #856404;
}

.sms-unavailable-container p {
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.sms-unavailable-container a {
    display: inline-block;
    background: var(--streets-primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: var(--streets-font-weight-bold);
    transition: var(--streets-transition);
}

.sms-unavailable-container a:hover {
    background: var(--streets-primary-hover);
    transform: translateY(-1px);
}

/* Phone Input Error Styling */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* International Phone Input Overrides */
.iti {
    width: 100% !important;
}

.iti__country-list {
    z-index: 10001 !important; /* Above modals */
}

/* Contact Modal Specific Styles */
.contact-modal .contact-form-container {
    padding: 2rem;
}

/* Dark Theme for Contact Widgets */
.streets-embed-widget[data-theme="dark"] .contact-form-container {
    background: #1a1a1a;
    color: #ffffff;
}

.streets-embed-widget[data-theme="dark"] .contact-form input[type="text"],
.streets-embed-widget[data-theme="dark"] .contact-form input[type="email"],
.streets-embed-widget[data-theme="dark"] .contact-form input[type="tel"] {
    background: #2d3748;
    border-color: #374151;
    color: #ffffff;
}

.streets-embed-widget[data-theme="dark"] .contact-form input[type="text"]:focus,
.streets-embed-widget[data-theme="dark"] .contact-form input[type="email"]:focus,
.streets-embed-widget[data-theme="dark"] .contact-form input[type="tel"]:focus {
    border-color: #4ADEDB;
    box-shadow: 0 0 0 3px rgba(74, 222, 219, 0.1);
}

.streets-embed-widget[data-theme="dark"] .consent-section {
    background: rgba(255, 255, 255, 0.1);
}

.streets-embed-widget[data-theme="dark"] .consent-section p {
    color: #a0aec0;
}

/* Minimal Theme for Contact Widgets */
.streets-embed-widget[data-theme="minimal"] .contact-form-container {
    background: #f8f9fa;
    color: #495057;
}

.streets-embed-widget[data-theme="minimal"] .contact-submit-btn {
    background: #6c757d;
}

.streets-embed-widget[data-theme="minimal"] .contact-submit-btn:hover {
    background: #5a6268;
}

/* Responsive Design for Contact Widgets */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-button.large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .contact-button.medium {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .contact-button.small {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .consent-section {
        padding: 0.75rem;
    }
    
    .contact-submit-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* ===== USER LISTINGS WIDGETS ===== */

.streets-user-listings-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.streets-user-listings-widget * {
    box-sizing: border-box;
}

/* Header Section */
.streets-listings-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.streets-listings-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.streets-listings-user-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.streets-listings-user-details {
    flex: 1;
    min-width: 0;
}

.streets-listings-user-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.streets-listings-user-about {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filters Section */
.streets-listings-filters {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.streets-listings-search {
    flex: 1;
    min-width: 200px;
}

.streets-listings-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
}

.streets-listings-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.streets-listings-date-filter {
    min-width: 150px;
}

.streets-listings-date-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.streets-listings-date-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Listings Container */
.streets-listings-container {
    padding: 1.5rem;
}

.streets-listings-container[data-layout="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.streets-listings-container[data-layout="list"] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual Listing Items */
.streets-listing-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.streets-listing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.streets-listings-container[data-layout="list"] .streets-listing-item {
    display: flex;
    align-items: stretch;
}

.streets-listings-container[data-layout="list"] .streets-listing-item:hover {
    transform: translateX(4px);
}

/* Listing Images */
.streets-listing-image {
    position: relative;
    overflow: hidden;
}

.streets-listings-container[data-layout="grid"] .streets-listing-image {
    height: 200px;
}

.streets-listings-container[data-layout="list"] .streets-listing-image {
    width: 200px;
    flex-shrink: 0;
}

.streets-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.streets-listing-item:hover .streets-listing-image img {
    transform: scale(1.05);
}

/* Listing Content */
.streets-listing-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.streets-listings-container[data-layout="list"] .streets-listing-content {
    justify-content: space-between;
}

.streets-listing-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.streets-listing-meta {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.streets-listing-date,
.streets-listing-location,
.streets-listing-price,
.streets-listing-availability {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streets-listing-price {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.streets-listing-availability {
    color: #dc2626;
    font-weight: 500;
}

.streets-listing-description {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    flex: 1;
}

.streets-listing-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.streets-listing-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.streets-listing-button:active {
    transform: translateY(0);
}

/* Empty State */
.streets-listings-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

.streets-listings-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.streets-listings-empty h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.streets-listings-empty p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

/* No Results State */
.streets-listings-no-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Dark Theme */
.streets-user-listings-widget[data-theme="dark"] {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-filters {
    background: #374151;
    border-color: #4b5563;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-search-input,
.streets-user-listings-widget[data-theme="dark"] .streets-listings-date-select {
    background: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-search-input:focus,
.streets-user-listings-widget[data-theme="dark"] .streets-listings-date-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-container {
    background: #1f2937;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-item {
    background: #374151;
    border-color: #4b5563;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-item:hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-title {
    color: #f9fafb;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-date,
.streets-user-listings-widget[data-theme="dark"] .streets-listing-location {
    color: #d1d5db;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-price {
    color: #34d399;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-availability {
    color: #f87171;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-description {
    color: #d1d5db;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.streets-user-listings-widget[data-theme="dark"] .streets-listing-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-empty,
.streets-user-listings-widget[data-theme="dark"] .streets-listings-no-results {
    color: #d1d5db;
}

.streets-user-listings-widget[data-theme="dark"] .streets-listings-empty h4 {
    color: #f9fafb;
}

/* Minimal Theme */
.streets-user-listings-widget[data-theme="minimal"] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.streets-user-listings-widget[data-theme="minimal"] .streets-listings-header {
    background: #f9fafb;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.streets-user-listings-widget[data-theme="minimal"] .streets-listings-user-name {
    color: #374151;
}

.streets-user-listings-widget[data-theme="minimal"] .streets-listings-user-about {
    color: #6b7280;
}

.streets-user-listings-widget[data-theme="minimal"] .streets-listing-button {
    background: #374151;
    color: white;
}

.streets-user-listings-widget[data-theme="minimal"] .streets-listing-button:hover {
    background: #1f2937;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .streets-user-listings-widget {
        border-radius: 8px;
        margin: 0;
    }
    
    .streets-listings-header {
        padding: 1rem;
    }
    
    .streets-listings-user-info {
        gap: 0.75rem;
    }
    
    .streets-listings-user-photo {
        width: 50px;
        height: 50px;
    }
    
    .streets-listings-user-name {
        font-size: 1.25rem;
    }
    
    .streets-listings-user-about {
        font-size: 0.9rem;
    }
    
    .streets-listings-filters {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .streets-listings-search,
    .streets-listings-date-filter {
        min-width: auto;
    }
    
    .streets-listings-container {
        padding: 1rem;
    }
    
    .streets-listings-container[data-layout="grid"] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .streets-listings-container[data-layout="list"] .streets-listing-item {
        flex-direction: column;
    }
    
    .streets-listings-container[data-layout="list"] .streets-listing-image {
        width: 100%;
        height: 200px;
    }
    
    .streets-listing-content {
        padding: 1rem;
    }
    
    .streets-listing-title {
        font-size: 1.1rem;
    }
    
    .streets-listing-meta {
        gap: 0.4rem;
    }
    
    .streets-listing-date,
    .streets-listing-location,
    .streets-listing-availability {
        font-size: 0.85rem;
    }
    
    .streets-listing-price {
        font-size: 0.95rem;
    }
    
    .streets-listing-description {
        font-size: 0.9rem;
    }
    
    .streets-listing-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .streets-listings-header {
        padding: 0.75rem;
    }
    
    .streets-listings-user-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .streets-listings-user-photo {
        align-self: center;
    }
    
    .streets-listings-filters {
        padding: 0.75rem;
    }
    
    .streets-listings-container {
        padding: 0.75rem;
    }
    
    .streets-listings-container[data-layout="grid"] {
        gap: 0.75rem;
    }
    
    .streets-listing-content {
        padding: 0.75rem;
    }
    
    .streets-listing-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .streets-listing-meta {
        margin-bottom: 0.5rem;
    }
    
    .streets-listing-description {
        margin-bottom: 0.75rem;
    }
}
