/* ===== BOOKING RULES MODAL ===== */
.rule-type-card {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    user-select: none;
}
.rule-type-card:hover { border-color: #dd1847; color: #dd1847; }
.rule-type-card.selected { border-color: #dd1847; background: #fdf2f5; color: #dd1847; font-weight: 600; }

.limit-type-card {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
}
.limit-type-card:hover { border-color: #dd1847; }
.limit-type-card.selected { border-color: #dd1847; background: #fdf2f5; }

.client-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.client-toggle input { opacity: 0; width: 0; height: 0; }
.client-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 26px; }
.client-toggle-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; }
.client-toggle input:checked + .client-toggle-slider { background-color: #dd1847; }
.client-toggle input:checked + .client-toggle-slider:before { transform: translateX(22px); }

.rule-period-block {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
}

.time-counter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8f8f8;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.time-counter-btn:hover { background: #f0f0f0; }
.time-counter-value { font-size: 16px; font-weight: 600; color: #dd1847; }

.switch-row {
    display: flex;
    gap: 6px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 12px;
}
.switch-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
}
.switch-btn.active {
    background: #fff;
    color: #dd1847;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.condition-search {
    position: relative;
    margin-bottom: 8px;
}
.condition-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #999;
    z-index: 2;
    pointer-events: none;
}
.condition-search input {
    width: 100%;
    padding: 10px 10px 10px 38px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    background: #fff;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.condition-search input:focus { border-color: #dd1847; }

.condition-select-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}
.condition-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}
.condition-select-item:hover { background: #f0f0f0; }
.condition-select-item.selected { background: #fdf2f5; border-color: #dd1847; }

.check-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.condition-select-item.selected .check-circle { background: #dd1847; border-color: #dd1847; }
.check-circle svg { width: 12px; height: 12px; stroke: white; display: none; }
.condition-select-item.selected .check-circle svg { display: block; }

.rule-time-unit-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.rule-time-unit-btn.active {
    background: #fff;
    color: #dd1847;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rule-counter-btn {
    width: 56px;
    height: 56px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
    font-family: inherit;
}
.rule-counter-btn:hover { border-color: #dd1847; color: #dd1847; background: #fdf2f5; }
.rule-counter-btn:active { background: #dd1847; color: #fff; border-color: #dd1847; }

.consent-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.consent-save-btn {
    width: 100%;
    padding: 14px;
    background: #dd1847;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.consent-save-btn:hover { background: #c1163d; }