/* krs-public-controls.css (extraido de krs-public.css)
 * Generado automaticamente — mantener bajo 600 lineas.
 */

/* Spinner for buttons & inline elements */
.krs-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: krsSpin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes krsSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Touch UI Selector - checkable buttons */
.krs-tui-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid var(--kuad-krs-border);
    border-radius: 16px;
    padding: 6px;
    margin-top: 8px;
    box-sizing: border-box;
    width: 100%;
}

.kuad-krs-booking-widget.krs-dark-mode .krs-tui-selector {
    background: #1e293b;
    border-color: #334155;
}

.krs-tui-option {
    position: relative; /* Relative for absolute badges */
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
    height: auto !important;
    min-height: 48px;
    padding: 10px 14px !important;
    border: 1px solid var(--kuad-krs-border);
    background: var(--kuad-krs-bg);
    color: var(--kuad-krs-text);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kuad-krs-booking-widget.krs-dark-mode .krs-tui-option {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}

.krs-tui-option:hover {
    background: var(--kuad-krs-surface);
    border-color: #cbd5e1;
    color: #2D1A68;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.kuad-krs-booking-widget.krs-dark-mode .krs-tui-option:hover {
    background: #1e293b;
    border-color: #475569;
    color: #ffffff;
}

.krs-tui-option.active {
    background: #2D1A68 !important;
    color: #FFFFFF !important;
    border-color: #2D1A68 !important;
    box-shadow: 0 4px 12px rgba(45, 26, 104, 0.25);
}

.kuad-krs-booking-widget.krs-dark-mode .krs-tui-option.active {
    background: #2D1A68 !important;
    color: #FFFFFF !important;
    border-color: #2D1A68 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hide validation icon when Touch UI selector or stepper is present */
.krs-tui-selector ~ .krs-validation-icon,
.krs-tui-stepper-control ~ .krs-validation-icon {
    display: none !important;
}

/* Corporate Buttons & Styling Overrides for Public Widget */
.ks-global-inputs-system-button,
.ks-global-inputs-system-submit,
.ks-global-inputs-system-button-remove {
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.ks-global-inputs-system-button:not([style*="display: none"]):not([style*="display:none"]),
.ks-global-inputs-system-submit:not([style*="display: none"]):not([style*="display:none"]),
.ks-global-inputs-system-button-remove:not([style*="display: none"]):not([style*="display:none"]) {
    display: inline-flex !important;
}

.ks-global-inputs-system-button {
    background-color: #403A60 !important;
    color: #ffffff !important;
    border: 1px solid #403A60 !important;
    transition: all 0.25s ease !important;
}
.ks-global-inputs-system-button:hover {
    background-color: #ffffff !important;
    color: #403A60 !important;
    border-color: #403A60 !important;
}

.ks-global-inputs-system-submit {
    background-color: #1BA59D !important;
    color: #ffffff !important;
    border: 1px solid #1BA59D !important;
    transition: all 0.25s ease !important;
}
.ks-global-inputs-system-submit:hover {
    background-color: #ffffff !important;
    color: #1BA59D !important;
    border-color: #1BA59D !important;
}

.ks-global-inputs-system-button-remove {
    background-color: #B55C80 !important;
    color: #ffffff !important;
    border: 1px solid #B55C80 !important;
    transition: all 0.25s ease !important;
}
.ks-global-inputs-system-button-remove:hover {
    background-color: #ffffff !important;
    color: #B55C80 !important;
    border-color: #B55C80 !important;
}

/* ==========================================================================
   TOUCH UI ADDON & SERVICE SWITCH CARDS (Step 3 Hotel / Addons)
   Soft UI + Touch UI (AGENTS.md)
   ========================================================================== */
.krs-hotel-options-columns-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.krs-hotel-options-columns-wrap.krs-hotel-options-single-col {
    grid-template-columns: 1fr;
}

.krs-hotel-options-columns-wrap .kuad-krs-input-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .krs-hotel-options-columns-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.krs-tui-addons-list,
.krs-hotel-services-list,
.krs-hotel-crib-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    box-sizing: border-box;
}

.kuad-krs-input-group label.krs-tui-addon-card,
.kuad-krs-input-group label.krs-tui-service-row,
.kuad-krs-input-group label.krs-service-label-card,
.krs-tui-addon-card,
.krs-tui-service-row,
.krs-service-label-card {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 48px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--kuad-krs-border, #e2e8f0);
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 0 !important;
    position: relative;
}

.krs-tui-addon-card:hover,
.krs-tui-service-row:hover,
.krs-service-label-card:hover {
    border-color: #1BA59D;
    background-color: rgba(27, 165, 157, 0.03);
    box-shadow: 0 2px 6px rgba(27, 165, 157, 0.1);
}

/* Active / Selected Card State */
.krs-tui-addon-card.is-active, .krs-tui-addon-card.active, .krs-tui-addon-card.selected,
.krs-tui-service-row.is-active, .krs-tui-service-row.active, .krs-tui-service-row.selected,
.krs-service-label-card.is-active, .krs-service-label-card.active, .krs-service-label-card.selected,
.krs-tui-addon-card:has(input[type="checkbox"]:checked),
.krs-tui-service-row:has(input[type="checkbox"]:checked),
.krs-service-label-card:has(input[type="checkbox"]:checked) {
    border-color: #1BA59D !important;
    background-color: rgba(27, 165, 157, 0.06) !important;
    box-shadow: 0 2px 8px rgba(27, 165, 157, 0.15) !important;
}

/* Addon Content Layout */
.krs-tui-addon-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.krs-tui-addon-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #2D1A68;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Touch UI Switch Toggle */
.krs-tui-switch,
.tui-switch {
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 24px;
    position: relative;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.krs-tui-switch-handle,
.tui-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Active Switch Toggle */
.krs-tui-addon-card.is-active .krs-tui-switch, .krs-tui-addon-card.active .krs-tui-switch, .krs-tui-addon-card.selected .krs-tui-switch,
.krs-tui-service-row.is-active .krs-tui-switch, .krs-tui-service-row.active .krs-tui-switch, .krs-tui-service-row.selected .krs-tui-switch,
.krs-service-label-card.is-active .krs-tui-switch, .krs-service-label-card.active .krs-tui-switch, .krs-service-label-card.selected .krs-tui-switch,
.krs-extra-card.active .krs-tui-switch, .krs-extra-card.is-active .krs-tui-switch, .krs-extra-card.selected .krs-tui-switch,
.krs-tui-addon-card:has(input:checked) .krs-tui-switch, .krs-tui-service-row:has(input:checked) .krs-tui-switch,
.krs-service-label-card:has(input:checked) .krs-tui-switch, .krs-extra-card:has(input:checked) .krs-tui-switch,
.krs-tui-addon-card.is-active .tui-switch, .krs-tui-addon-card.active .tui-switch, .krs-tui-addon-card.selected .tui-switch,
.krs-tui-service-row.is-active .tui-switch, .krs-tui-service-row.active .tui-switch, .krs-tui-service-row.selected .tui-switch,
.krs-service-label-card.is-active .tui-switch, .krs-service-label-card.active .tui-switch, .krs-service-label-card.selected .tui-switch,
.krs-extra-card.active .tui-switch, .krs-extra-card.is-active .tui-switch, .krs-extra-card.selected .tui-switch,
.krs-tui-addon-card:has(input:checked) .tui-switch, .krs-tui-service-row:has(input:checked) .tui-switch,
.krs-service-label-card:has(input:checked) .tui-switch, .krs-extra-card:has(input:checked) .tui-switch,
input:checked ~ .krs-tui-addon-main .krs-tui-switch, input:checked ~ .krs-tui-addon-main .tui-switch,
input:checked ~ .krs-extra-card-header .krs-tui-switch, input:checked ~ .krs-extra-card-header .tui-switch,
input:checked ~ .krs-tui-switch, input:checked ~ .tui-switch {
    background-color: #1BA59D !important;
}

.krs-tui-addon-card.is-active .krs-tui-switch-handle, .krs-tui-addon-card.active .krs-tui-switch-handle, .krs-tui-addon-card.selected .krs-tui-switch-handle,
.krs-tui-service-row.is-active .krs-tui-switch-handle, .krs-tui-service-row.active .krs-tui-switch-handle, .krs-tui-service-row.selected .krs-tui-switch-handle,
.krs-service-label-card.is-active .krs-tui-switch-handle, .krs-service-label-card.active .krs-tui-switch-handle, .krs-service-label-card.selected .krs-tui-switch-handle,
.krs-extra-card.active .krs-tui-switch-handle, .krs-extra-card.is-active .krs-tui-switch-handle, .krs-extra-card.selected .krs-tui-switch-handle,
.krs-tui-addon-card:has(input:checked) .krs-tui-switch-handle, .krs-tui-service-row:has(input:checked) .krs-tui-switch-handle,
.krs-service-label-card:has(input:checked) .krs-tui-switch-handle, .krs-extra-card:has(input:checked) .krs-tui-switch-handle,
.krs-tui-addon-card.is-active .tui-switch-handle, .krs-tui-addon-card.active .tui-switch-handle, .krs-tui-addon-card.selected .tui-switch-handle,
.krs-tui-service-row.is-active .tui-switch-handle, .krs-tui-service-row.active .tui-switch-handle, .krs-tui-service-row.selected .tui-switch-handle,
.krs-service-label-card.is-active .tui-switch-handle, .krs-service-label-card.active .tui-switch-handle, .krs-service-label-card.selected .tui-switch-handle,
.krs-extra-card.active .tui-switch-handle, .krs-extra-card.is-active .tui-switch-handle, .krs-extra-card.selected .tui-switch-handle,
.krs-tui-addon-card:has(input:checked) .tui-switch-handle, .krs-tui-service-row:has(input:checked) .tui-switch-handle,
.krs-service-label-card:has(input:checked) .tui-switch-handle, .krs-extra-card:has(input:checked) .tui-switch-handle,
input:checked ~ .krs-tui-addon-main .krs-tui-switch-handle, input:checked ~ .krs-tui-addon-main .tui-switch-handle,
input:checked ~ .krs-extra-card-header .krs-tui-switch-handle, input:checked ~ .krs-extra-card-header .tui-switch-handle,
input:checked ~ .krs-tui-switch-handle, input:checked ~ .tui-switch-handle {
    transform: translateX(20px) !important;
}

/* Touch UI Radio Indicator */
.krs-tui-radio-circle {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
    pointer-events: none;
}

.krs-tui-radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1BA59D;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    pointer-events: none;
}

.krs-tui-addon-card.is-active .krs-tui-radio-circle, .krs-tui-addon-card.active .krs-tui-radio-circle, .krs-tui-addon-card.selected .krs-tui-radio-circle,
.krs-tui-service-row.is-active .krs-tui-radio-circle, .krs-service-label-card.is-active .krs-tui-radio-circle,
.krs-tui-addon-card:has(input[type="radio"]:checked) .krs-tui-radio-circle, .krs-tui-service-row:has(input[type="radio"]:checked) .krs-tui-radio-circle,
.krs-service-label-card:has(input[type="radio"]:checked) .krs-tui-radio-circle, input[type="radio"]:checked ~ .krs-tui-addon-main .krs-tui-radio-circle {
    border-color: #1BA59D;
}

.krs-tui-addon-card.is-active .krs-tui-radio-dot, .krs-tui-addon-card.active .krs-tui-radio-dot, .krs-tui-addon-card.selected .krs-tui-radio-dot,
.krs-tui-service-row.is-active .krs-tui-radio-dot, .krs-service-label-card.is-active .krs-tui-radio-dot,
.krs-tui-addon-card:has(input[type="radio"]:checked) .krs-tui-radio-dot, .krs-tui-service-row:has(input[type="radio"]:checked) .krs-tui-radio-dot,
.krs-service-label-card:has(input[type="radio"]:checked) .krs-tui-radio-dot, input[type="radio"]:checked ~ .krs-tui-addon-main .krs-tui-radio-dot {
    opacity: 1;
    transform: scale(1);
}

/* Touch UI Hidden Checkbox */
.krs-tui-hidden-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Price Tags & Free Badge */
.krs-service-price-free {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.krs-tui-addon-card.is-active .krs-service-price-free, .krs-tui-addon-card.active .krs-service-price-free, .krs-tui-addon-card.selected .krs-service-price-free,
.krs-tui-service-row.is-active .krs-service-price-free, .krs-tui-service-row.active .krs-service-price-free, .krs-tui-service-row.selected .krs-service-price-free,
.krs-service-label-card.is-active .krs-service-price-free, .krs-tui-addon-card:has(input[type="checkbox"]:checked) .krs-service-price-free,
.krs-tui-service-row:has(input[type="checkbox"]:checked) .krs-service-price-free, .krs-service-label-card:has(input[type="checkbox"]:checked) .krs-service-price-free,
input[type="checkbox"]:checked ~ .krs-service-price-free {
    color: #1BA59D;
    background: rgba(27, 165, 157, 0.12);
}

/* Keyboard & Focus State */
.krs-tui-addon-card:has(.krs-tui-hidden-checkbox:focus-visible),
.krs-tui-service-row:has(.krs-tui-hidden-checkbox:focus-visible),
.krs-service-label-card:has(.krs-tui-hidden-checkbox:focus-visible),
.krs-extra-card:has(.krs-tui-hidden-checkbox:focus-visible) {
    outline: 2px solid #C05A86;
    outline-offset: 2px;
}

/* Dark Mode Support */
.kuad-krs-booking-widget.krs-dark-mode .krs-tui-addon-card,
.kuad-krs-booking-widget.krs-dark-mode .krs-tui-service-row,
.kuad-krs-booking-widget.krs-dark-mode .krs-service-label-card {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.kuad-krs-booking-widget.krs-dark-mode .krs-tui-addon-name {
    color: #f8fafc;
}

.kuad-krs-booking-widget.krs-dark-mode .krs-tui-switch,
.kuad-krs-booking-widget.krs-dark-mode .tui-switch {
    background: #334155;
}

.kuad-krs-booking-widget.krs-dark-mode .krs-service-price-free {
    background: #1e293b;
    color: #94a3b8;
}

/* Step 3 Subtotal Estimado display */
.krs-step3-price-indicator {
    border-top: 1px solid var(--kuad-krs-border, #e2e8f0);
    padding-top: 16px;
    margin-top: 24px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.krs-step3-price-label {
    font-size: 15px;
    color: var(--kuad-krs-text-light, #64748b);
    font-weight: 700;
}

.krs-step3-price-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Event Hall Extra Cards Touch UI */
.krs-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.krs-extra-card {
    background: #ffffff;
    border: 2px solid var(--kuad-krs-border, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    touch-action: manipulation;
    user-select: none;
    box-sizing: border-box;
}

.krs-extra-card:hover {
    border-color: #1BA59D;
    background-color: rgba(27, 165, 157, 0.03);
    box-shadow: 0 2px 6px rgba(27, 165, 157, 0.1);
}

.krs-extra-card.active,
.krs-extra-card.is-active,
.krs-extra-card.selected,
.krs-extra-card:has(input[type="checkbox"]:checked) {
    border-color: #1BA59D !important;
    background-color: rgba(27, 165, 157, 0.06) !important;
    box-shadow: 0 2px 8px rgba(27, 165, 157, 0.15) !important;
}

.krs-extra-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.krs-extra-card-icon {
    font-size: 24px;
    line-height: 1;
}

.krs-extra-card-title {
    margin: 4px 0 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #2D1A68;
}

.krs-extra-card-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--kuad-krs-text-light, #64748b);
}

.krs-extra-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.krs-extra-card-price-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.krs-extra-card-price-val {
    font-size: 15px;
    font-weight: 800;
    color: #1BA59D;
}

/* Event Hall Inventory Selectable Cards */
.krs-feature-card-selectable {
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
}

.krs-tui-indicator {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #C05A86;
    display: flex;
    align-items: center;
    gap: 4px;
}
