#wyp-cart-search {
    width: 100%; display: flex; align-items: center; gap: 11px; margin: 0 0 14px; padding: 12px 16px;
    border: 1px solid #b9dfc5; border-radius: 14px; background: #fff; color: #174c2b; cursor: pointer;
    text-align: left; box-shadow: 0 5px 15px rgba(20,110,55,.06);
}
#wyp-cart-search > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #16813d; color: #fff; font-size: 25px; }
#wyp-cart-search strong { font-size: 15px; }
#wyp-cart-search small { margin-left: auto; color: #6b7c70; }
#wyp-inline-search { position: relative; z-index: 50; isolation: isolate; scroll-margin-top: 120px; margin: -4px 0 16px; padding: 14px; background: #f5fbf7; border: 1px solid #b9dfc5; border-radius: 14px; }
#wyp-inline-search[hidden] { display: none !important; }
#wyp-inline-search label { display: block; margin: 0 0 7px; color: #174c2b; font-size: 13px; font-weight: 800; }
#wyp-inline-search .wis-field { position: relative; }
#wyp-inline-search-input { display: block !important; width: 100% !important; height: 52px !important; padding: 0 48px 0 15px !important; border: 2px solid #16813d !important; border-radius: 12px !important; background: #fff !important; color: #222 !important; font-size: 16px !important; line-height: 52px !important; }
#wyp-inline-search-input:focus { outline: none !important; box-shadow: 0 0 0 4px rgba(22,129,61,.13) !important; }
#wyp-inline-search .wis-field > span { position: absolute; right: 15px; top: 7px; z-index: 4; color: #16813d; font-size: 28px; pointer-events: none; }
#wyp-inline-search-results { margin-top: 8px; max-height: 420px; overflow-y: auto; border-radius: 12px; background: #fff; }
#wyp-inline-search-results:empty { display: none; }
.wis-state { padding: 14px; color: #667; text-align: center; }
.wis-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 9px; border-bottom: 1px solid #eee; color: #222 !important; text-decoration: none !important; }
.wis-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; }
.wis-item strong { display: block; font-size: 14px; line-height: 1.2; }
.wis-item small { display: block; margin-top: 3px; color: #777; }
.wis-price { color: #16813d; font-weight: 900; white-space: nowrap; }

#wyp-quick-add { margin: 18px 0; padding: 19px; border-radius: 18px; background: #f3fbf5; border: 1px solid #cce8d4; box-shadow: 0 8px 22px rgba(20,110,55,.08); }
#wyp-quick-add.wqa-reached { background: #f7fcf8; border-color: #a8d9b6; }
.wqa-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wqa-head > div { display: flex; flex-direction: column; gap: 3px; }
.wqa-head span { color: #16813d; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.wqa-head strong { font-size: 19px; color: #173d25; }
.wqa-head small { color: #617568; }
.wqa-head > b { background: #16813d; color: #fff; padding: 8px 10px; border-radius: 11px; }
.wqa-track { height: 10px; background: #dcefe2; border-radius: 99px; overflow: hidden; margin: 13px 0; }
.wqa-track i { display: block; height: 100%; background: linear-gradient(90deg,#42bd69,#16813d); border-radius: 99px; }
.wqa-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.wqa-tile { display: flex; align-items: center; gap: 9px; padding: 13px; background: linear-gradient(135deg,#2aaa55,#16813d); border-radius: 14px; color: #fff !important; text-decoration: none !important; transition: .18s; }
.wqa-tile:hover { transform: translateY(-2px); box-shadow: 0 7px 17px rgba(22,129,61,.22); }
.wqa-tile em { display: grid; place-items: center; width: 36px; height: 36px; background: #ffffff26; border-radius: 11px; font-style: normal; font-size: 20px; }
.wqa-tile > div { display: flex; flex-direction: column; }
.wqa-tile strong { color: #fff; font-size: 14px; }
.wqa-tile small { color: #ffffffcc; font-size: 11px; }
.wqa-tile > b { margin-left: auto; font-size: 22px; }

.woocommerce-cart-form .quantity.wyp-cart-quantity { display: inline-flex !important; align-items: center !important; gap: 7px !important; width: auto !important; max-width: 100% !important; white-space: nowrap !important; }
.woocommerce-cart-form .wyp-cart-quantity input.qty { width: 46px !important; min-width: 46px !important; height: 42px !important; margin: 0 !important; padding: 4px !important; text-align: center !important; border: 1px solid #bbb !important; border-radius: 8px !important; font-size: 16px !important; font-weight: 700 !important; }
.woocommerce-cart-form .wyp-cart-qty-button { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 42px !important; min-width: 42px !important; height: 42px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #2e7d32 !important; color: #fff !important; background-image: none !important; box-shadow: none !important; font-size: 25px !important; font-weight: 800 !important; line-height: 1 !important; }
.woocommerce-cart-form .wyp-cart-qty-button:active { transform: scale(.96); }

#search-modal .ct-search-results, #search-modal .ct-search-more { display: none !important; }
#search-modal .wyp-header-search-results { display: none; margin-top: 10px; max-height: min(64vh,620px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #e3e9df; border-radius: 14px; box-shadow: 0 12px 32px rgba(31,60,35,.12); }
#search-modal .wyp-header-search-results.is-open { display: block; }
#search-modal .wyp-header-search-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 9px 11px; border-bottom: 1px solid #edf1eb; color: #213026 !important; text-decoration: none !important; }
#search-modal .wyp-header-search-item:last-child { border-bottom: 0; }
#search-modal .wyp-header-search-item:hover, #search-modal .wyp-header-search-item:focus { background: #f2f8ef; outline: none; }
#search-modal .wyp-header-search-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; }
#search-modal .wyp-header-search-name { display: block; font-size: 15px; font-weight: 800; line-height: 1.22; }
#search-modal .wyp-header-search-cat { display: block; margin-top: 3px; color: #718071; font-size: 12px; }
#search-modal .wyp-header-search-price { color: #3f772f; font-weight: 900; white-space: nowrap; }
#search-modal .wyp-header-search-state { padding: 18px; text-align: center; color: #667267; }

@media (max-width: 720px) {
    #wyp-quick-add { padding: 15px; }
    .wqa-head strong { font-size: 16px; }
    .wqa-grid { grid-template-columns: repeat(2,1fr); }
    .wqa-tile { padding: 11px; }
    .wqa-tile small, #wyp-cart-search small { display: none; }
}

@media (max-width: 600px) {
    #wyp-inline-search { z-index: 999; scroll-margin-top: 100px; padding: 11px; background: #fff; }
    #wyp-inline-search-input { height: 50px !important; line-height: 50px !important; }
    .wis-item { grid-template-columns: 46px 1fr; }
    .wis-item img { width: 46px; height: 46px; }
    .wis-price { grid-column: 2; font-size: 13px; }
    .woocommerce-cart-form .quantity.wyp-cart-quantity { gap: 6px !important; }
    .woocommerce-cart-form .wyp-cart-qty-button { width: 38px !important; min-width: 38px !important; height: 38px !important; }
    .woocommerce-cart-form .wyp-cart-quantity input.qty { width: 42px !important; min-width: 42px !important; height: 38px !important; }
    #search-modal .wyp-header-search-results { max-height: 62vh; border-radius: 12px; }
    #search-modal .wyp-header-search-item { grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; padding: 8px; }
    #search-modal .wyp-header-search-item img { width: 44px; height: 44px; border-radius: 8px; }
    #search-modal .wyp-header-search-name { font-size: 14px; }
    #search-modal .wyp-header-search-cat { font-size: 11px; }
    #search-modal .wyp-header-search-price { font-size: 13px; }
}

