/* Tanglewood Worldwide Distributors: scoped under .twdd */

.twdd{--twdd-red:#8e2323;--twdd-tint:rgba(142,35,35,.07);--twdd-ink:#2b2b2b;--twdd-muted:#6b6b6b;--twdd-line:#e4e0dc;color:var(--twdd-ink);line-height:1.45;margin:0 0 40px}
.twdd *{box-sizing:border-box}
.twdd-local{display:none;margin:0 0 22px;padding:14px 16px;border-radius:8px;background:var(--twdd-tint);border:1px solid rgba(142,35,35,.2)}
.twdd-local.show{display:block}
.twdd-local-h{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--twdd-red);margin:0 0 10px}
.twdd-local .twdd-card{max-width:520px;background:#fff}

.twdd-controls{position:sticky;top:0;z-index:5;background:#fff;padding:12px 0;border-bottom:1px solid var(--twdd-line);margin-bottom:8px}
.twdd-search{position:relative;max-width:520px;margin:0 auto 12px}
.twdd-search input{width:100%;font:inherit;font-size:16px;height:48px;padding:0 44px 0 44px;border:1px solid #cfcac5;border-radius:999px;background:#fff;color:var(--twdd-ink)}
.twdd-search input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.twdd-search input:focus{outline:2px solid var(--twdd-red);outline-offset:1px;border-color:transparent}
.twdd-search svg{position:absolute;left:16px;top:14px;width:20px;height:20px;color:#888}
.twdd-clear{position:absolute;right:8px;top:8px;width:32px;height:32px;border:0;border-radius:50%;background:#eee;color:#555;font-size:18px;line-height:1;cursor:pointer;display:none}
.twdd-clear.show{display:block}
.twdd-regions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.twdd-region{font:inherit;font-size:16px;border:1px solid var(--twdd-line);background:#fff;color:var(--twdd-ink);border-radius:999px;padding:7px 16px;cursor:pointer;min-height:40px}
.twdd-region:hover{border-color:#cdb9b9}
.twdd-region[aria-pressed="true"]{background:var(--twdd-red);border-color:var(--twdd-red);color:#fff}
.twdd-region .n{opacity:.7;font-size:14px;margin-left:4px}
.twdd-select{display:none;width:100%;font:inherit;font-size:16px;height:48px;padding:0 40px 0 14px;border:1px solid #cfcac5;border-radius:10px;-webkit-appearance:none;appearance:none;color:var(--twdd-ink);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center}

.twdd-section{margin-top:26px}
.twdd-section h2{font-size:24px;font-weight:700;margin:0 0 14px;display:flex;align-items:baseline;gap:10px}
.twdd-section h2 span{font-size:15px;font-weight:500;color:var(--twdd-muted)}
.twdd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.twdd-card{border:1px solid var(--twdd-line);border-radius:10px;padding:18px;background:#fff;transition:box-shadow .15s,border-color .15s}
.twdd-card:hover{border-color:#d9cccc;box-shadow:0 4px 16px rgba(0,0,0,.06)}
.twdd-head{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.twdd-flag{width:84px;height:63px;flex:none;border-radius:6px;object-fit:cover;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 3px 8px rgba(0,0,0,.12);background:#eee}
.twdd-country{margin:0;font-size:23px;font-weight:700;line-height:1.15}
.twdd-dist{border-top:1px solid #f0ecea;padding-top:12px;margin-top:12px}
.twdd-dist:first-of-type{border-top:0;padding-top:0;margin-top:0}
.twdd-company{font-size:17px;font-weight:600;color:var(--twdd-red);margin:0 0 8px}
.twdd-actions{display:flex;flex-wrap:wrap;gap:6px}
.twdd-chip{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;text-decoration:none;color:var(--twdd-red);border:1px solid #d9c3c3;border-radius:999px;padding:5px 12px;background:#fff;min-height:36px}
.twdd-chip:hover{background:var(--twdd-tint)}
.twdd-chip svg{width:15px;height:15px;flex:none}
.twdd-chip.soc{color:#444;border-color:var(--twdd-line)}
.twdd-empty{text-align:center;color:var(--twdd-muted);padding:40px 0}
.twdd-contact{text-align:center;color:var(--twdd-muted);margin-top:36px;font-size:16px}

@media (max-width:700px){
  .twdd-regions{display:none}
  .twdd-select{display:block}
  .twdd-grid{grid-template-columns:1fr}
  .twdd-flag{width:72px;height:54px}
  .twdd-country{font-size:21px}
}

/* Defend against theme styles (fixed heights, uppercase buttons, list bullets etc.) */
.twdd .twdd-search input{height:48px !important;min-height:48px !important;line-height:normal !important;padding:0 44px !important;margin:0 !important;font-size:16px !important;box-shadow:none}
.twdd .twdd-select{height:48px !important;min-height:48px !important;line-height:normal !important;padding:0 40px 0 14px !important;margin:0 !important;font-size:16px !important}
.twdd .twdd-region,.twdd .twdd-clear{text-transform:none;letter-spacing:normal;box-shadow:none;margin:0;line-height:1.3}
.twdd .twdd-clear{padding:0}
.twdd h2,.twdd h3,.twdd p{padding:0}
.twdd .twdd-section h2{margin:0 0 14px}
.twdd .twdd-country{margin:0}
.twdd .twdd-company{margin:0 0 8px}
.twdd img.twdd-flag{max-width:none;height:63px}
@media (max-width:700px){.twdd img.twdd-flag{height:54px}}
.twdd-fallback{columns:3 240px;padding-left:18px}
.twdd-local-h{margin:0 0 10px}

/* Social media icons (match the site's red header icons) */
.twdd-socials{display:inline-flex;gap:6px;align-items:center}
.twdd a.twdd-soc{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;background:var(--twdd-red);color:#fff;text-decoration:none;transition:filter .15s}
.twdd a.twdd-soc:hover{filter:brightness(.85);color:#fff}
.twdd a.twdd-soc svg{width:18px;height:18px;display:block}

/* v1.1.5: social buttons styled exactly like the other buttons */
.twdd .twdd-chip.soc{color:var(--twdd-red);border-color:#d9c3c3}
