/* Header currency picker - "Show prices in" panel built by js/currency-dropdown.js from
   UserControl/MultipleCurrency (span.ccy-picker). Linked last in <head> of the 7 browsing masters
   and the restaurant / spa / StoreDetails pages. Look only - no logic change.
   StoreDetailsTheme1/2/3 keep their own select style (store-details-mobile.css). */

div.usd, div.countryDropmenuHeader { display: flex; justify-content: flex-end; overflow: visible !important; }
div.usd > label { display: flex; justify-content: flex-end; margin: 0 !important; cursor: default; }
/* old dd.css rule ".usd label:hover" drew a blue underline and changed the padding (made the header jump) */
div.usd > label, div.usd > label:hover { width: auto !important; padding: 0 !important; border-bottom: 0 !important; }
div.usd > label, span.ccy-picker { flex-shrink: 0; }
div.usd > label { height: auto !important; min-height: 0 !important; line-height: normal !important; align-items: center; }
span.ccy-picker { height: auto !important; }
.ccy-trigger .ccy-chev { box-sizing: content-box !important; }

span.ccy-picker { position: relative; display: inline-flex; align-items: center; font-family: 'Open Sans', Arial, Helvetica, sans-serif; }
/* once the panel is built, the old list (select + jquery.dd widget) is hidden */
span.ccy-picker.ccy-ready > select,
span.ccy-picker.ccy-ready > .dd,
span.ccy-picker.ccy-ready > .ddOutOfVision { display: none !important; }

/* closed button */
.ccy-trigger {
    display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; height: 34px; margin: 0;
    padding: 0 30px 0 6px; position: relative; white-space: nowrap; cursor: pointer;
    font: 600 13px/1 'Open Sans', Arial, Helvetica, sans-serif; letter-spacing: .2px; color: #1d2b36;
    background: #fff; border: 1px solid #cfd8dc; border-radius: 999px;
    transition: border-color .15s, box-shadow .15s;
}
.ccy-trigger:hover, .ccy-open .ccy-trigger { border-color: #1c6b86; }
.ccy-trigger:focus-visible { outline: 0; border-color: #1c6b86; box-shadow: 0 0 0 3px rgba(28,107,134,.2); }
.ccy-trigger .ccy-badge { width: 24px; height: 24px; font-size: 9px; }
.ccy-chev {
    position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
    border-right: 2px solid #5b6b77; border-bottom: 2px solid #5b6b77; transform: rotate(45deg); transition: transform .15s;
}
.ccy-open .ccy-chev { transform: rotate(-135deg); margin-top: -1px; }
.ccy-busy .ccy-trigger { opacity: .6; pointer-events: none; }

/* symbol badge (US$, EC$ ...) */
.ccy-badge {
    flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: 32px; height: 32px; border-radius: 50%; background: #eef3f7;
    font: 700 11px/1 'Open Sans', Arial, Helvetica, sans-serif; letter-spacing: -.2px; color: #1c3550; white-space: nowrap;
}

/* panel */
.ccy-panel {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 10050;
    width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 14px 10px 12px;
    background: #fff; border: 1px solid #dfe4e8; border-radius: 14px;
    box-shadow: 0 14px 34px rgba(29,43,54,.16), 0 2px 6px rgba(29,43,54,.06);
    text-align: left; cursor: default;
}
.ccy-open .ccy-panel { display: block; }
.ccy-title { padding: 0 10px 8px; font: 400 14px/1.4 'Open Sans', Arial, Helvetica, sans-serif; color: #3f5260; }
.ccy-list { display: flex; flex-direction: column; gap: 2px; }

.ccy-opt {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; box-sizing: border-box; margin: 0;
    padding: 8px 12px; text-align: left; cursor: pointer; background: transparent; border: 0; border-radius: 10px;
    font: 400 15px/1.3 'Open Sans', Arial, Helvetica, sans-serif; color: #3f5260;
}
.ccy-opt b { font-weight: 600; color: #1d2b36; }
.ccy-opt .ccy-text { flex: 1; min-width: 0; }
.ccy-opt:hover { background: #f1f5f8; }
.ccy-opt:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px #1c6b86; }
.ccy-opt.ccy-sel { background: #dbe8f6; color: #1d2b36; }
.ccy-opt.ccy-sel .ccy-badge { background: #fff; }
.ccy-check { flex: none; display: inline-flex; color: #1c4f7c; }
.ccy-more-item { display: none; }
.ccy-expanded .ccy-more-item { display: flex; }

.ccy-more {
    display: block; margin: 4px 0 0; padding: 6px 12px; background: none; border: 0; cursor: pointer;
    font: 400 13px/1.4 'Open Sans', Arial, Helvetica, sans-serif; color: #5b6b77;
}
.ccy-more:hover { color: #1c6b86; text-decoration: none; }
.ccy-more:focus-visible { outline: 2px solid #1c6b86; border-radius: 6px; }
.ccy-expanded .ccy-more { display: none; }

.ccy-note {
    display: flex; gap: 10px; align-items: flex-start; margin: 10px 2px 0; padding: 12px 10px 2px;
    border-top: 1px solid #e6eaee; font: 400 13px/1.5 'Open Sans', Arial, Helvetica, sans-serif; color: #3f5260;
}
.ccy-note svg { flex: none; margin-top: 1px; color: #3f5260; }

/* phones / small windows (< 768px): smaller button and a tighter panel */
@media (max-width: 767px) {
    .ccy-trigger { height: 30px; gap: 5px; padding: 0 24px 0 11px; font-size: 12px; }
    .ccy-trigger .ccy-badge { display: none; } /* too small to read on phones - the code (XCD) is enough here, the panel keeps the symbols */
    .ccy-chev { right: 10px; }
    .ccy-panel { width: 290px; top: calc(100% + 6px); padding: 10px 6px 8px; border-radius: 12px; }
    .ccy-title { padding: 0 8px 6px; font-size: 13px; }
    .ccy-opt { min-height: 42px; gap: 10px; padding: 6px 8px; font-size: 13.5px; border-radius: 8px; }
    .ccy-opt .ccy-badge { width: 28px; height: 28px; font-size: 10px; }
    .ccy-more { font-size: 12.5px; padding: 5px 8px; }
    .ccy-note { gap: 8px; margin-top: 8px; padding: 10px 8px 2px; font-size: 12px; }
}

/* very narrow phones (< 360px): tighter button so it does not touch the logo */
@media (max-width: 359px) {
    .ccy-trigger { padding: 0 21px 0 8px; }
    .ccy-chev { right: 8px; }
}
