/* GOOGLE PLACES AUTOCOMPLETE */
.pac-container{z-index:99999!important;border:1px solid #e4e7e5;border-radius:10px;margin-top:8px;box-shadow:0 8px 25px rgba(0,0,0,.15);font-family:inherit;}
.pac-item{padding:10px 12px;cursor:pointer;font-size:13px;}
.pac-item:hover,.pac-item-selected{background:#e7f5ed;}
.pac-item-query{font-size:14px;color:#171717;}

/* ================= CATERBULL SEARCH BAR ================= */
.cb-search-wrapper{position:relative;width:100%;max-width:1000px;margin:24px 0 0;z-index:20;color:#171717;text-align:left;}
.cb-search-wrapper *{box-sizing:border-box;}
.cb-search-wrapper [hidden]{display:none!important;}
.cb-search-form{display:flex;align-items:center;width:100%;padding:6px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 5px 25px rgba(0,0,0,.12);}
.cb-search-section{position:relative;flex:1;min-width:0;}
.cb-search-section[data-section="what"],.cb-search-section[data-section="where"]{flex:1.2;}
.cb-search-section[data-section="when"]{flex:1;}
.cb-search-section:not(:nth-child(3))::after{content:"";position:absolute;right:0;top:12px;bottom:12px;width:1px;background:#e2e2e2;pointer-events:none;}

/* SEARCH FIELDS */
.cb-search-field{position:relative;padding:10px 18px;border:2px solid transparent;border-radius:12px;cursor:pointer;transition:background .2s,border-color .2s;}
.cb-search-field:hover{background:#f5f7f6;}
.cb-search-field.active,.cb-search-section.active .cb-search-field,.cb-search-field:focus-within{border-color:#005c40;background:#f7fcf9;}
.cb-search-field label{display:block;font-size:14px;font-weight:700;color:#171717;margin:0 0 4px;cursor:pointer;line-height:1.3;}
.cb-search-field label small{font-size:10px;font-weight:400;color:#888;}
.cb-search-field input{display:block;width:100%;min-width:0;padding:0;margin:0;background:transparent;border:0;outline:none!important;box-shadow:none!important;font-family:inherit;font-size:14px;line-height:22px;color:#222;text-overflow:ellipsis;}
.cb-search-field input::placeholder{color:#858585;opacity:1;}
.cb-search-field input[readonly]{cursor:pointer;}
.cb-mobile-field-icon,.cb-mobile-field-button,.cb-mobile-datetime,.cb-mobile-search-text{display:none;}

/* SEARCH BUTTON */
.cb-search-button{display:flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;align-self:stretch;min-width:125px;padding:12px 20px;margin-left:6px;background:#005c40;color:#fff;border:0;border-radius:11px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s;}
.cb-search-button:hover{background:#00452d;}
.cb-search-button:disabled{opacity:.55;cursor:not-allowed;}
.cb-search-button svg{width:19px;height:19px;flex-shrink:0;}

/* COMMON POPUP */
.cb-search-popup{position:absolute;top:calc(100% + 18px);left:0;width:420px;padding:24px;background:#fff;color:#171717;border:1px solid #e4e7e5;border-radius:16px;box-shadow:0 12px 35px rgba(0,0,0,.17);z-index:100;text-align:left;animation:cbPopupIn .18s ease;}
.cb-what-popup,.cb-where-popup{width:440px;}
.cb-when-popup{width:540px;left:auto;right:0;}
@keyframes cbPopupIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:translateY(0);}}
.cb-popup-heading{font-size:12px;font-weight:600;color:#777;margin:0 0 12px;}
.cb-search-popup button{font-family:inherit;}
.cb-search-popup svg{flex-shrink:0;}
.cb-recent-searches,.cb-recent-addresses{margin-bottom:20px;}
.cb-recent-searches:empty,.cb-recent-addresses:empty,.cb-search-results:empty,.cb-address-results:empty{display:none;}
.cb-popup-heading:has(+ div:empty){display:none;}

/* RESTAURANT AND ADDRESS RESULTS */
.cb-search-results,.cb-address-results{max-height:260px;overflow-y:auto;margin-bottom:16px;}
.cb-result-item,.cb-recent-item,.cb-address-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 8px;background:#fff;border:0;border-bottom:1px solid #f0f0f0;text-align:left;color:#171717;cursor:pointer;border-radius:8px;}
.cb-result-item:hover,.cb-recent-item:hover,.cb-address-item:hover{background:#eef7f2;}
.cb-result-item:last-child,.cb-recent-item:last-child,.cb-address-item:last-child{border-bottom:0;}
.cb-result-item svg,.cb-recent-item svg,.cb-address-item svg{width:20px;height:20px;color:#005c40;flex-shrink:0;}
.cb-result-item img{width:46px;height:46px;border-radius:8px;object-fit:cover;}
.cb-result-item span,.cb-recent-item span,.cb-address-item span{min-width:0;overflow-wrap:anywhere;}
.cb-result-item strong,.cb-recent-item strong,.cb-address-item strong{display:block;font-size:14px;font-weight:600;}
.cb-result-item small,.cb-recent-item small,.cb-address-item small{display:block;font-size:12px;color:#777;margin-top:4px;}
.cb-search-loading,.cb-no-results{padding:15px 5px;font-size:13px;color:#777;text-align:center;}

/* POPULAR CUISINES */
.cb-cuisine-list{display:flex;flex-wrap:wrap;gap:8px;}
.cb-cuisine-option{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;border:1px solid #d8ddda;border-radius:30px;background:#fff;color:#222;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;}
.cb-cuisine-option svg{width:14px;height:14px;}
.cb-cuisine-option:hover,.cb-cuisine-option.active{background:#e7f5ed;border-color:#005c40;color:#005c40;}

/* DELIVERY AND PICKUP */
.cb-order-type{display:flex;align-items:center;gap:4px;padding:4px;margin-bottom:20px;background:#f2f3f3;border-radius:30px;}
.cb-order-option{flex:1;padding:10px 15px;background:transparent;color:#333;border:0;border-radius:30px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;}
.cb-order-option.active{background:#005c40;color:#fff;box-shadow:0 2px 5px rgba(0,92,64,.15);}
.cb-order-option:not(.active):hover{background:#e3e9e5;}

/* CURRENT LOCATION */
.cb-current-location{display:flex;align-items:center;gap:14px;width:100%;padding:8px 0 18px;background:none;border:0;text-align:left;color:#171717;cursor:pointer;}
.cb-location-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border-radius:10px;background:#eaf5ef;color:#005c40;}
.cb-location-icon svg{width:22px;height:22px;}
.cb-current-location strong{display:block;font-size:14px;font-weight:600;margin-bottom:4px;}
.cb-current-location small{display:block;font-size:12px;color:#777;}
.cb-current-location:hover strong{color:#005c40;}
.cb-current-location:disabled,.cb-mobile-field-button:disabled{opacity:.5;cursor:not-allowed;}

/* INFORMATION BOX */
.cb-search-info{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:14px;background:#eff6fc;border-radius:8px;color:#243747;font-size:12px;line-height:1.6;}
.cb-search-info svg{width:19px;height:19px;color:#2476ba;margin-top:1px;}

/* DESKTOP DATE AND TIME */
.cb-datetime-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;}
.cb-calendar{min-width:0;}
.cb-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px;}
.cb-calendar-header strong{font-size:15px;font-weight:700;color:#171717;}
.cb-calendar-navigation{display:flex;align-items:center;gap:5px;}
.cb-calendar-navigation button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:#eaf5ef;border:1px solid #dce9e1;border-radius:50%;color:#005c40;cursor:pointer;}
.cb-calendar-navigation button svg{display:block;width:18px;height:18px;stroke:currentColor;flex-shrink:0;}
.cb-calendar-navigation button:hover:not(:disabled){background:#005c40;color:#fff;}
.cb-calendar-navigation button:disabled{background:#f5f5f5;color:#b5b5b5;border-color:#eee;opacity:1;cursor:not-allowed;}
.cb-calendar-weekdays,.cb-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center;}
.cb-calendar-weekdays{margin-bottom:8px;}
.cb-calendar-weekdays span{padding:5px 0;font-size:12px;font-weight:600;color:#888;}
.cb-calendar-days button,.cb-calendar-day{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;min-width:0;padding:0;border:1px solid transparent;border-radius:7px;background:#fff;color:#171717;font-size:13px;font-weight:600;cursor:pointer;}
.cb-calendar-days button:hover:not(:disabled){background:#e5f4eb;color:#005c40;}
.cb-calendar-days button.today{border-color:#005c40;color:#005c40;}
.cb-calendar-days button.selected,.cb-calendar-days button.active{background:#005c40!important;color:#fff!important;border-color:#005c40;}
.cb-calendar-days button.other-month{color:#aaa;}
.cb-calendar-days button:disabled,.cb-calendar-days button.disabled{background:#f7f7f7;color:#c6c6c6;cursor:not-allowed;}
.cb-calendar-days .cb-calendar-empty{visibility:hidden;}

/* TIME SLOTS */
.cb-time-section{min-width:0;border:1px solid #e0e4e1;border-radius:12px;padding:12px;}
.cb-time-heading{font-size:13px;font-weight:600;color:#555;margin-bottom:12px;}
.cb-time-list{display:flex;flex-direction:column;gap:4px;height:225px;overflow-y:auto;padding-right:4px;overscroll-behavior:contain;}
.cb-time-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;background:#fff;border:1px solid transparent;border-radius:7px;color:#222;font-size:13px;text-align:left;cursor:pointer;}
.cb-time-option::before{content:"";display:block;width:15px;height:15px;flex-shrink:0;border:1px solid #aaa;border-radius:50%;}
.cb-time-option:hover{background:#f0f6f2;}
.cb-time-option.selected,.cb-time-option.active{background:#e7f5ed;color:#005c40;border-color:#c7e4d3;font-weight:600;}
.cb-time-option.selected::before,.cb-time-option.active::before{background:#005c40;border-color:#005c40;box-shadow:inset 0 0 0 3px #fff;}
.cb-time-option:disabled{opacity:.4;cursor:not-allowed;}
.cb-time-empty{display:flex;align-items:center;justify-content:center;min-height:100px;text-align:center;font-size:12px;color:#999;}

/* DATE TIME ACTIONS */
.cb-datetime-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px;}
.cb-skip-button,.cb-apply-button{padding:10px 20px;border:1px solid #005c40;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s;}
.cb-skip-button{background:#fff;color:#005c40;}
.cb-skip-button:hover{background:#e7f5ed;}
.cb-apply-button{background:#005c40;color:#fff;}
.cb-apply-button:hover{background:#00452d;}
.cb-apply-button:disabled{opacity:.5;cursor:not-allowed;}

/* GOOGLE ADDRESS SUGGESTIONS */
.cb-address-results{max-height:300px;overflow-y:auto;margin:12px 0;}
.cb-suggestion-heading{font-size:12px;font-weight:600;color:#666;margin:0 0 8px;padding:0 4px;}
.cb-google-suggestion{display:flex;align-items:center;gap:12px;width:100%;padding:10px 8px;border:0;background:#fff;border-radius:10px;text-align:left;cursor:pointer;transition:background .15s ease;}
.cb-google-suggestion:hover,.cb-google-suggestion.selected{background:#eaf5ef;}
.cb-google-suggestion strong{display:block;color:#171717;font-size:14px;font-weight:600;line-height:20px;}
.cb-google-suggestion small{display:block;color:#666;font-size:13px;line-height:20px;}
.cb-google-suggestion svg{width:20px;height:20px;color:#005c40;flex-shrink:0;}
.cb-address-status{padding:14px 8px;font-size:13px;line-height:20px;color:#777;}
.cb-google-attribution{display:flex;justify-content:flex-end;align-items:center;padding:14px 4px 0;}
.cb-google-attribution img{display:block;width:auto;height:15px;object-fit:contain;}

/* CUSTOM SCROLLBAR */
.cb-time-list,.cb-search-results,.cb-address-results,.cb-search-popup{scrollbar-width:thin;scrollbar-color:#cbd6cf transparent;}
.cb-time-list::-webkit-scrollbar,.cb-search-results::-webkit-scrollbar,.cb-address-results::-webkit-scrollbar,.cb-search-popup::-webkit-scrollbar{width:5px;}
.cb-time-list::-webkit-scrollbar-thumb,.cb-search-results::-webkit-scrollbar-thumb,.cb-address-results::-webkit-scrollbar-thumb,.cb-search-popup::-webkit-scrollbar-thumb{background:#cbd6cf;border-radius:10px;}

/* SEARCH ERROR */
.cb-search-error{display:flex;align-items:center;gap:8px;margin-top:10px;padding:11px 14px;border:1px solid #f2b8b8;border-radius:8px;background:#fff1f1;color:#b42318;font-size:13px;font-weight:500;}
.cb-search-error svg{width:18px;height:18px;flex-shrink:0;}
.cb-search-field.invalid{border-color:#dc3545;background:#fff7f7;}

/* HERO INTEGRATION */
.hero:has(.cb-search-wrapper),.hero .hero-content:has(.cb-search-wrapper){overflow:visible;}
.hero .cb-search-wrapper{max-width:1000px;}
.hero .cb-search-wrapper p{color:inherit;margin:0;}
.hero .cb-search-wrapper button:focus-visible{outline:2px solid #005c40;outline-offset:2px;}

/* TABLET */
@media(max-width:991px){
    .cb-search-wrapper{max-width:100%;}
    .cb-search-field{padding:10px 12px;}
    .cb-search-field input{font-size:13px;}
    .cb-search-button{min-width:100px;padding:12px 15px;}
    .cb-what-popup,.cb-where-popup{width:380px;}
    .cb-when-popup{width:500px;}
}

/* ================= MOBILE SEARCH UI ================= */
@media(max-width:767px){
    .cb-search-wrapper{width:100%;max-width:100%;margin-top:20px;}
    .cb-search-form{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;}
    .cb-search-section{position:relative;flex:auto!important;width:100%;min-width:0;}
    .cb-search-section::after{display:none!important;}
    .cb-search-section:has(.cb-search-field.active){z-index:110;}

    /* MOBILE FIELDS */
    .cb-search-field{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:12px 16px;background:#fff;border:2px solid transparent;border-radius:30px;}
    .cb-search-field:hover{background:#fff;}
    .cb-search-field.active,.cb-search-field:focus-within{background:#fff;border-color:#005c40;}
    .cb-search-field label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
    .cb-search-field input{flex:1;width:0;min-width:0;font-size:16px;line-height:24px;}
    .cb-search-field input::placeholder{color:#777;}
    .cb-mobile-field-icon{display:block;width:22px;height:22px;color:#005c40;flex-shrink:0;pointer-events:none;}
    .cb-mobile-chevron{width:17px;height:17px;transition:transform .2s;}
    #cbWhenField.active .cb-mobile-chevron{transform:rotate(180deg);}
    .cb-mobile-field-button{display:flex;align-items:center;justify-content:center;width:26px;height:28px;flex-shrink:0;padding:0;background:none;border:0;color:#005c40;cursor:pointer;}
    .cb-mobile-field-button svg{width:22px;height:22px;flex-shrink:0;}
    #cbClearAddress{color:#888;}
    .cb-search-field.invalid{border-color:#dc3545;background:#fff7f7;}

    /* MOBILE SEARCH BUTTON */
    .cb-search-button{width:100%;min-height:54px;margin:0;padding:12px 16px;background:#00875a;border-radius:30px;font-size:16px;}
    .cb-search-button:hover{background:#005c40;}
    .cb-desktop-search-text,.cb-search-button svg{display:none;}
    .cb-mobile-search-text{display:block;}

    /* INLINE POPUPS */
    .cb-search-popup{position:absolute;top:calc(100% + 6px);left:0;right:0;width:100%;max-width:100%;max-height:var(--cb-popup-height,320px);padding:14px;background:#fff;border:1px solid #e0e5e2;border-radius:12px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 8px 24px rgba(0,0,0,.16);animation:none;}
    .cb-popup-heading{font-size:13px;color:#333;margin-bottom:8px;}
    .cb-search-results,.cb-address-results{max-height:none;overflow:visible;margin:0;}
    .cb-recent-searches,.cb-recent-addresses{margin-bottom:12px;}
    .cb-result-item,.cb-recent-item,.cb-address-item{padding:11px 5px;gap:10px;}

    /* MOBILE WHAT */
    .cb-cuisine-list{display:flex;flex-direction:column;gap:2px;}
    .cb-cuisine-option{justify-content:flex-start;gap:12px;width:100%;padding:11px 8px;border:0;border-radius:6px;font-size:14px;text-align:left;}
    .cb-cuisine-option svg{width:18px;height:18px;}
    .cb-what-popup:has(.cb-search-results:not(:empty)) .cb-recent-searches,
    .cb-what-popup:has(.cb-search-results:not(:empty)) .cb-popup-heading,
    .cb-what-popup:has(.cb-search-results:not(:empty)) .cb-cuisine-list{display:none;}

    /* MOBILE WHERE */
    .cb-where-popup .cb-current-location{display:none;}
    .cb-where-popup .cb-order-type{margin-bottom:10px;}
    .cb-where-popup .cb-order-option{padding:8px 12px;}
    .cb-where-popup .cb-search-info{margin-top:8px;padding:10px;font-size:11px;}
    .cb-google-suggestion{padding:11px 4px;gap:10px;border-bottom:1px solid #f0f0f0;border-radius:0;}
    .cb-google-suggestion strong{font-size:14px;line-height:20px;}
    .cb-google-suggestion small{font-size:12px;line-height:17px;margin-top:2px;}
    .cb-google-attribution{padding:10px 0 0;}
    .cb-where-popup:has(.cb-address-results:not(:empty)) .cb-order-type,
    .cb-where-popup:has(.cb-address-results:not(:empty)) .cb-recent-addresses,
    .cb-where-popup:has(.cb-address-results:not(:empty)) .cb-popup-heading,
    .cb-where-popup:has(.cb-address-results:not(:empty)) .cb-search-info{display:none;}

    /* MOBILE DATE & TIME */
    .cb-when-popup .cb-datetime-layout,.cb-when-popup .cb-search-info{display:none;}
    .cb-mobile-datetime{display:flex;flex-direction:column;gap:12px;}
    .cb-mobile-datetime-title{font-size:16px;font-weight:700;color:#171717;margin-bottom:2px;}
    .cb-mobile-datetime-title small{font-size:11px;font-weight:400;color:#888;}
    .cb-mobile-select-group{display:flex;flex-direction:column;gap:6px;}
    .cb-mobile-select-group label{font-size:13px;font-weight:600;color:#333;}
    .cb-mobile-select-group select{display:block;width:100%;height:46px;padding:10px 36px 10px 12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23005c40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;color:#222;border:1px solid #d8dfdb;border-radius:8px;font-family:inherit;font-size:16px;outline:none;appearance:none;-webkit-appearance:none;}
    .cb-mobile-select-group select:focus{border-color:#005c40;box-shadow:0 0 0 2px rgba(0,92,64,.08);}
    .cb-mobile-select-group select:disabled{background-color:#f5f5f5;color:#999;opacity:1;}
    .cb-datetime-actions{position:static;display:flex;gap:10px;margin-top:16px;padding:0;}
    .cb-datetime-actions button{flex:1;padding:11px 10px;font-size:13px;}
    .cb-search-error{font-size:12px;padding:10px 12px;}
}

/* SMALL MOBILE */
@media(max-width:380px){
    .cb-search-field{gap:8px;padding:10px 12px;min-height:50px;}
    .cb-mobile-field-icon{width:20px;height:20px;}
    .cb-mobile-field-button{width:23px;}
    .cb-search-popup{padding:12px;}
    .cb-search-button{min-height:50px;font-size:15px;}
    .cb-datetime-actions{gap:8px;}
    .cb-datetime-actions button{padding:10px 8px;font-size:12px;}
}
/* MOBILE CUISINE SEARCH */
@media(max-width:767px){
    #cbWhatPopup{padding:18px 12px;border-radius:12px;}
    #cbWhatPopup .cb-popup-heading{font-size:16px;font-weight:700;color:#171717;padding:0 8px;margin:4px 0 12px;}
    .cb-cuisine-list{display:flex;flex-direction:column;gap:2px;}
    .cb-cuisine-option{display:flex;align-items:center;justify-content:flex-start;gap:18px;min-height:46px;padding:12px;border:0;border-radius:8px;font-size:15px;font-weight:500;color:#171717;}
    .cb-cuisine-option svg{display:block;width:20px;height:20px;flex-shrink:0;color:#005c40;}
    .cb-cuisine-option:hover,.cb-cuisine-option.active{background:#eef5f1;}
}