/**
 * Dallas — Własny select: wygląd
 */

.dallas-select {
    position: relative;
    width: 100%;
}

.dallas-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.dallas-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dallas-select-trigger:hover {
    border-color: #c5c5c5;
}

.dallas-select-trigger:focus-visible,
.dallas-open .dallas-select-trigger {
    outline: none;
    border-color: var(--theme-palette-color-1);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .08);
}

.dallas-select-trigger:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.dallas-select-value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dallas-select-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease;
}

.dallas-open .dallas-select-chevron {
    transform: rotate(180deg);
}

.dallas-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    z-index: 999;
}

.dallas-open .dallas-select-dropdown {
    display: block;
}

.dallas-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.dallas-select-option:hover,
.dallas-select-option:focus-visible {
    outline: none;
    background: #f7f7f7;
}

.dallas-select-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dallas-select-option.dallas-selected {
    font-weight: 600;
    color: var(--theme-palette-color-1);
}

.dallas-select-check {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .18s ease;
    color: var(--theme-palette-color-1);
}

.dallas-select-option.dallas-selected .dallas-select-check {
    opacity: 1;
}

@media (max-width: 999px) {
    .woocommerce-ordering .ct-sort-icon {
        display: none !important;
    }
}

