.goo-suggest, .goo-suggest * { box-sizing: border-box; }
.goo-suggest[hidden], .goo-suggest [hidden] { display: none !important; }
body.goo-suggest-open { overflow: hidden; }
/* Keep the search dialog above the mobile fixed navigation (z-index: 119990). */
.goo-suggest { position: fixed; inset: 0; z-index: 120000; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif; color: #333; }
.goo-suggest__scrim { position: absolute; inset: 0; background: rgba(40, 26, 14, .45); }
.goo-suggest__dialog { position: relative; display: flex; flex-direction: column; width: min(1200px, calc(100vw - 80px));
    min-height: 520px; max-height: calc(100dvh - 120px); margin: 60px auto; overflow: hidden;
    background: #fff; border-radius: 6px; box-shadow: 0 18px 50px rgba(20, 14, 6, .28); }
.goo-suggest__header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 64px;
    width: 100%; min-width: 0; padding: 0 30px 0 40px; border-bottom: 1px solid #f0eeeb; }
.goo-suggest__header h2 { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0;
    background: transparent; border: 0;
    font-size: 18px; line-height: 1.4; font-weight: 700; color: #333; }
.goo-suggest__header h2::before { content: ""; flex: 0 0 3px; height: 20px; background: #ea7028; border-radius: 1px; }
.goo-suggest__close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0;
    background: transparent; color: #555; font-size: 30px; line-height: 1; cursor: pointer; }
.goo-suggest__form { display: flex; flex: 0 0 48px; margin: 12px 40px; padding: 0; border: 2px solid #fc8f4a;
    border-radius: 4px; background: #fff; overflow: hidden; }
.goo-suggest__form input { flex: 1; min-width: 0; height: auto; margin: 0; padding: 0 14px; border: 0; outline: 0;
    background: #fff; color: #333; font: inherit; font-size: 15px; }
.goo-suggest__form input::placeholder { color: #96918b; }
.goo-suggest__form button { min-width: 92px; margin: 0; padding: 0 20px; border: 0; border-radius: 0;
    background: #fc8f4a; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.goo-suggest__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 40px 32px; }
.goo-suggest__section { margin: 0 0 20px; }
.goo-suggest__section-title { position: relative; display: flex; align-items: center; justify-content: space-between;
    min-height: 40px; margin: 0 -40px 8px; padding: 0 40px 0 52px; background: #fef0e7;
    color: #333; font-size: 14px; font-weight: 700; line-height: 1.4; }
.goo-suggest__section-title::before { content: ""; position: absolute; left: 40px; top: 50%;
    width: 3px; height: 16px; margin-top: -8px; background: #ea7028; border-radius: 1px; }
.goo-suggest__section-title h3 { margin: 0; padding: 0; color: inherit; font: inherit; }
.goo-suggest__count { flex: 0 0 auto; margin-left: 12px; color: #777; font-size: 12px; font-weight: 400; }
.goo-suggest__section-title button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: #665b54; cursor: pointer;
    transition: background-color .15s; }
.goo-suggest__section-title button:hover { background: rgba(234, 112, 40, .14); }
.goo-suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.goo-suggest__chips a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 16px;
    border: 1px solid #f3d3ba; border-radius: 999px; background: #fff; color: #333; text-decoration: none; font-size: 13px; }
.goo-suggest__chips a:hover { background: #fde4d2; border-color: #e3a373; }
.goo-suggest__history-row { display: flex; align-items: center; min-height: 48px;
    margin: 0 -40px; padding: 0 40px; border-bottom: 1px solid #f0eeeb; }
.goo-suggest__history-row a { flex: 1; min-width: 0; padding: 10px 12px; color: #333; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; text-decoration: none; font-size: 13px; }
.goo-suggest__history-row a::before { content: ""; display: inline-block; width: 16px; height: 16px;
    margin-right: 10px; vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.goo-suggest__history-row button { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px;
    padding: 0; border: 0; border-radius: 50%; background: transparent; color: #777;
    font-size: 16px; line-height: 1; cursor: pointer; transition: background-color .15s; }
.goo-suggest__history-row button:hover { background: rgba(234, 112, 40, .18); }
.goo-suggest__history-row:hover { background: #fef0e7; }
.goo-suggest__categories { border-radius: 4px; overflow: hidden; }
.goo-suggest__category-title { display: flex; align-items: center; justify-content: center; min-height: 48px;
    margin: 0; padding: 8px 16px; border: 0; border-radius: 0; background: #ea7028;
    color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: left; }
.goo-suggest__category-row span { flex: 0 0 auto; width: 9px; height: 9px; margin-right: 3px;
    border-right: 2px solid #ea7028; border-bottom: 2px solid #ea7028; border-radius: 1px;
    font-size: 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.goo-suggest__category-row[aria-expanded="true"] span { transform: translateY(2px) rotate(-135deg); }
.goo-suggest__categories > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    align-items: start; padding: 16px; border: 1px solid #f6ddcc; border-top: 0; }
.goo-suggest__category-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px;
    padding: 8px 14px; border: 1px solid #f6ddcc; border-radius: 4px; background: #fef0e7;
    color: #333; font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer;
    overflow-wrap: anywhere; }
.goo-suggest__category-row:hover { background: #fde4d2; border-color: #e3a373; }
.goo-suggest__category-row[aria-expanded="true"]:hover { border-color: #f6ddcc; }
.goo-suggest__category-children { margin-top: 4px; background: #fff;
    border: 1px solid #f6ddcc; border-radius: 4px; overflow: hidden; }
.goo-suggest__category-children a:last-child { border-bottom: 0; }
.goo-suggest__category-children a { display: block; padding: 10px 24px; border-bottom: 1px solid #f0eeeb;
    color: #333; font-size: 13px; text-decoration: none; }
.goo-suggest a:hover, .goo-suggest a:active, .goo-suggest a:focus { color: inherit; }
.goo-suggest__product { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 7px 12px;
    border-bottom: 1px solid #eee; color: #333; text-decoration: none; }
.goo-suggest__product:hover, .goo-suggest__product:focus-visible { background: #fef0e7; }
.goo-suggest__product img { flex: 0 0 46px; width: 46px; height: 46px; object-fit: contain; }
.goo-suggest__product-name { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap;
    text-overflow: ellipsis; font-size: 14px; font-weight: 500; }
.goo-suggest__badge { flex: 0 0 auto; max-width: 70%; min-height: 22px; display: inline-flex; align-items: center; overflow-wrap: anywhere;
    padding: 2px 8px; border-radius: 4px; background: #f92b70; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; }
.goo-suggest__badge--staffpick { background: #333; }
.goo-suggest__message { margin: 12px 0; padding: 12px; color: #555; font-size: 13px; }
.goo-suggest__more { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #ea7028;
    border-radius: 4px; background: #fff; color: #d25f1b; font: inherit; font-size: 13px; cursor: pointer; }
.goo-suggest :focus-visible { outline: 2px solid #d25f1b; outline-offset: 2px; }
.goo-suggest__category-children a[data-goo-category-link],
.goo-suggest__category-children a[data-goo-category-link]:hover {
    color: #ea7028; font-weight: 700; }
[data-goo-trends] .goo-suggest__section-title { margin-bottom: 16px; }
.goo-suggest__category-children a:hover { background: #fef0e7; }

@media (max-width: 767px) {
    .goo-suggest__dialog { width: 100%; height: 100dvh; max-height: 100dvh; min-height: 0; margin: 0; border-radius: 0; }
    .goo-suggest__header { flex-basis: 52px; padding: 0 6px 0 16px; }
    .goo-suggest__header h2 { font-size: 16px; }
    .goo-suggest__form { flex-basis: 40px; margin: 8px 10px; border-color: #ea7028; }
    .goo-suggest__form input { padding: 0 10px; font-size: 14px; }
    .goo-suggest__form button { min-width: 70px; padding: 0 10px; background: #ea7028; }
    .goo-suggest__body { padding: 8px 10px 24px; }
    .goo-suggest__product { min-height: 56px; gap: 9px; padding: 5px 8px; }
    .goo-suggest__product img { flex-basis: 40px; width: 40px; height: 40px; }
    .goo-suggest__product-name { font-size: 13px; }
    .goo-suggest__badge { min-height: 20px; font-size: 10.5px; }
    .goo-suggest__section-title { margin: 0 -10px 8px; padding: 0 10px 0 18px; }
    .goo-suggest__section-title::before { left: 10px; }
    .goo-suggest__categories > div { grid-template-columns: 1fr; padding: 10px; }
    .goo-suggest__history-row { margin: 0 -10px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .goo-suggest__category-row span { transition: none; }
}
