/* ==========================================================================
   Flavor Menu – Admin Styles
   ========================================================================== */

#flavor-prices-wrap .flavor-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#flavor-prices-wrap .flavor-drag-handle {
    cursor: grab;
    color: #b4b4b4;
    flex-shrink: 0;
}

#flavor-prices-wrap .flavor-drag-handle:active {
    cursor: grabbing;
}

#flavor-prices-wrap .flavor-price-label {
    flex: 1;
    min-width: 120px;
}

#flavor-prices-wrap .flavor-price-value {
    width: 130px;
    flex-shrink: 0;
}

#flavor-prices-wrap .flavor-remove-price {
    flex-shrink: 0;
    color: #a00;
    border-color: transparent;
    background: transparent;
    padding: 2px 6px;
}

#flavor-prices-wrap .flavor-remove-price:hover {
    color: #dc3232;
    background: #fef1f1;
}

#flavor-prices-wrap .flavor-remove-price .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

#flavor-prices-wrap .flavor-price-row.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

#flavor-prices-wrap .flavor-price-row.ui-sortable-placeholder {
    visibility: visible !important;
    background: #e8f4fc;
    border: 1px dashed #72aee6;
}

/* Admin column styling */
.column-flavor_price {
    width: 120px;
}

/* ==========================================================================
   Category Sort – Drag & Drop
   ========================================================================== */

.flavor-cat-sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 600px;
}

.flavor-cat-sort-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: box-shadow 0.15s, background 0.15s;
    user-select: none;
}

.flavor-cat-sort-item:hover {
    background: #fafafa;
}

.flavor-cat-sort-handle {
    cursor: grab;
    color: #b4b4b4;
    flex-shrink: 0;
}

.flavor-cat-sort-handle:active {
    cursor: grabbing;
}

.flavor-cat-sort-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.flavor-cat-sort-count {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.flavor-cat-sort-slug {
    font-size: 11px;
    color: #b0b0b0;
    font-family: monospace;
    flex-shrink: 0;
}

.flavor-cat-sort-item.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #72aee6;
}

.flavor-cat-sort-placeholder {
    height: 48px;
    margin-bottom: 4px;
    background: #e8f4fc;
    border: 1px dashed #72aee6;
    border-radius: 6px;
    visibility: visible !important;
}

/* Hierarchical styles */
.flavor-cat-sort-item--parent .flavor-cat-sort-name {
    font-weight: 700;
}

.flavor-cat-sort-children-wrap {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0;
}

.flavor-cat-sort-children {
    list-style: none;
    margin: 0 0 0 32px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid #ddd;
}

.flavor-cat-sort-item--child {
    background: #fafafa;
    border-color: #e4e4e4;
}

.flavor-cat-sort-item--child .flavor-cat-sort-name {
    font-weight: 500;
}

.flavor-cat-sort-child-indent {
    color: #b4b4b4;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: -4px;
}

.flavor-cat-sort-placeholder--child {
    height: 42px;
    margin-left: 0;
}

/* ==========================================================================
   Badge Admin
   ========================================================================== */

.flavor-badges-list {
    max-width: 750px;
}

.flavor-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: box-shadow 0.15s;
}

.flavor-badge-row:hover {
    background: #fafafa;
}

.flavor-badge-drag {
    cursor: grab;
    color: #b4b4b4;
    flex-shrink: 0;
}

.flavor-badge-drag:active {
    cursor: grabbing;
}

.flavor-badge-preview {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.03em;
}

.flavor-badge-field {
    flex: 1;
    min-width: 0;
}

.flavor-badge-color,
.flavor-badge-text-color {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.flavor-badge-remove {
    flex-shrink: 0;
    color: #a00;
    border-color: transparent;
    background: transparent;
    padding: 2px 6px;
}

.flavor-badge-remove:hover {
    color: #dc3232;
    background: #fef1f1;
}

.flavor-badge-remove .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.flavor-badge-row.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #72aee6;
}

.flavor-badge-placeholder {
    height: 52px;
    margin-bottom: 4px;
    background: #e8f4fc;
    border: 1px dashed #72aee6;
    border-radius: 6px;
    visibility: visible !important;
}

/* ==========================================================================
   Pro Feature Notice & Locked Overlay
   ========================================================================== */

.flavor-pro-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin: 16px 0 24px;
    background: #fffbf0;
    border: 1px solid #e8c84c;
    border-left: 4px solid #c9a84c;
    border-radius: 6px;
    max-width: 900px;
}

.flavor-pro-notice__icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.flavor-pro-notice__text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #5a4200;
}

.flavor-pro-notice__btn.button-primary {
    flex-shrink: 0;
    background: #c9a84c !important;
    border-color: #b8933c !important;
    color: #fff !important;
    font-weight: 600 !important;
    white-space: nowrap;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background 0.15s;
}

.flavor-pro-notice__btn.button-primary:hover,
.flavor-pro-notice__btn.button-primary:focus {
    background: #b8933c !important;
    border-color: #a07830 !important;
}

.flavor-pro-locked {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    filter: grayscale(15%);
}
