/**
 * Nutridolç Guixetes — Estils Frontend (Checkout)
 *
 * Les variables CSS són injectades pel JS amb els colors corporatius
 * configurats al panell d'opcions del plugin.
 */

#nutridolc-franja-wrap {
    margin: 16px 0 6px 0;
    padding: 18px;
    background: #ffffff;
    border-radius: 8px;
    border: 1.5px solid var(--nutridolc-color-main, #6b4423);
    font-family: 'Poppins', sans-serif;
    position: relative;
    box-shadow: 0 2px 8px rgba(107, 68, 35, 0.08);
}

#nutridolc-franja-wrap .nf-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--nutridolc-color-main, #6b4423);
    font-size: 14px;
}

.nf-dropdown {
    position: relative;
    user-select: none;
}

.nf-dropdown-toggle {
    width: 100%;
    padding: 12px 40px 12px 14px;
    background: #ffffff;
    border: 1.5px solid var(--nutridolc-color-main, #6b4423);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--nutridolc-color-main, #6b4423);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.nf-dropdown-toggle:hover,
.nf-dropdown-toggle:focus {
    border-color: var(--nutridolc-color-dark, #4a2f18);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 68, 35, 0.12);
}

.nf-dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--nutridolc-color-main, #6b4423);
    border-bottom: 2px solid var(--nutridolc-color-main, #6b4423);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.nf-dropdown.open .nf-dropdown-toggle::after {
    transform: translateY(-30%) rotate(-135deg);
}

.nf-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid var(--nutridolc-color-main, #6b4423);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(107, 68, 35, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 4px 0;
}

.nf-dropdown.open .nf-dropdown-menu {
    display: block;
}

.nf-dropdown-item {
    padding: 11px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--nutridolc-color-main, #6b4423);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(107, 68, 35, 0.06);
}

.nf-dropdown-item:last-child {
    border-bottom: none;
}

.nf-dropdown-item:hover,
.nf-dropdown-item.focused {
    background: var(--nutridolc-color-soft, rgba(107, 68, 35, 0.06));
}

.nf-dropdown-item.selected {
    background: var(--nutridolc-color-soft, rgba(107, 68, 35, 0.06));
    font-weight: 600;
}

.nf-dropdown-item .nf-places {
    font-size: 12px;
    color: #8a6a4a;
    font-weight: 400;
    margin-left: 6px;
}

.nf-dropdown-item.disabled {
    color: #bbb;
    cursor: default;
}

#nutridolc-franja-info {
    margin: 10px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #8a6a4a;
    font-weight: 500;
    min-height: 18px;
}

#nutridolc-franja-info.confirmed {
    color: #2d8a4e;
    font-weight: 600;
}

.nf-info-checkout {
    margin: 14px 0 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: var(--nutridolc-color-main, #6b4423);
    opacity: 0.72;
}
