/* Comptoir du Robinet — premium account and cart actions. */

body.cdrt-theme .cdrt-header-actions {
  gap: 0;
}

body.cdrt-theme .cdrt-header-action {
  position: relative;
  display: inline-flex;
  min-width: 134px;
  min-height: 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

body.cdrt-theme .cdrt-header-action--account {
  margin-right: 14px;
  padding: 6px 16px 6px 0;
  color: #10283d;
  background: transparent;
  border: 0;
  border-right: 1px solid #ddd6ca;
  border-radius: 0;
  box-shadow: none;
}

body.cdrt-theme .cdrt-header-action--account:hover {
  color: #8d6a2f;
  background: transparent;
  border-right-color: #cfc3ad;
  box-shadow: none;
}

body.cdrt-theme .cdrt-header-action--cart {
  min-width: 132px;
  padding: 6px 14px 6px 10px;
  color: #fff;
  background: #10283d;
  border: 1px solid #10283d;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(8, 27, 42, .12);
}

body.cdrt-theme .cdrt-header-action--cart:hover {
  color: #fff;
  background: #18364e;
  border-color: #18364e;
  box-shadow: 0 3px 10px rgba(8, 27, 42, .16);
}

body.cdrt-theme .cdrt-header-action__icon-wrap {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
}

body.cdrt-theme .cdrt-header-action--account .cdrt-header-action__icon-wrap {
  color: #17334d;
  background: #f4f0e8;
  border: 0;
  border-radius: 6px;
}

body.cdrt-theme .cdrt-header-action--account:hover .cdrt-header-action__icon-wrap {
  color: #8d6a2f;
  background: #f1eadc;
}

body.cdrt-theme .cdrt-header-action--cart .cdrt-header-action__icon-wrap {
  color: #e8ce91;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.cdrt-theme .cdrt-header-action__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.cdrt-theme .cdrt-header-action__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.05;
  white-space: nowrap;
}

body.cdrt-theme .cdrt-header-action__eyebrow {
  color: #8a857d;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .085em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.cdrt-theme .cdrt-header-action__label {
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 790;
  letter-spacing: -.012em;
  line-height: 1.2;
}

body.cdrt-theme .cdrt-header-action--cart .cdrt-header-action__eyebrow {
  color: rgba(255, 255, 255, .56);
}

body.cdrt-theme .cdrt-header-action__count {
  position: absolute;
  top: -6px;
  right: -7px;
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #10283d;
  border-radius: 50%;
  color: #10283d;
  background: #e5c987;
  box-shadow: 0 1px 4px rgba(8, 27, 42, .14);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

body.cdrt-theme .cdrt-header-action:focus-visible {
  outline: 2px solid #c69f57;
  outline-offset: 3px;
}

@media (max-width: 1160px) and (min-width: 981px) {
  body.cdrt-theme .cdrt-header-actions {
    gap: 7px;
  }

  body.cdrt-theme .cdrt-header-action {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 4px;
  }

  body.cdrt-theme .cdrt-header-action--account {
    margin-right: 0;
    border: 1px solid #ddd6ca;
    border-radius: 7px;
    background: #fffefa;
  }

  body.cdrt-theme .cdrt-header-action--cart {
    border-radius: 7px;
  }

  body.cdrt-theme .cdrt-header-action__copy {
    display: none;
  }

  body.cdrt-theme .cdrt-header-action__icon-wrap {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

@media (max-width: 980px) {
  body.cdrt-theme .cdrt-header-actions {
    gap: 6px;
  }

  body.cdrt-theme .cdrt-header-action {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 3px;
    justify-content: center;
  }

  body.cdrt-theme .cdrt-header-action--account {
    margin-right: 0;
    color: #10283d;
    background: #fffefa;
    border: 1px solid #ddd6ca;
    border-radius: 7px;
  }

  body.cdrt-theme .cdrt-header-action--cart {
    border-radius: 7px;
  }

  body.cdrt-theme .cdrt-header-action__copy {
    display: none;
  }

  body.cdrt-theme .cdrt-header-action__icon-wrap {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  body.cdrt-theme .cdrt-header-action--account .cdrt-header-action__icon-wrap {
    border-radius: 5px;
  }
}

@media (max-width: 700px) {
  body.cdrt-theme .cdrt-header-action--account {
    display: inline-flex;
  }

  body.cdrt-theme .cdrt-brand-lockup {
    width: min(176px, 48vw);
  }

  body.cdrt-theme .cdrt-header-actions {
    gap: 5px;
  }

  body.cdrt-theme .cdrt-header-action,
  body.cdrt-theme .cdrt-menu-toggle {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  body.cdrt-theme .cdrt-header-action {
    padding: 3px;
  }

  body.cdrt-theme .cdrt-header-action__icon-wrap {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body.cdrt-theme .cdrt-header-action__count {
    top: -6px;
    right: -6px;
  }
}

@media (max-width: 390px) {
  body.cdrt-theme .cdrt-header-main {
    gap: 12px 10px;
  }

  body.cdrt-theme .cdrt-brand-lockup {
    width: min(152px, 43vw);
  }

  body.cdrt-theme .cdrt-header-actions {
    gap: 4px;
  }

  body.cdrt-theme .cdrt-header-action,
  body.cdrt-theme .cdrt-menu-toggle {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  body.cdrt-theme .cdrt-header-action--account,
  body.cdrt-theme .cdrt-header-action--cart {
    border-radius: 6px;
  }

  body.cdrt-theme .cdrt-header-action__icon-wrap {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  body.cdrt-theme .cdrt-header-action--account .cdrt-header-action__icon-wrap {
    border-radius: 4px;
  }

  body.cdrt-theme .cdrt-header-action__icon {
    width: 16px;
    height: 16px;
  }

  body.cdrt-theme .cdrt-header-action__count {
    min-width: 17px;
    height: 17px;
    top: -6px;
    right: -6px;
    padding-inline: 4px;
    font-size: 8px;
  }
}
