/**
 * WAHRB Wizard Styles - PHP Multi-Step Form
 *
 * @package DokanRentalsBookings
 */

/* Container */
.wahrb-wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.wahrb-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.wahrb-wizard-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wahrb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
}

.wahrb-back-link:hover {
    color: #2563eb;
}

.wahrb-wizard-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.wahrb-draft-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* Progress Steps */
.wahrb-wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.wahrb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.wahrb-progress-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
}

.wahrb-progress-step:last-child::after {
    display: none;
}

.wahrb-progress-step.completed::after {
    background: #10b981;
}

.wahrb-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.wahrb-progress-step.active .wahrb-step-number {
    background: #2563eb;
    color: #fff;
}

.wahrb-progress-step.completed .wahrb-step-number {
    background: #10b981;
    color: #fff;
}

.wahrb-progress-step.incomplete .wahrb-step-number {
    background: #f59e0b;
    color: #fff;
    font-size: 0.75rem;
}

.wahrb-progress-step.incomplete::after {
    background: #f59e0b;
}

.wahrb-progress-step.incomplete .wahrb-step-label {
    color: #f59e0b;
    font-weight: 500;
}

.wahrb-step-label {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.wahrb-progress-step.active .wahrb-step-label {
    color: #2563eb;
    font-weight: 600;
}

/* Wizard Content */
.wahrb-wizard-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    min-height: 400px;
}

/* Step Header */
.wahrb-step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.wahrb-step-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.wahrb-step-description {
    margin: 0;
    color: #64748b;
    font-size: 0.9375rem;
}

/* Navigation */
.wahrb-wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Buttons */
.wahrb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wahrb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wahrb-btn-primary {
    background: #2563eb;
    color: #fff;
}

.wahrb-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    color: #fff;
}

.wahrb-btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.wahrb-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

.wahrb-btn-block {
    width: 100%;
}

.wahrb-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.wahrb-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Form Elements */
.wahrb-form-group {
    margin-bottom: 1.5rem;
}

.wahrb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.wahrb-form-group label .required {
    color: #ef4444;
}

.wahrb-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wahrb-form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wahrb-form-control:disabled {
    background: #f9fafb;
    cursor: not-allowed;
}

.wahrb-input-small {
    max-width: 120px;
}

.wahrb-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.wahrb-form-col {
    flex: 1;
    min-width: 200px;
}

.wahrb-form-col-2 {
    flex: 2;
    min-width: 200px;
}

/* Input Groups */
.wahrb-input-group {
    display: flex;
    align-items: center;
}

.wahrb-input-group .wahrb-form-control {
    border-radius: 0.5rem 0 0 0.5rem;
}

.wahrb-input-prefix,
.wahrb-input-suffix {
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}

.wahrb-input-prefix {
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
}

.wahrb-input-prefix+.wahrb-form-control {
    border-radius: 0;
}

.wahrb-input-suffix {
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.wahrb-input-with-help {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wahrb-help-text {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Toggle Switch */
.wahrb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.wahrb-toggle input {
    display: none;
}

.wahrb-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 9999px;
    transition: background 0.2s;
}

.wahrb-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.wahrb-toggle input:checked+.wahrb-toggle-slider {
    background: #2563eb;
}

.wahrb-toggle input:checked+.wahrb-toggle-slider::after {
    transform: translateX(20px);
}

.wahrb-toggle-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
}

/* Checkbox */
.wahrb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
}

.wahrb-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

/* Offer Type Cards (Step 1) */
.wahrb-offer-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wahrb-offer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wahrb-offer-card:hover {
    border-color: #94a3b8;
}

.wahrb-offer-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.wahrb-offer-card input {
    display: none;
}

.wahrb-offer-card-content {
    flex: 1;
}

.wahrb-offer-icon {
    font-size: 2rem;
}

.wahrb-offer-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.wahrb-offer-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.wahrb-offer-check {
    display: none;
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    line-height: 24px;
    text-align: center;
}

.wahrb-offer-card.selected .wahrb-offer-check {
    display: block;
}

/* Days Selector (Step 3) */
.wahrb-days-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wahrb-day-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s;
}

.wahrb-day-chip:hover {
    background: #e2e8f0;
}

.wahrb-day-chip.selected {
    background: #2563eb;
    color: #fff;
}

.wahrb-day-chip input {
    display: none;
}

/* Price Preview (Step 4) */
.wahrb-price-preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.wahrb-price-preview-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.wahrb-price-preview-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.wahrb-price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

/* Rules Section */
.wahrb-rules-section {
    margin-top: 2rem;
}

.wahrb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wahrb-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.wahrb-empty-rules {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.wahrb-rule-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.wahrb-rule-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.wahrb-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.25rem;
}

.wahrb-btn-icon:hover {
    background: #fecaca;
}

/* Payment Sections (Step 5) */
.wahrb-payment-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.wahrb-section-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.wahrb-section-title-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.wahrb-section-title-text p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.wahrb-section-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Media Uploader (Step 6) */
.wahrb-media-uploader {
    margin-bottom: 1.5rem;
}

.wahrb-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wahrb-upload-zone:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.wahrb-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wahrb-upload-text {
    margin: 0 0 1rem;
    color: #64748b;
}

.wahrb-upload-hint {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.wahrb-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.wahrb-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f1f5f9;
}

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

.wahrb-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.5rem;
}

.wahrb-image-item:hover .wahrb-image-overlay {
    opacity: 1;
}

.wahrb-image-remove {
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.wahrb-image-main {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

/* Summary Card (Step 7) */
.wahrb-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.wahrb-summary-card h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.wahrb-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.wahrb-summary-item {
    text-align: center;
}

.wahrb-summary-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.wahrb-summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.wahrb-summary-price {
    color: #2563eb;
    font-size: 1.25rem;
}

/* Policy Cards */
.wahrb-policy-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wahrb-policy-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wahrb-policy-card:hover {
    border-color: #94a3b8;
}

.wahrb-policy-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.wahrb-policy-card input {
    display: none;
}

.wahrb-policy-content {
    flex: 1;
}

.wahrb-policy-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.wahrb-policy-content span {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Terms */
.wahrb-terms-group {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Publish Actions */
.wahrb-publish-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Selection Screen */
.wahrb-selection-screen {
    max-width: 500px;
    margin: 0 auto;
}

.wahrb-selection-screen h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.wahrb-selection-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.wahrb-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.wahrb-card-icon {
    font-size: 1.5rem;
}

.wahrb-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.wahrb-selection-card>p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.wahrb-separator {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.wahrb-separator span {
    background: #fff;
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.wahrb-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e2e8f0;
}

/* Draft List */
.wahrb-draft-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wahrb-draft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.wahrb-draft-info strong {
    display: block;
    margin-bottom: 0.125rem;
}

.wahrb-draft-info span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Alerts */
.wahrb-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.wahrb-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.wahrb-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wahrb-alert-icon {
    font-size: 1.25rem;
}

/* Divider */
.wahrb-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wahrb-wizard-container {
        padding: 1rem;
    }

    .wahrb-wizard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .wahrb-wizard-progress {
        overflow-x: auto;
        padding: 0;
    }

    .wahrb-step-label {
        display: none;
    }

    .wahrb-wizard-content {
        padding: 1.5rem;
    }

    .wahrb-form-row {
        flex-direction: column;
    }

    .wahrb-form-col,
    .wahrb-form-col-2 {
        min-width: 100%;
    }

    .wahrb-summary-grid {
        grid-template-columns: 1fr;
    }

    .wahrb-publish-actions {
        flex-direction: column;
    }

    .wahrb-rule-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wahrb-days-selector {
        justify-content: center;
    }
}

/* ================================================================
   STEP 3 — Availability
   ================================================================ */

.wahrb-step-3 {
    max-width: 600px;
}

.wahrb-availability-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.wahrb-availability-card:hover {
    border-color: #cbd5e1;
}

.wahrb-availability-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.wahrb-availability-card h4 .icon {
    font-size: 22px;
}

.wahrb-days-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wahrb-day-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    position: relative;
}

.wahrb-day-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.wahrb-day-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wahrb-day-btn input[type="checkbox"] {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.wahrb-range-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.wahrb-range-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
}

.wahrb-range-input input {
    width: 80px;
    border: 1px solid #cbd5e1;
    background: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    border-radius: 8px;
    padding: 8px 6px;
}

.wahrb-range-input input:focus {
    outline: none;
    border-color: #2563eb;
}

.wahrb-range-input .label {
    flex: 1;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.wahrb-range-separator {
    color: #cbd5e1;
    font-size: 20px;
}

/* Duration stepper with +/- buttons */
.wahrb-duration-stepper {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.wahrb-duration-stepper .stepper-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wahrb-duration-stepper .stepper-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wahrb-duration-stepper .stepper-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.wahrb-duration-stepper .stepper-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.wahrb-duration-stepper .stepper-btn:active {
    background: #dbeafe;
}

.wahrb-duration-stepper .stepper-value {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wahrb-duration-stepper .stepper-value input {
    width: 70px;
    border: 1px solid #cbd5e1;
    background: #fff;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    border-radius: 8px;
    padding: 4px;
}

.wahrb-duration-stepper .stepper-value input:focus {
    outline: none;
    border-color: #2563eb;
}

.wahrb-duration-stepper .stepper-unit {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.wahrb-buffer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wahrb-buffer-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wahrb-buffer-item label {
    display: block;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.wahrb-buffer-item input {
    width: 72px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.wahrb-buffer-item input:focus {
    outline: none;
    border-color: #2563eb;
}

.wahrb-buffer-item .unit {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.wahrb-quick-select {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wahrb-quick-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wahrb-quick-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

/* Step 3 — Slot hours */
.wahrb-slot-hours-card input[type="time"] {
    width: 130px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.wahrb-slot-hours-card input[type="time"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wahrb-slot-durations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.wahrb-slot-duration-btn {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wahrb-slot-duration-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.wahrb-slot-duration-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wahrb-slot-duration-btn input {
    display: none;
}

/* Hours Mode Toggle */
.wahrb-hours-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.wahrb-mode-option {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wahrb-mode-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.wahrb-mode-option.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.wahrb-mode-option input {
    display: none;
}

/* Per-Day Hours */
.wahrb-day-hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.wahrb-day-hours-row:last-child {
    border-bottom: none;
}

.wahrb-day-hours-row.disabled {
    opacity: 0.5;
}

.wahrb-day-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.wahrb-day-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.wahrb-day-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    min-width: 80px;
}

.wahrb-day-times {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wahrb-day-times input[type="time"] {
    width: 110px;
    padding: 8px 10px;
    font-size: 14px;
}

.wahrb-day-times span {
    color: #94a3b8;
}

/* ================================================================
   STEP 4 — Pricing
   ================================================================ */

.wahrb-step-4 {
    max-width: 700px;
}

.wahrb-pricing-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    margin-bottom: 25px;
}

.wahrb-pricing-hero h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.wahrb-price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wahrb-price-big-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 20px;
}

.wahrb-price-big-input .currency {
    font-size: 28px;
    font-weight: 300;
    opacity: 0.8;
}

.wahrb-price-big-input input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    width: 150px;
    text-align: center;
}

.wahrb-price-big-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wahrb-price-big-input input:focus {
    outline: none;
}

.wahrb-price-unit-select {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.wahrb-price-unit-select option {
    color: #1e3a5f;
}

.wahrb-price-unit-fixed {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.wahrb-rule-icon-fixed {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    flex-shrink: 0;
}

.wahrb-price-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wahrb-price-preview-label {
    font-size: 13px;
    opacity: 0.8;
}

.wahrb-price-preview-value {
    font-size: 24px;
    font-weight: 600;
}

/* Rules Section */
.wahrb-rules-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.wahrb-rules-section h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wahrb-rules-section .desc {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 20px 0;
}

/* Quick Rule Card */
.wahrb-quick-rule {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
    overflow: hidden;
}

.wahrb-quick-rule.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.wahrb-quick-rule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

.wahrb-rule-toggle {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.wahrb-rule-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wahrb-rule-toggle.on {
    background: #10b981;
}

.wahrb-rule-toggle.on::after {
    transform: translateX(20px);
}

.wahrb-rule-icon-btn {
    width: 52px;
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiOne Color", sans-serif;
    line-height: 1;
}

.wahrb-rule-icon-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: scale(1.05);
}

.wahrb-rule-info {
    flex: 1;
}

.wahrb-rule-info strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
}

.wahrb-rule-info small {
    color: #64748b;
    font-size: 12px;
}

.wahrb-rule-value {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 90px;
}

.wahrb-rule-value input {
    width: 60px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    padding: 4px 6px;
    border-radius: 6px;
}

.wahrb-rule-value input:focus {
    outline: none;
    border-color: #2563eb;
}

.wahrb-rule-value span {
    font-weight: 600;
    color: #475569;
    font-size: 16px;
}

/* Rule Config Panel */
.wahrb-rule-config {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px dashed #e2e8f0;
    display: none;
}

.wahrb-quick-rule.active .wahrb-rule-config {
    display: block;
}

.wahrb-config-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wahrb-config-label {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.wahrb-day-chip {
    padding: 8px 14px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.wahrb-day-chip.selected {
    background: #2563eb;
    color: #fff;
}

.wahrb-config-input {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.wahrb-visible-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.wahrb-visible-toggle label {
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

/* Icon Picker Modal */
.wahrb-icon-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10005;
    display: none;
    align-items: center;
    justify-content: center;
}

.wahrb-icon-picker-overlay.show {
    display: flex;
}

.wahrb-icon-picker-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.wahrb-icon-picker-modal h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.wahrb-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.wahrb-icon-option {
    width: 64px;
    height: 64px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiOne Color", sans-serif;
}

.wahrb-icon-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: scale(1.1);
}

.wahrb-icon-option.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

/* Custom Rules */
.wahrb-custom-rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wahrb-add-rule-btn {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.wahrb-add-rule-btn:hover {
    background: #1d4ed8;
}

.wahrb-custom-rule-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.wahrb-custom-rule-card:hover {
    background: #f8fafc !important;
    border-color: #2563eb !important;
}

.wahrb-custom-rule-card .icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
}

.wahrb-custom-rule-card .info {
    flex: 1;
}

.wahrb-custom-rule-card .info strong {
    display: block;
    font-size: 14px;
}

.wahrb-custom-rule-card .info small {
    color: #64748b;
    font-size: 12px;
}

.wahrb-custom-rule-card .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.wahrb-custom-rule-card .badge.positive {
    background: #dcfce7;
    color: #16a34a;
}

.wahrb-custom-rule-card .badge.negative {
    background: #fee2e2;
    color: #dc2626;
}

.wahrb-custom-rule-card .wahrb-edit-icon {
    opacity: 0;
    transition: opacity 0.2s;
    margin-right: 8px;
    color: #64748b;
}

.wahrb-custom-rule-card:hover .wahrb-edit-icon {
    opacity: 1;
}

.wahrb-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
}

.wahrb-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.wahrb-empty-rules {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
}

.wahrb-empty-rules .emoji {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Modal for Custom Rules */
.wahrb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.wahrb-modal-overlay.show {
    display: flex;
}

.wahrb-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.wahrb-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wahrb-modal-header h4 {
    margin: 0;
    font-size: 18px;
}

.wahrb-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

.wahrb-modal-body {
    padding: 24px;
}

.wahrb-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wahrb-modal .form-group {
    margin-bottom: 20px;
}

.wahrb-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.wahrb-modal .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background-color: #fff;
}

.wahrb-modal select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.wahrb-modal .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wahrb-modal .form-row {
    display: flex;
    gap: 15px;
}

.wahrb-modal .form-row > * {
    flex: 1;
}

.wahrb-btn-primary {
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

.wahrb-btn-secondary {
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

/* Weekday chip selector (step 4) */
.wahrb-weekday-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.wahrb-weekday-chip input {
    display: none;
}

.wahrb-weekday-chip span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.wahrb-weekday-chip:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.wahrb-weekday-chip.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.wahrb-weekday-chip.selected span {
    color: #2563eb;
}

/* Numeric input styling */
.wahrb-numeric-input::-webkit-outer-spin-button,
.wahrb-numeric-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wahrb-numeric-input {
    -moz-appearance: textfield;
}

/* ================================================================
   STEP 5 — Payment
   ================================================================ */

.wahrb-payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.wahrb-payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.wahrb-payment-method-card:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.wahrb-payment-method-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wahrb-payment-method-card input[type="checkbox"] {
    display: none;
}

.wahrb-payment-method-card .method-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.wahrb-payment-method-card .method-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.wahrb-payment-method-card .method-desc {
    font-size: 12px;
    color: #64748b;
}

.wahrb-gateways-section {
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 12px;
}

.wahrb-subsection-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.wahrb-gateways-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wahrb-gateway-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.wahrb-gateway-checkbox:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.wahrb-gateway-checkbox input[type="checkbox"]:checked + .gateway-name {
    color: #2563eb;
    font-weight: 600;
}

.wahrb-gateway-checkbox .gateway-name {
    font-size: 13px;
    color: #334155;
}

/* Security Methods Grid */
.wahrb-security-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wahrb-security-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.wahrb-security-method:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.wahrb-security-method.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wahrb-security-method input[type="checkbox"] {
    display: none;
}

.wahrb-security-method .method-icon {
    font-size: 28px;
    margin-bottom: 8px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.wahrb-security-method .method-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}