/* Recipes Tab Search Grid Widget Styles */
.rt-recipes-widget,
.custom-recipe-grid {
    
    margin: 0 auto;
    padding: 30px 15px;
    border-radius: 20px;
    background-color: rgba(244, 240, 236, 0.3);
}
div.rt-recipes-grid.row  div.col-12 {
  padding: 5px;
  margin-bottom: 0;
}
/* Ensure custom-recipe-grid has proper styling */
.custom-recipe-grid .rt-recipes-title,
.custom-recipe-grid .rt-recipes-tabs,
.custom-recipe-grid .rt-recipes-controls,
.custom-recipe-grid .rt-recipes-grid,
.custom-recipe-grid .rt-recipes-pagination {
    /* Inherit all styles from parent selectors */
}

/* Title Styles */
.rt-recipes-title {
    text-align: center;
    font-size: 76px;
    font-weight: 700;
    color: #460E10;
    margin-bottom: 40px;
    text-transform: none;
    letter-spacing: -3%;

    line-height: 1.2;
}

/* Tab Navigation */
.rt-recipes-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.rt-recipes-tabs .tab-item {
    background: transparent;
    border: 1px solid #460E10;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 500;
    color: #460E10;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rt-recipes-tabs .tab-item:hover {
    border-color: #460E10;
    color: #460E10;
    background-color: rgba(139, 69, 19, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.5);
}

.rt-recipes-tabs .tab-item.active {
    background-color: #460E10;
    border-color: #460E10;
    color: white;
    transform: translateY(-1px);
}

.rt-recipes-tabs .tab-item.active:hover {
    background-color: #7A3E11;
    border-color: #7A3E11;
    color: white;
}

/* Controls Section */
.rt-recipes-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 0px;
}

.recipe-count {
    font-size: 20px;
    color: #000000;
    font-weight: 400;
    font-family: Articulat CF, sans-serif;
}

.recipe-count .count-number {
    font-weight: 700;
    color: #000000;
    font-size: 18px;
}

.recipe-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

.filter-btn, .sort-btn {
    background: transparent;
    border: 2px solid #460E10;
    border-radius: 25px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    color: #460E10;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    line-height: 100%;
    font-family: Articulat CF, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    min-height: 48px;
    text-align: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(70, 14, 16, 0.1);
}

.filter-btn:hover, .sort-btn:hover {
    border-color: #E74C3C;
    color: #E74C3C;
    background-color: rgba(231, 76, 60, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}

.filter-btn.active, .sort-btn.active {
    background-color: #E74C3C;
    border-color: #E74C3C;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

.filter-btn.active:hover, .sort-btn.active:hover {
    background-color: #C0392B;
    border-color: #C0392B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.4);
}

/* Sort Dropdown - Simplified for Mobile */
.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid #460E10;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(70, 14, 16, 0.2);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 8px;
    overflow: hidden;
}

.sort-dropdown.active .sort-options {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sort-options a {
    display: block;
    padding: 16px 20px;
    color: #460E10;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(70, 14, 16, 0.1);
    font-family: inherit;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.sort-options a:last-child {
    border-bottom: none;
}

.sort-options a:hover {
    background-color: rgba(231, 76, 60, 0.08);
    color: #E74C3C;
    padding-left: 24px;
}

.sort-options a.active {
    background-color: #E74C3C;
    color: white;
    font-weight: 600;
}

.sort-options a.active:hover {
    background-color: #C0392B;
    color: white;
    padding-left: 20px;
}

/* Recipe Grid - Bootstrap Row */
.rt-recipes-grid.row {
    margin: 0 -15px;
    margin-bottom: 40px;
}

.rt-recipes-grid.row > [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* RT Recipe Grid Card Styles */
.rtin-single-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #F0F0F0;
}

.rtin-single-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Recipe Image */
.rtin-img {
    position: relative;
    overflow: hidden;
}

.rtin-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rtin-single-post:hover .rtin-img img {
    transform: scale(1.05);
}

/* Recipe Content */
.item-content.rtin-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sub-title {
    font-size: 12px;
    font-weight: 700;
    color: #8B4513;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.sub-title a {
    color: inherit;
    text-decoration: none;
}

.item-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title a:hover {
    color: #8B4513;
}

.rtin-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* Recipe Info */
.recipe-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.recipe-info-title {
    color: #333;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-info-value {
    color: #666;
}

/* Read More Button */
.item-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #E74C3C;
    color: #E74C3C;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    width: fit-content;
}

.item-btn:hover {
    background: #E74C3C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    text-decoration: none;
}

.item-btn i {
    font-size: 12px;
}

/* Entry Meta */
.entry-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.entry-meta li {
    font-size: 12px;
    color: #666;
}

.entry-meta li i {
    margin-right: 5px;
    color: #8B4513;
}

.entry-meta a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #333;
}

/* Pagination Styles */
.rt-recipes-pagination {
    margin-top: 40px;
    text-align: center;
}

.rt-recipes-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.rt-recipes-pagination .page-numbers li {
    margin: 0;
}

.rt-recipes-pagination .page-numbers a,
.rt-recipes-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.rt-recipes-pagination .page-numbers a:hover {
    border-color: #8B4513;
    color: #8B4513;
    background-color: rgba(139, 69, 19, 0.05);
}

.rt-recipes-pagination .page-numbers .current {
    background-color: #8B4513;
    border-color: #8B4513;
    color: white;
}

.rt-recipes-pagination .page-numbers .dots {
    border: none;
    background: none;
    color: #999;
}

/* Loading Spinner */
.rt-recipes-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No recipes found message */
.no-recipes-found {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .rt-recipes-widget,
    .custom-recipe-grid {
        padding: 20px 15px;
    }
    
    .rt-recipes-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .rt-recipes-tabs {
        gap: 8px;
        padding: 0 10px;
    }
    
    .rt-recipes-tabs .tab-item {
        padding: 12px 20px;
        min-width: 120px;
        font-size: 13px;
    }
    
    .rt-recipes-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 10px;
    }
    
    
    
    .filter-btn, .sort-btn {
        flex: 1;
        justify-content: center;
        min-width: auto;
    }

    .rt-recipes-widget {
        padding: 15px;
    }
    
    .rt-recipes-grid.row {
        margin: 0 -10px;
        margin-bottom: 30px;
    }
    
    .rt-recipes-grid.row > [class*="col-"] {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .rt-recipes-tabs {
        justify-content: center;
        gap: 8px;
    }
    
    .rt-recipes-tabs .tab-item {
        font-size: 12px;
        padding: 10px 16px;
        min-width: 100px;
    }
    
    .rt-recipes-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 15px;
    }
    
    .recipe-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        align-self: stretch;
        justify-content: space-between;
        flex-direction: column;
    }
    
    .filter-btn, .sort-btn {
        flex: 1;
        min-width: 160px;
        min-height: 56px;
        padding: 16px 32px;
        font-size: 18px;
        font-weight: 600;
        border-width: 2px;
        border-radius: 28px;
    }
    
    /* Mobile-friendly dropdown styling */
    .sort-dropdown {
        width: 100%;
        max-width: 200px;
    }
    
    .sort-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-options {
        left: 0;
        right: 0;
        min-width: auto;
        width: 100%;
        max-height: 280px;
        overflow-y: auto;
        border-radius: 20px;
        margin-top: 12px;
    }
    
    .sort-options a {
        padding: 18px 24px;
        font-size: 18px;
        min-height: 60px;
        font-weight: 500;
    }
    
    .sort-options a:hover {
        padding-left: 28px;
    }
    .rt-recipes-controls .filter-btn,
    .rt-recipes-controls .sort-btn {
        width:100%;
    }
    .rt-recipes-controls .sort-btn span{
        width:100%;
    }
    .rt-recipe-sort-dropdown{
        width:100%;
    }
}

@media (max-width: 992px) {
    .rt-recipes-title {
        font-size: 2rem;
    }
    
    .rtin-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .rt-recipes-title {
        font-size: 1.8rem;
    }
    
    .rt-recipes-tabs .tab-item {
        font-size: 11px;
        padding: 8px 12px;
        min-width: 90px;
    }
    
    .rtin-img {
        height: 160px;
    }
    
    .item-content.rtin-content {
        padding: 15px;
    }
    
    .rt-recipes-pagination .page-numbers a,
    .rt-recipes-pagination .page-numbers span {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 14px;
    }

    .rt-recipes-tabs .tab-item {
        padding: 10px 16px;
        min-width: 100px;
        font-size: 12px;
    }
    
    .filter-btn, .sort-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Animation for filtering */
.rt-recipes-grid [class*="col-"] {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects */
.rtin-single-post {
    position: relative;
    overflow: hidden;
}

.rtin-single-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 69, 19, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.rtin-single-post:hover::before {
    opacity: 1;
}

/* Tab active state enhancement */
.rt-recipes-tabs .tab-item.active {
    position: relative;
}

/* Hidden state for filtering */
.rt-recipes-grid [class*="col-"].hidden {
    display: none;
}

.rt-recipes-grid [class*="col-"].visible {
    display: block;
}



/* Responsive Design Improvements */




/* Additional Animation and Polish */
.rt-recipes-tabs .tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.rt-recipes-tabs .tab-item:hover::before {
    left: 100%;
}

/* .filter-btn::after, .sort-btn::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
} */

.sort-dropdown.active .sort-btn::after {
    transform: rotate(180deg);
}

/* Loading States */
.rt-recipes-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.rt-recipes-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #D4B5A0;
    border-top: 3px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus States for Accessibility */
.rt-recipes-tabs .tab-item:focus,
.filter-btn:focus,
.sort-btn:focus {
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

.sort-options a:focus {
    background-color: rgba(139, 69, 19, 0.1);
    outline: none;
}

/* =========================================
   Recipes Controls – Unified Dropdown UI
   Works for both .filter-dropdown and .sort-dropdown
   ========================================= */

.rt-recipes-controls { position: relative; }

/* Shared dropdown shell */
.rt-recipes-controls .filter-dropdown,
.rt-recipes-controls .sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;           /* light gray */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 1000;
  width: min(92vw, 360px);
  padding: 14px;
  display: none;                        /* hidden by default */
  max-height: 70vh;
  overflow: auto;
}

/* Open state (toggled by JS) */
.rt-recipes-controls .filter-dropdown.open,
.rt-recipes-controls .sort-dropdown.open { display: block; }

/* Headings + sections (Filter) */
.rt-recipes-controls .filter-dropdown h4 {
  margin: 8px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
}
.rt-recipes-controls .filter-dropdown .filter-section {
  padding: 8px 0 12px;
  border-top: 1px solid #f3f4f6;
}
.rt-recipes-controls .filter-dropdown .filter-section:first-of-type {
  border-top: 0;
}

.rt-recipes-controls .filter-dropdown label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.rt-recipes-controls .filter-dropdown label:hover { background: #fafafa; }

/* Bigger, accessible controls */
.rt-recipes-controls .filter-dropdown input[type="checkbox"],
.rt-recipes-controls .filter-dropdown input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #8b3a10;               /* theme brown */
}

/* Filter footer actions */
.rt-recipes-controls .filter-dropdown .filter-actions {
  display: flex; gap: 8px; justify-content: space-between; margin-top: 8px;
}
.rt-recipes-controls .filter-dropdown .reset-filters {
  background: #dc3545; color: #fff; border: 0; padding: 10px 14px;
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
.rt-recipes-controls .filter-dropdown .reset-filters:hover { filter: brightness(.95); }

/* Sort options – unify both variants (.sort-dropdown .sort-option and .sort-options > button) */
.rt-recipes-controls .sort-dropdown .sort-option,
.rt-recipes-controls .sort-options .sort-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
}
.rt-recipes-controls .sort-dropdown .sort-option + .sort-option,
.rt-recipes-controls .sort-options .sort-option + .sort-option {
  border-top: 1px solid #f3f4f6;
}
.rt-recipes-controls .sort-dropdown .sort-option:hover,
.rt-recipes-controls .sort-options .sort-option:hover {
  background: #fafafa;
}
.rt-recipes-controls .sort-options { display: none !important; } /* hide the duplicate list */

/* Active/checked visual */
.rt-recipes-controls .sort-dropdown .sort-option.active,
.rt-recipes-controls .sort-dropdown .sort-option[aria-selected="true"] {
  background: #f9f5f0;
}

/* Buttons */
.rt-recipes-controls .filter-btn,
.rt-recipes-controls .sort-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid #8b3a10;
  background: #fff; color: #8b3a10; font-weight: 600; font-size: 14px;
}
.rt-recipes-controls .filter-btn:hover,
.rt-recipes-controls .sort-btn:hover { background: #fdf7f2; }

/* Mobile: bottom sheet + backdrop */
@media (max-width: 640px) {
  .rt-recipes-controls .filter-dropdown,
  .rt-recipes-controls .sort-dropdown {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform .2s ease-out;
  }
  .rt-recipes-controls .filter-dropdown.open,
  .rt-recipes-controls .sort-dropdown.open { transform: translateY(0); }

  /* Backdrop created by JS */
  .rt-dd-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 999; opacity: 0; transition: opacity .2s ease;
  }
  .rt-dd-backdrop.show { opacity: 1; }
}



/* Shared dropdown shell (desktop default) */
.rt-recipes-controls .filter-dropdown,
.rt-recipes-controls .sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 1000;
  width: min(92vw, 360px);
  padding: 14px;
  display: none;
  max-height: 70vh;
  overflow: auto;
}

.rt-recipes-controls .filter-dropdown.open,
.rt-recipes-controls .sort-dropdown.open {
  display: block;
}

/* Mobile: convert to bottom sheet */
@media (max-width:640px){
  .rt-recipes-controls .filter-dropdown,
  .rt-recipes-controls .sort-dropdown{
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform .2s ease-out;
    z-index: 10001; /* above content */
  }
  .rt-recipes-controls .filter-dropdown.open,
  .rt-recipes-controls .sort-dropdown.open{
    transform: translateY(0);
  }

  /* Backdrop */
  .rt-dd-backdrop{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
    opacity: 0;
    transition: opacity .2s ease;
  }
  .rt-dd-backdrop.show{ opacity: 1; }
}
/* === OVERRIDES: make dropdowns "normal" popovers on mobile too === */

/* Ensure the buttons' wrappers are anchoring the popovers */
.rt-recipes-controls .recipe-actions,
.rt-recipes-controls .rt-recipe-sort-dropdown { position: relative; overflow: visible; }

/* Popover shell — keep desktop behavior */
.rt-recipes-controls .filter-dropdown,
.rt-recipes-controls .sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  transform: none;
  width: min(92vw, 360px);
  max-height: 70vh;
  display: none; /* JS toggles .open */
}

/* Open state */
.rt-recipes-controls .filter-dropdown.open,
.rt-recipes-controls .sort-dropdown.open { display: block; }

/* --- Mobile overrides: remove bottom-sheet + backdrop --- */
@media (max-width: 640px) {
  /* Popovers, not fixed bottom-sheets */
  .rt-recipes-controls .filter-dropdown,
  .rt-recipes-controls .sort-dropdown {
    position: absolute !important;
    left: 0;              /* anchor under each button */
    right: 0;
    bottom: auto !important;
    top: calc(100% + 8px) !important;
    transform: none !important;
    width: auto;          /* fill the button row width */
    max-width: none;      /* or set a specific width if you prefer */
    max-height: 60vh;     /* smaller scroll area on phones */
    border-radius: 12px;
    z-index: 10001;
  }

  /* Filter: full width of the actions row */
  .rt-recipes-controls .filter-btn + .filter-dropdown { left: 0; right: 0; }

  /* Sort: right aligned, narrower */
  .rt-recipes-controls .rt-recipe-sort-dropdown .sort-dropdown {
    width: 280px;
    left: auto;
    right: 0;
  }

  /* Hide the dimmed backdrop used by the old bottom-sheet UX */
  .rt-dd-backdrop { display: none !important; }
}
