/* TalatYai — shared modern header. */
:root {
  --ty-header-blue: #2477c9;
  --ty-header-blue-dark: #102e50;
  --ty-header-orange: #f58220;
  --ty-header-orange-dark: #d96b0b;
  --ty-header-line: #dde3e8;
}

body.sp-modern-header header.header {
  height: 72px;
  border-bottom: 1px solid var(--ty-header-line);
  background: #fff;
  box-shadow: none;
}
body.sp-modern-header .header-end {height: 72px;}
body.sp-modern-header header.header .sp-header-shell {
  width: min(calc(100% - 48px), 1480px);
  max-width: 1480px;
  height: 72px;
  margin: 0 auto;
  grid-template-rows: 72px;
}
body.sp-modern-header header.header .sp-header-main {
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}
body.sp-modern-header .sp-header-main .header-logo {order: 1;}
body.sp-modern-header .sp-header-main .header-logo p {margin: 0;}
body.sp-modern-header .sp-header-main .header-logo img {width: 166px; margin: 0;}
body.sp-modern-header .sp-header-quick-links {
  display: flex;
  order: 2;
  align-items: center;
  gap: 10px;
}
body.sp-modern-header .sp-header-quick-links a {
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1.5px solid var(--ty-header-blue);
  border-radius: 9px;
  background: #fff;
  color: var(--ty-header-blue);
  font: 700 15px/1.2 Arial, sans-serif;
  text-decoration: none;
}
body.sp-modern-header .sp-header-quick-links a:is(:hover, :focus-visible) {
  outline: 0;
  background: #eef5fb;
  border-color: var(--ty-header-blue-dark);
  color: var(--ty-header-blue-dark);
}
body.sp-modern-header .sp-header-quick-links svg {width: 21px; height: 21px; flex: 0 0 21px;}
body.sp-modern-header .sp-primary-nav {
  display: flex;
  order: 2;
  align-self: stretch;
  align-items: center;
  gap: 40px;
  margin-left: 28px;
}
body.sp-modern-header .sp-primary-nav a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: var(--ty-header-blue-dark);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
body.sp-modern-header .sp-primary-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}
body.sp-modern-header .sp-primary-nav a:is(:hover, :focus-visible),
body.sp-modern-header .sp-primary-nav a.is-active {color: var(--ty-header-blue);}
body.sp-modern-header .sp-primary-nav a:is(:hover, :focus-visible)::after,
body.sp-modern-header .sp-primary-nav a.is-active::after {background: var(--ty-header-blue);}
body.sp-modern-header .sp-header-search-wrap,
body.sp-modern-header header.header .sp-category-navigation {display: none;}
body.sp-modern-header .sp-header-main .header-links {order: 3; flex: 0 0 auto; margin: 0 0 0 auto;}
body.sp-modern-header .sp-header-main .header-links .menu {gap: 14px;}
body.sp-modern-header .sp-header-main .sp-header-deposit {
	order: 4;
  min-height: 46px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid var(--ty-header-orange);
  border-radius: 10px;
  background: var(--ty-header-orange);
  box-shadow: none;
  color: #fff;
  font: 700 15px/1 Arial, sans-serif;
}
body.sp-modern-header .sp-header-main .header-flags {order: 5; margin-left: 0;}
body.sp-modern-header .sp-header-main .sp-header-deposit:is(:hover, :focus-visible) {
  border-color: var(--ty-header-orange-dark);
  background: var(--ty-header-orange-dark);
  text-decoration: none;
}

@media (min-width: 961px) {
  body.sp-modern-header .sp-header-main .header-links .ring,
  body.sp-modern-header .sp-header-main .header-links .selection {
    position: relative;
    display: flex;
    min-width: 98px;
    height: 64px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 43px 8px 3px;
    color: var(--ty-header-blue);
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
  }
  body.sp-modern-header .sp-header-main .header-links .ring {min-width: 122px;}
  body.sp-modern-header .sp-header-main .header-links .ring::before,
  body.sp-modern-header .sp-header-main .header-links .selection::before {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 39px;
    height: 39px;
    margin: 0 0 0 -19.5px;
    border: 0;
    border-radius: 50%;
    background-color: #eef5ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25px 25px;
    -webkit-mask: none;
    mask: none;
  }
  body.sp-modern-header .sp-header-main .header-links .ring::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232477c9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m14.5 14.5 5 5M10 7v6M7 10h6'/%3E%3C/svg%3E");
  }
  body.sp-modern-header .sp-header-main .header-links .selection::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232477c9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1.1-1a5.5 5.5 0 0 0-7.8 7.8l1.1 1L12 21l7.8-7.6a5.5 5.5 0 0 0 1-8.8Z'/%3E%3C/svg%3E");
  }
}

@media (min-width: 961px) {
  body.sp-modern-header .sp-header-main .toggle-menu {display: none;}
  body.sp-modern-header .sp-header-main .header-links {
    position: static;
    display: block;
    width: auto;
    height: auto;
    top: auto;
    left: auto;
    background: transparent;
  }
  body.sp-modern-header .sp-header-main .header-links .menu {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    left: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
  }
  body.sp-modern-header .sp-header-main .header-links .ring,
  body.sp-modern-header .sp-header-main .header-links .selection,
  body.sp-modern-header .sp-header-main .header-links .connexion,
  body.sp-modern-header .sp-header-main .header-links .deconnexion {
    display: inline-flex;
    width: auto;
    margin: 0;
  }
  body.sp-modern-header .sp-header-main .header-links .sp-mobile-deposit {display: none !important;}
  body.sp-modern-header .sp-header-main .sp-header-deposit {display: inline-flex;}
}

@media (max-width: 1180px) {
  body.sp-modern-header .sp-header-quick-links {gap: 7px;}
  body.sp-modern-header .sp-header-quick-links a {padding: 0 11px; font-size: 14px;}
  body.sp-modern-header .sp-primary-nav {gap: 24px; margin-left: 12px;}
  body.sp-modern-header .sp-header-main .header-links .ring {display: none;}
}

@media (max-width: 960px) {
  body.sp-modern-header .sp-header-quick-links {display: none;}
  body.sp-modern-header .sp-primary-nav {display: none;}
  body.sp-modern-header header.header .sp-header-main {
    width: 100%;
    max-width: none;
    gap: 10px;
  }
  body.sp-modern-header header.header .sp-header-shell {width: calc(100% - 32px);}
  body.sp-modern-header .sp-header-main .header-logo {margin-right: auto;}
  body.sp-modern-header .sp-header-main .sp-header-deposit {display: none;}
  body.sp-modern-header .sp-header-main .header-flags {margin-left: 0;}
}

@media (max-width: 700px) {
  body.sp-modern-header header.header,
  body.sp-modern-header.sp-mobile-header-compact header.header {height: 72px;}
  body.sp-modern-header header.header .sp-header-shell,
  body.sp-modern-header.sp-mobile-header-compact header.header .sp-header-shell {
    height: 72px;
    grid-template-rows: 72px;
  }
  body.sp-modern-header header.header .sp-header-shell .sp-header-main,
  body.sp-modern-header.sp-mobile-header-compact header.header .sp-header-shell .sp-header-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 64px;
    grid-template-rows: 44px;
    height: 72px;
    min-height: 72px;
    align-items: center;
    padding: 14px 0;
  }
  body.sp-modern-header.sp-mobile-header-compact header.header .sp-header-shell .header-logo,
  body.sp-modern-header.sp-mobile-header-compact header.header .sp-header-shell .header-flags {display: flex;}
  body.sp-modern-header header.header .sp-header-main .header-logo {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
  }
  body.sp-modern-header header.header .sp-header-main .header-logo img {width: 142px;}
  body.sp-modern-header header.header .sp-header-main .toggle-menu {grid-column: 1; grid-row: 1;}
  body.sp-modern-header header.header .sp-header-main .header-flags {grid-column: 3; grid-row: 1;}
  body.sp-modern-header .sp-header-main .header-links {top: 72px; height: calc(100dvh - 72px);}
  body.sp-modern-header .header-end {height: 72px;}
}
