/* Filter Panel Polish */
#filterContent {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

#filterContent .options {
    scrollbar-gutter: stable;
}

.filter-block {
    padding-top: 0.25rem;
}

.filter-group {
    position: relative;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.filter-group-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.filter-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.filter-section-reset-button {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 1.7rem;
    padding: 0.24rem 0.56rem;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-section-reset-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.filter-section-reset-button.is-enabled {
    background: rgba(92, 84, 160, 0.06);
    border-color: rgba(92, 84, 160, 0.12);
    color: #64748b;
}

.filter-section-reset-button.is-enabled:hover {
    background: rgba(92, 84, 160, 0.1);
    border-color: rgba(92, 84, 160, 0.2);
    color: #5C54A0;
    box-shadow: 0 8px 16px rgba(92, 84, 160, 0.08);
}

.filter-section-reset-button.is-disabled,
.filter-section-reset-button:disabled {
    background: rgba(248, 250, 252, 0.88);
    border-color: rgba(226, 232, 240, 0.92);
    color: #cbd5e1;
    cursor: default;
    box-shadow: none;
}

.filter-section-reset-icon {
    font-size: 10px;
    transition: color 0.15s ease;
}

.filter-section-reset-button.is-enabled .filter-section-reset-icon {
    color: #8c85c7;
}

.filter-section-reset-button.is-disabled .filter-section-reset-icon,
.filter-section-reset-button:disabled .filter-section-reset-icon {
    color: #cbd5e1;
}

.filter-block-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.filter-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.filter-section-title {
    margin: 0;
    padding-left: 0.125rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
}

.filter-group-head + .option-container {
    margin-top: 0.95rem;
}

.filter-group-head + .filter-section-title {
    margin-top: 0.55rem;
}

.filter-section-title + .option-container {
    margin-top: 0.8rem;
}

.option-container + .filter-section-title {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.24);
}

.filter-option-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

.filter-option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.9);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.filter-option-row:hover {
    transform: translateY(-1px);
    border-color: rgba(92, 84, 160, 0.24);
    background: rgba(92, 84, 160, 0.04);
}

.filter-option-row.is-active {
    border-color: rgba(92, 84, 160, 0.28);
    background: rgba(92, 84, 160, 0.06);
    box-shadow: 0 8px 20px rgba(92, 84, 160, 0.06);
}

.filter-option-checkbox {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    accent-color: #5C54A0;
}

.filter-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
}

.filter-option-row.is-active .filter-option-label {
    color: #312e81;
}

.filter-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.filter-chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.875rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 9999px;
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.filter-chip-button.is-inactive {
    background: rgba(248, 250, 252, 0.95);
    color: #64748b;
}

.filter-chip-button.is-inactive:hover {
    border-color: rgba(92, 84, 160, 0.24);
    background: rgba(92, 84, 160, 0.06);
    color: #5C54A0;
}

.filter-chip-button.is-active {
    border-color: rgba(92, 84, 160, 0.28);
    background: rgba(92, 84, 160, 0.12);
    color: #5C54A0;
    box-shadow: 0 8px 20px rgba(92, 84, 160, 0.12);
}

.filter-range-surface {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.range-summary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(203, 213, 225, 0.9);
    color: #5C54A0;
    font-size: 0.71875rem;
    font-weight: 800;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.range-summary-button:hover {
    background: rgba(92, 84, 160, 0.1);
    border-color: rgba(92, 84, 160, 0.2);
}

.filter-range-boundary {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
}

.range-filter-summary-icon {
    font-size: 10px;
    color: #8c85c7;
}

#rangeFilterContainer {
    margin-bottom: 0.75rem;
}

.range-filter-shell {
    margin-top: 0.7rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.range-filter-slider-wrap {
    position: relative;
    height: 36px;
    margin: 0 0 0.3rem;
    touch-action: none;
}

.range-filter-track,
.range-filter-track-active {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    border-radius: 9999px;
}

.range-filter-track {
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0.18) 100%);
}

.range-filter-track-active {
    background: linear-gradient(90deg, #5C54A0 0%, #7c77d9 100%);
    box-shadow: 0 0 0 1px rgba(92, 84, 160, 0.08);
}

.range-filter-thumb {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 2px solid #5C54A0;
    border-radius: 9999px;
    box-shadow: 0 3px 8px rgba(92, 84, 160, 0.22);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.range-filter-thumb.is-min {
    z-index: 2;
}

.range-filter-thumb.is-max {
    z-index: 3;
}

#btnRangeReset:hover .range-filter-summary-icon {
    color: #5C54A0;
}

#filterApplyBtnContainer {
    padding-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

#btnFilterReset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    background: rgba(92, 84, 160, 0.05);
    color: #6b7280;
    white-space: nowrap;
    word-break: keep-all;
    flex-shrink: 0;
}

#btnFilterReset:hover {
    background: rgba(92, 84, 160, 0.08);
    color: #5C54A0;
}

#btnCancel {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#btnCancel:hover {
    transform: translateY(-1px);
}

#btnCancel[data-action-mode="cancel"] {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(203, 213, 225, 0.95);
    color: #475569;
}

#btnCancel[data-action-mode="reset"] {
    border-color: rgba(92, 84, 160, 0.24);
    background: rgba(92, 84, 160, 0.06);
    color: #5C54A0;
}

#btnCancel[data-action-mode="reset"]:hover {
    background: rgba(92, 84, 160, 0.1);
}

@media (max-width: 1023px) {
    .filter-block,
    .filter-group,
    #rangeFilterContainer > div {
        border-radius: 1.125rem;
    }
}

/* Coupon Enhancement Styles */
.coupon-badge-ticket {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #FF4D4D;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 6px;
    padding-bottom: 2px;
    border-radius: 3px;
    letter-spacing: -0.02em;
    overflow: hidden;
    line-height: 1;
}

.coupon-badge-ticket::before,
.coupon-badge-ticket::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    top: 50%;
    margin-top: -2px;
}

.coupon-badge-ticket::before {
    left: -2px;
}

.coupon-badge-ticket::after {
    right: -2px;
}

.discount-tag-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FF4D4D;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
}

.price-container-enhanced {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.coupon-applied-container {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
