/**
 * Pesqueros Custom Booking Plugin - Widget Styles
 * 
 * Modern, clean design with smooth animations
 * Compact checkout layout - no scroll needed
 * @version 1.5.3
 */

/* CSS Variables */
:root {
    --gsb-primary: #1a56db;
    --gsb-primary-hover: #1e40af;
    --gsb-primary-light: #dbeafe;
    --gsb-secondary: #6b7280;
    --gsb-secondary-hover: #4b5563;
    --gsb-success: #059669;
    --gsb-success-light: #d1fae5;
    --gsb-error: #dc2626;
    --gsb-error-light: #fee2e2;
    --gsb-warning: #d97706;
    --gsb-text: #111827;
    --gsb-text-secondary: #6b7280;
    --gsb-text-muted: #9ca3af;
    --gsb-border: #d1d5db;
    --gsb-border-focus: #1a56db;
    --gsb-bg: #ffffff;
    --gsb-bg-secondary: #f9fafb;
    --gsb-bg-overlay: rgba(0, 0, 0, 0.5);
    --gsb-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gsb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --gsb-shadow-input: 0 1px 2px rgba(0, 0, 0, 0.05);
    --gsb-radius: 12px;
    --gsb-radius-sm: 8px;
    --gsb-radius-lg: 16px;
    --gsb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gsb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gsb-panel-width: 480px;
}

/* Body lock when modal is open */
body.gsb-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Modal Overlay */
.gsb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    justify-content: flex-end;
    background-color: var(--gsb-bg-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gsb-transition), visibility var(--gsb-transition);
    overscroll-behavior: contain;
}

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

/* Modal Panel */
.gsb-modal-panel {
    position: relative;
    width: 100%;
    max-width: var(--gsb-panel-width);
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    background: var(--gsb-bg);
    box-shadow: var(--gsb-shadow);
    transform: translateX(100%);
    transition: transform var(--gsb-transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.gsb-modal-panel.gsb-active {
    transform: translateX(0);
}

/* Close Button */
.gsb-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gsb-bg);
    border: 1px solid var(--gsb-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--gsb-text-secondary);
    transition: all var(--gsb-transition);
}

.gsb-modal-close:hover {
    background: var(--gsb-bg-secondary);
    color: var(--gsb-text);
    border-color: var(--gsb-text-muted);
}

.gsb-modal-close svg {
    width: 16px;
    height: 16px;
}

/* Modal Content */
.gsb-modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    padding-top: 56px;
    font-family: var(--gsb-font);
    color: var(--gsb-text);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

/* Step wrapper to ensure button stays at bottom */
.gsb-step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: gsb-fade-in 0.3s ease;
}

.gsb-step-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.gsb-step-footer {
    flex-shrink: 0;
    padding-top: 8px;
    background: var(--gsb-bg);
    border-top: 1px solid var(--gsb-border);
    margin-top: auto;
}

/* Loading State */
.gsb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 12px;
}

.gsb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gsb-border);
    border-top-color: var(--gsb-primary);
    border-radius: 50%;
    animation: gsb-spin 1s linear infinite;
}

@keyframes gsb-spin {
    to { transform: rotate(360deg); }
}

.gsb-loading p {
    color: var(--gsb-text-secondary);
    font-size: 13px;
    margin: 0;
}

/* Error State */
.gsb-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 20px;
    gap: 12px;
}

.gsb-error-icon {
    color: var(--gsb-error);
}

.gsb-error-icon svg {
    width: 40px;
    height: 40px;
}

.gsb-error h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gsb-error p {
    margin: 0;
    color: var(--gsb-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

/* Steps - already defined above with flex layout */

@keyframes gsb-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gsb-step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--gsb-text);
}

.gsb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    margin-bottom: 8px;
    background: none;
    border: none;
    color: var(--gsb-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--gsb-transition);
}

.gsb-back-btn:hover {
    color: var(--gsb-text);
}

/* Listing Preview */
.gsb-listing-preview {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--gsb-bg-secondary);
    border-radius: var(--gsb-radius-sm);
    margin-bottom: 12px;
}

.gsb-listing-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.gsb-listing-preview-info {
    flex: 1;
    min-width: 0;
}

.gsb-listing-preview-info h3 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsb-listing-preview-info p {
    margin: 0;
    font-size: 12px;
    color: var(--gsb-text-secondary);
    line-height: 1.3;
}

.gsb-listing-preview-price {
    margin-top: 4px !important;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.gsb-listing-preview-price strong {
    font-size: 16px;
    color: var(--gsb-text);
}

.gsb-listing-preview-price span {
    font-size: 11px;
    color: var(--gsb-text-muted);
}

/* ================================
   CALENDAR STYLES
   ================================ */

.gsb-calendar-container {
    background: var(--gsb-bg);
    border: 1px solid var(--gsb-border);
    border-radius: var(--gsb-radius-sm);
    padding: 10px;
    margin-bottom: 12px;
}

.gsb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gsb-calendar-month {
    font-size: 14px;
    font-weight: 600;
    color: var(--gsb-text);
}

.gsb-calendar-nav {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gsb-bg-secondary);
    border: 1px solid var(--gsb-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--gsb-text-secondary);
    transition: all var(--gsb-transition);
    font-size: 12px;
}

.gsb-calendar-nav:hover:not(:disabled) {
    background: var(--gsb-primary-light);
    color: var(--gsb-primary);
    border-color: var(--gsb-primary);
}

.gsb-calendar-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gsb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    align-items: stretch;
}

.gsb-cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--gsb-text-muted);
    padding: 6px 0;
    text-transform: uppercase;
    min-height: 24px;
}

.gsb-cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--gsb-bg);
    border: 1px solid transparent;
    min-height: 36px;
    padding: 4px 2px;
}

.gsb-cal-day:hover:not(.gsb-cal-past):not(.gsb-cal-unavailable):not(.gsb-cal-empty) {
    background: var(--gsb-primary-light);
    border-color: var(--gsb-primary);
}

.gsb-cal-day-num {
    font-size: 12px;
    font-weight: 500;
    color: var(--gsb-text);
    line-height: 1;
}

.gsb-cal-price {
    font-size: 7px;
    color: var(--gsb-success);
    margin-top: 1px;
    font-weight: 500;
}

/* Empty cell */
.gsb-cal-empty {
    cursor: default;
}

/* Past dates */
.gsb-cal-past {
    cursor: not-allowed;
}

.gsb-cal-past .gsb-cal-day-num {
    color: var(--gsb-text-muted);
    opacity: 0.5;
}

/* Unavailable dates */
.gsb-cal-unavailable {
    background: #fef2f2;
    cursor: not-allowed;
}

.gsb-cal-unavailable .gsb-cal-day-num {
    color: var(--gsb-error);
    text-decoration: line-through;
    opacity: 0.7;
}

/* Today */
.gsb-cal-today {
    border: 1px solid var(--gsb-primary);
}

/* Selected check-in */
.gsb-cal-checkin {
    background: var(--gsb-primary) !important;
    border-color: var(--gsb-primary) !important;
}

.gsb-cal-checkin .gsb-cal-day-num,
.gsb-cal-checkin .gsb-cal-price {
    color: white !important;
}

/* Selected check-out */
.gsb-cal-checkout {
    background: var(--gsb-primary) !important;
    border-color: var(--gsb-primary) !important;
}

.gsb-cal-checkout .gsb-cal-day-num,
.gsb-cal-checkout .gsb-cal-price {
    color: white !important;
}

/* In range */
.gsb-cal-in-range {
    background: var(--gsb-primary-light);
}

.gsb-cal-in-range .gsb-cal-day-num {
    color: var(--gsb-primary);
}

/* Calendar Legend */
.gsb-calendar-legend {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gsb-border);
}

.gsb-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--gsb-text-secondary);
}

.gsb-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.gsb-legend-available {
    background: var(--gsb-bg);
    border: 1px solid var(--gsb-border);
}

.gsb-legend-unavailable {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* Selected Dates Display */
.gsb-selected-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--gsb-bg-secondary);
    border-radius: var(--gsb-radius-sm);
    margin-bottom: 10px;
}

.gsb-date-box {
    flex: 1;
    text-align: center;
}

.gsb-date-box label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--gsb-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.gsb-date-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gsb-text);
}

.gsb-date-arrow {
    color: var(--gsb-text-muted);
    font-size: 14px;
}

/* Date Error */
.gsb-date-error {
    padding: 10px 14px;
    background: var(--gsb-error-light);
    border-radius: var(--gsb-radius-sm);
    color: var(--gsb-error);
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
}

/* ================================
   FORMS
   ================================ */

.gsb-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

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

.gsb-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gsb-form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gsb-text);
}

.gsb-form-group input,
.gsb-form-group select,
.gsb-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--gsb-font);
    color: var(--gsb-text);
    background: var(--gsb-bg);
    border: 1.5px solid var(--gsb-border);
    border-radius: 6px;
    box-shadow: var(--gsb-shadow-input);
    transition: all var(--gsb-transition);
    -webkit-appearance: none;
    appearance: none;
}

.gsb-form-group input:hover,
.gsb-form-group select:hover,
.gsb-form-group textarea:hover {
    border-color: #9ca3af;
}

.gsb-form-group input:focus,
.gsb-form-group select:focus,
.gsb-form-group textarea:focus {
    outline: none;
    border-color: var(--gsb-border-focus);
    box-shadow: 0 0 0 3px var(--gsb-primary-light), var(--gsb-shadow-input);
}

.gsb-form-group input::placeholder {
    color: var(--gsb-text-muted);
}

.gsb-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
    cursor: pointer;
}

/* Buttons */
.gsb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--gsb-font);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--gsb-transition);
    border: none;
    text-decoration: none;
}

.gsb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.gsb-btn-primary:hover:not(:disabled) {
    background: var(--gsb-primary-hover);
}

.gsb-btn-secondary {
    background: var(--gsb-bg);
    color: var(--gsb-text);
    border: 1.5px solid var(--gsb-border);
}

.gsb-btn-secondary:hover:not(:disabled) {
    background: var(--gsb-bg-secondary);
    border-color: var(--gsb-text-muted);
}

.gsb-btn-full {
    width: 100%;
}

/* Button spinner */
.gsb-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: gsb-spin 0.8s linear infinite;
}

/* Dates Summary */
.gsb-dates-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: var(--gsb-primary-light);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gsb-primary);
    font-weight: 500;
}

.gsb-separator {
    color: var(--gsb-text-muted);
}

/* Listings Grid */
.gsb-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gsb-listing-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--gsb-bg);
    border: 1px solid var(--gsb-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--gsb-transition);
}

.gsb-listing-card:hover {
    border-color: var(--gsb-primary);
    box-shadow: var(--gsb-shadow-sm);
}

.gsb-listing-image {
    width: 70px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--gsb-bg-secondary);
}

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

.gsb-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gsb-bg-secondary), var(--gsb-border));
}

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

.gsb-listing-info h4 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gsb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsb-listing-location {
    margin: 0 0 4px;
    font-size: 11px;
    color: var(--gsb-text-secondary);
}

.gsb-listing-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--gsb-text-muted);
    margin-bottom: 4px;
}

.gsb-listing-price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--gsb-text);
}

.gsb-listing-price span {
    font-size: 10px;
    font-weight: 400;
    color: var(--gsb-text-secondary);
}

/* Empty State */
.gsb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--gsb-text-secondary);
    font-size: 13px;
}

/* No Availability State */
.gsb-no-availability {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    gap: 12px;
}

.gsb-no-availability-icon {
    color: var(--gsb-text-muted);
    opacity: 0.6;
}

.gsb-no-availability h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gsb-text);
}

.gsb-no-availability p {
    margin: 0;
    font-size: 13px;
    color: var(--gsb-text-secondary);
    line-height: 1.5;
}

.gsb-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 8px 0;
}

.gsb-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--gsb-bg-secondary);
    border: 1px solid var(--gsb-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--gsb-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--gsb-transition);
}

.gsb-contact-item:hover {
    border-color: var(--gsb-primary);
    background: var(--gsb-primary-light);
}

.gsb-contact-item svg {
    flex-shrink: 0;
    color: var(--gsb-primary);
}

/* Quote Breakdown */
.gsb-quote-breakdown {
    background: var(--gsb-bg-secondary);
    border: 1px solid var(--gsb-border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.gsb-quote-breakdown h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gsb-text-secondary);
}

.gsb-quote-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gsb-text-secondary);
    border-bottom: 1px solid var(--gsb-border);
}

.gsb-quote-line:last-child {
    border-bottom: none;
}

.gsb-quote-line.gsb-discount {
    color: var(--gsb-success);
}

.gsb-quote-line.gsb-quote-total {
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--gsb-text);
    border-bottom: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--gsb-text);
}

/* Coupon */
.gsb-coupon-section {
    margin-bottom: 4px;
    padding: 10px;
    background: var(--gsb-bg-secondary);
    border-radius: 6px;
    border: 1px dashed var(--gsb-border);
}

.gsb-coupon-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gsb-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gsb-coupon-row {
    display: flex;
    gap: 6px;
}

.gsb-coupon-input-field {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    border: 1.5px solid var(--gsb-border);
    border-radius: 4px;
    background: var(--gsb-bg);
    transition: all var(--gsb-transition);
}

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

.gsb-btn-apply {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Coupon Feedback */
.gsb-coupon-feedback {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.gsb-coupon-success {
    background: var(--gsb-success-light);
    color: var(--gsb-success);
    border: 1px solid #a7f3d0;
}

.gsb-coupon-error {
    background: var(--gsb-error-light);
    color: var(--gsb-error);
    border: 1px solid #fecaca;
}

/* ================================
   CHECKOUT - COMPACT LAYOUT
   ================================ */

.gsb-checkout-compact {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.gsb-checkout-compact .gsb-back-btn {
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Checkout Summary - Mini booking info */
.gsb-checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--gsb-bg-secondary);
    border: 1px solid var(--gsb-border);
    border-radius: 6px;
    margin-bottom: 12px;
    gap: 10px;
    flex-shrink: 0;
}

.gsb-checkout-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.gsb-checkout-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.gsb-checkout-summary-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.gsb-checkout-summary-info strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--gsb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsb-checkout-summary-info span {
    font-size: 10px;
    color: var(--gsb-text-muted);
}

.gsb-checkout-summary-price {
    text-align: right;
    flex-shrink: 0;
}

.gsb-checkout-summary-price span {
    display: block;
    font-size: 9px;
    color: var(--gsb-text-muted);
    text-transform: uppercase;
}

.gsb-checkout-summary-price strong {
    font-size: 16px;
    color: var(--gsb-primary);
}

/* Compact Form */
.gsb-checkout-form-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    min-height: 0;
}

.gsb-checkout-section-compact {
    margin-bottom: 0;
    flex-shrink: 0;
}

.gsb-checkout-section-compact h4 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gsb-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsb-checkout-form-compact .gsb-form-row {
    gap: 8px;
    margin-bottom: 6px;
}

.gsb-checkout-form-compact .gsb-form-group {
    gap: 0;
}

.gsb-checkout-form-compact .gsb-form-group input {
    padding: 8px 10px;
    font-size: 13px;
}

/* Stripe Card Element - Compact */
.gsb-card-element {
    padding: 10px;
    background: var(--gsb-bg);
    border: 1.5px solid var(--gsb-border);
    border-radius: 6px;
    box-shadow: var(--gsb-shadow-input);
    transition: all var(--gsb-transition);
}

.gsb-card-element:hover {
    border-color: #9ca3af;
}

.gsb-card-element.StripeElement--focus {
    border-color: var(--gsb-border-focus);
    box-shadow: 0 0 0 3px var(--gsb-primary-light), var(--gsb-shadow-input);
}

.gsb-card-element.StripeElement--invalid {
    border-color: var(--gsb-error);
}

.gsb-card-errors {
    min-height: 14px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--gsb-error);
}

/* Policies - Compact inline */
.gsb-policies-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
    flex-shrink: 0;
}

.gsb-checkbox-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 11px;
    color: var(--gsb-text-secondary);
}

.gsb-checkbox-compact input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--gsb-primary);
}

/* Pay Button - Prominent & Fixed */
.gsb-btn-pay {
    flex-shrink: 0;
    margin-top: 8px;
    padding: 14px 20px;
    font-size: 15px;
    background: var(--gsb-primary);
    box-shadow: 0 4px 14px currentColor;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gsb-btn-pay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.gsb-btn-pay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.gsb-btn-pay:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2)) brightness(1.1);
}

.gsb-btn-pay:hover:not(:disabled)::after {
    width: 300px;
    height: 300px;
}

.gsb-btn-pay:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) brightness(0.95);
}

/* Checkout Error */
.gsb-checkout-error {
    padding: 10px 14px;
    background: var(--gsb-error-light);
    border: 1px solid #fecaca;
    border-radius: var(--gsb-radius-sm);
    color: var(--gsb-error);
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}

/* ================================
   CONFIRMATION - Beautiful Success
   ================================ */

.gsb-step-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.gsb-confirmation-header {
    margin-bottom: 16px;
}

.gsb-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--gsb-success-light);
    border-radius: 50%;
    color: var(--gsb-success);
    animation: gsb-success-pop 0.5s ease;
}

.gsb-confirmation-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes gsb-success-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.gsb-step-confirmation h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gsb-text);
}

.gsb-confirmation-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--gsb-text-secondary);
}

.gsb-confirmation-code {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--gsb-primary), var(--gsb-primary-hover));
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.gsb-confirmation-code span {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

.gsb-confirmation-code strong {
    font-size: 18px;
    color: white;
    letter-spacing: 2px;
}

.gsb-confirmation-details {
    width: 100%;
    background: var(--gsb-bg-secondary);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.gsb-confirmation-property {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--gsb-border);
}

.gsb-confirmation-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.gsb-confirmation-property div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gsb-confirmation-property strong {
    font-size: 13px;
    color: var(--gsb-text);
}

.gsb-confirmation-property span {
    font-size: 11px;
    color: var(--gsb-text-muted);
}

.gsb-confirmation-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gsb-confirmation-info-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gsb-confirmation-label {
    font-size: 10px;
    color: var(--gsb-text-muted);
    text-transform: uppercase;
}

.gsb-confirmation-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gsb-text);
}

.gsb-confirmation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gsb-border);
}

.gsb-confirmation-total span {
    font-size: 12px;
    color: var(--gsb-text-secondary);
}

.gsb-confirmation-total strong {
    font-size: 16px;
    color: var(--gsb-success);
}

.gsb-confirmation-message {
    width: 100%;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    margin-bottom: 12px;
}

.gsb-confirmation-message p {
    margin: 0 0 4px;
    font-size: 12px;
    color: #166534;
    text-align: left;
}

.gsb-confirmation-message p:last-child {
    margin-bottom: 0;
}

/* Redirect Notice */
.gsb-redirect-notice {
    text-align: center;
    padding: 12px;
    background: var(--gsb-bg-secondary);
    border-radius: var(--gsb-radius-sm);
    margin-top: 12px;
}

.gsb-redirect-notice p {
    margin: 0;
    font-size: 13px;
    color: var(--gsb-text-secondary);
}

.gsb-redirect-notice span {
    font-weight: 700;
    color: var(--gsb-primary);
    display: inline-block;
    min-width: 16px;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 640px) {
    :root {
        --gsb-panel-width: 100%;
    }
    
    .gsb-modal-panel {
        max-width: 100%;
    }
    
    .gsb-modal-content {
        padding: 12px;
        padding-top: 52px;
    }
    
    .gsb-step-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    /* Calendar responsive */
    .gsb-cal-day {
        min-height: 30px;
        padding: 3px 1px;
    }
    
    .gsb-cal-header {
        min-height: 20px;
        padding: 4px 0;
        font-size: 9px;
    }
    
    .gsb-cal-day-num {
        font-size: 11px;
    }
    
    .gsb-cal-price {
        display: none;
    }
    
    .gsb-calendar-legend {
        display: none;
    }
    
    .gsb-selected-dates {
        padding: 8px;
        gap: 6px;
    }
    
    .gsb-date-box label {
        font-size: 8px;
    }
    
    .gsb-date-value {
        font-size: 11px;
    }
    
    .gsb-date-arrow {
        font-size: 12px;
    }
    
    /* Form responsive */
    .gsb-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .gsb-form-group input,
    .gsb-form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Checkout responsive */
    .gsb-checkout-summary {
        padding: 8px 10px;
    }
    
    .gsb-checkout-thumb {
        width: 36px;
        height: 36px;
    }
    
    .gsb-checkout-summary-info strong {
        font-size: 11px;
    }
    
    .gsb-checkout-summary-info span {
        font-size: 9px;
    }
    
    .gsb-checkout-summary-price strong {
        font-size: 14px;
    }
    
    .gsb-checkout-form-compact .gsb-form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .gsb-checkout-form-compact .gsb-form-group input {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .gsb-checkout-section-compact h4 {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .gsb-policies-compact {
        padding: 4px 0;
        gap: 6px;
    }
    
    .gsb-checkbox-compact {
        font-size: 10px;
    }
    
    .gsb-btn-pay {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Listing preview responsive */
    .gsb-listing-preview {
        padding: 8px;
        gap: 8px;
    }
    
    .gsb-listing-thumb {
        width: 50px;
        height: 50px;
    }
    
    .gsb-listing-preview-info h3 {
        font-size: 13px;
    }
    
    .gsb-listing-preview-info p {
        font-size: 11px;
    }
    
    .gsb-listing-preview-price strong {
        font-size: 14px;
    }
    
    /* Confirmation responsive */
    .gsb-confirmation-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Extra small screens */
@media (max-height: 600px) {
    .gsb-modal-content {
        padding: 8px 12px;
        padding-top: 48px;
    }
    
    .gsb-step-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .gsb-listing-preview {
        display: none;
    }
    
    .gsb-calendar-container {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .gsb-cal-day {
        min-height: 26px;
        padding: 2px 1px;
    }
    
    .gsb-cal-header {
        min-height: 18px;
        padding: 3px 0;
        font-size: 8px;
    }
    
    .gsb-cal-day-num {
        font-size: 10px;
    }
    
    .gsb-selected-dates {
        padding: 6px 8px;
        margin-bottom: 6px;
    }
    
    .gsb-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gsb-modal-overlay,
    .gsb-modal-panel,
    .gsb-step,
    .gsb-confirmation-icon {
        transition: none;
        animation: none;
    }
    
    .gsb-spinner,
    .gsb-btn-spinner {
        animation-duration: 2s;
    }
}

/* Print styles */
@media print {
    .gsb-modal-overlay {
        display: none !important;
    }
}
