/* Reusable HispaDrive form system (.hd-form) */

.hispadrive-auth-page #page_banner_container_1,
.hispadrive-auth-page #page_banner_container_1 + .breadcrumb_spacing {
  display: none !important;
}

.hispadrive-auth-page #breadcrumb_wrapper.hd-breadcrumb {
  margin-top: 24px;
  margin-bottom: 0;
}

.hispadrive-auth-page .alert-danger,
.hispadrive-auth-page .help-block {
  border-radius: 14px;
  font-size: 13px;
}

.hispadrive-auth-page .from_blcok,
.hispadrive-auth-page .login_form_block,
.hispadrive-auth-page .form_content,
.hispadrive-auth-page .form_content_inner,
.hispadrive-auth-page #login_form_block,
.hispadrive-auth-page #register_form_block {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hispadrive-auth-page .page_heading {
  display: none;
}

.hispadrive-auth-page .hd-form__privacy-note,
.hispadrive-auth-page .account_creation,
.hispadrive-auth-page .form-informations {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.5;
}

.hispadrive-auth-page .account_creation p,
.hispadrive-auth-page .form-informations p {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-muted);
}

.hispadrive-auth-page .account_creation p:first-child,
.hispadrive-auth-page .form-informations p:first-child {
  font-weight: 500;
}

.hd-form {
  font-family: var(--font-sans);
  color: var(--color-text);
}

.hd-form .form-group {
  margin-bottom: 0;
}

.hd-form label:not(.hd-form__check):not(.hd-form__radio-pill):not(.hd-seg__opt) {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
  text-transform: none;
}

.hd-form label.required::after {
  content: " *";
  color: #c0392b;
}

.hd-form .form-control,
.hd-form .form-control-select,
.hd-form select.form-control,
.hd-form input.form-control:not([type="checkbox"]):not([type="radio"]),
.hd-form .hd-form__grid .js-parent-focus select {
  display: block;
  width: 100%;
  height: 50px;
  border: 1px solid #d9d9e4;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hd-form textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
}

.hd-form .form-control:focus,
.hd-form select:focus,
.hd-form input.form-control:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px var(--color-soft);
}

.hd-form .form-group.has-error .form-control,
.hd-form .form-group.has-error select {
  border-color: #c0392b;
}

.hd-form .help-block,
.hd-form .alert-danger,
.hd-form .form-group.has-error .form-control-comment {
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
}

.hd-form .form-control-comment {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--color-muted);
  margin-top: 6px;
}

.hd-form__password-wrap {
  position: relative;
}

.hd-form__password-wrap .form-control,
.hd-form__password-wrap .input-group-with-border input {
  padding-right: 52px;
}

.hd-form__password-wrap .input-group-with-border {
  display: block;
  border: none;
  background: none;
}

.hd-form__password-wrap .input-group-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  margin: 0;
}

.hd-form__password-wrap .show_password,
.hd-form__password-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.hd-form__password-wrap .show_password:hover,
.hd-form__password-toggle:hover {
  color: var(--color-cta);
}

.hd-form__password-wrap .input-group-with-border {
  position: relative;
}

.hd-form__radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hd-form__radio-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d9d9e4;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.hd-form__radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hd-form__radio-pill:has(input:checked) {
  border-color: var(--color-cta);
  color: var(--color-cta);
  font-weight: 500;
}

.hd-form__radio-pill input:focus-visible + span,
.hd-form__radio-pill:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--color-soft);
}

.hd-form__radio-pill .custom-radio,
.hd-form__radio-pill .custom-radio span {
  display: none;
}

.hd-form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  margin: 0;
}

.hd-form__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-cta);
}

.hd-form__check .custom-input-box,
.hd-form__check .custom-input-item {
  display: none;
}

.hd-form__check .flex_child,
.hd-form__check > span:last-child {
  flex: 1;
  min-width: 0;
}

.hd-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.hd-form__btn--primary,
.hd-form__btn--primary.btn,
.hd-form__btn--primary.btn-primary {
  background: var(--color-cta) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.hd-form__btn--primary:hover,
.hd-form__btn--primary.btn:hover {
  opacity: 0.92;
  color: #fff !important;
  background: var(--color-cta) !important;
}

.hd-form__btn--secondary,
a.hd-form__btn--secondary,
.hd-form__btn--secondary.btn,
.hd-form__btn--secondary.btn-default {
  background: transparent !important;
  color: var(--color-cta) !important;
  border: 1px solid var(--color-cta) !important;
  box-shadow: none !important;
}

.hd-form__btn--secondary:hover,
a.hd-form__btn--secondary:hover {
  background: rgba(43, 49, 129, 0.06) !important;
  color: var(--color-cta) !important;
}

.hd-form__btn--tall {
  min-height: 54px;
}

.hd-form__btn i,
.hd-form__btn .icon_btn {
  display: none;
}

/* Login layout */
.hd-auth {
  max-width: var(--container);
  margin: 72px auto 96px;
  padding: 0 var(--gutter);
}

.hd-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hd-auth__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--color-heading);
  margin: 0 0 12px;
}

.hd-auth__lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 28px;
}

.hd-auth__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hd-auth__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.hd-auth__label-row label {
  margin-bottom: 0 !important;
}

.hd-auth__forgot {
  font-size: 13px;
  color: var(--color-cta);
  text-decoration: none;
  white-space: nowrap;
}

.hd-auth__forgot:hover {
  text-decoration: underline;
}

.hd-auth__aside {
  background: var(--color-bg-alt);
  border-radius: 28px;
  padding: 48px;
}

.hd-auth__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent-text);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hd-auth__aside-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--color-heading);
  margin: 0 0 12px;
}

.hd-auth__aside-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 24px;
}

.hd-auth__partner-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hd-auth__partner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-cta);
  font-size: 20px;
}

.hd-auth__partner-card strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.hd-auth__partner-card p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
}

.hd-auth__partner-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-cta);
  text-decoration: none;
}

.hd-auth__partner-link:hover {
  text-decoration: underline;
}

/* Register layout */
.hd-auth--register {
  max-width: 640px;
  margin: 64px auto 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hd-auth__register-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-auth__register-login {
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}

.hd-auth__register-login a {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  text-decoration: none;
  font-weight: 400;
}

.hd-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.hd-form--register .st_form_item_email,
.hd-form--register .st_form_item_password,
.hd-form--register .st_form_item_birthday,
.hd-form--register .st_form_item_id_gender,
.hd-form--register .field-password-policy,
.hd-form--register #customer-type-selection-container {
  grid-column: 1 / -1;
}

.hd-form__checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--color-line);
  padding-top: 24px;
  margin-top: 4px;
  grid-column: 1 / -1;
}

.hd-form__checks .st_form_item_psgdpr {
  order: 1;
}

.hd-form__checks .st_form_item_customer_privacy {
  order: 1;
}

.hd-form__checks .st_form_item_newsletter {
  order: 2;
}

.hd-form__checks .st_form_item_optin {
  order: 3;
}

.hd-form--register button.hd-form__btn--primary.hd-form__btn--tall {
  margin-top: 32px;
}

.hd-form__privacy-note {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

.hd-form__privacy-note strong {
  font-weight: 500;
  color: var(--color-muted);
}

/* Tipo de cliente — segment control (.hd-seg) */
#customer-type-selection-container.hd-seg {
  grid-column: 1 / -1;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hd-seg {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hd-seg__legend {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 8px;
  padding: 0;
  width: 100%;
}

.hd-seg__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  height: 52px;
  box-sizing: border-box;
  max-width: 420px;
  width: 100%;
  border-radius: 999px;
  background: #f5f5f7;
}

.hd-seg__opt {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  height: 100%;
  cursor: pointer;
}

.hd-seg__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.hd-seg__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 999px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1;
  background: transparent;
  box-shadow: none;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.hd-seg__input:checked + .hd-seg__pill {
  background: #fff;
  color: var(--color-cta);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(43, 49, 129, 0.1);
}

.hd-seg__input:focus-visible + .hd-seg__pill {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

.hd-seg .custom-radio,
.hd-seg .custom-input-box,
.hd-seg .custom-input-item,
.hd-seg .radio,
.hd-seg span.custom-radio {
  display: none !important;
}

.hd-seg__opt::before,
.hd-seg__opt::after,
.hd-seg__pill::before,
.hd-seg__pill::after {
  content: none !important;
  display: none !important;
}

#customer-type-selection-container .hd-form__partner-notice {
  margin-top: 12px;
}

.hd-form__partner-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  grid-column: 1 / -1;
  background: var(--color-soft);
  color: var(--color-cta);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.hd-form__partner-notice[hidden] {
  display: none !important;
}

.hd-form__partner-notice-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.3;
}

/* Home / contact page — widget Escríbenos (underline fields) */
#contacto .contacto-hispadrive__formbox.hd-form--contact {
  background: #ffffff !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  max-width: 100% !important;
}

#contacto .contacto-hispadrive__titulo,
#contacto .hd-form__contact-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  line-height: 1.2;
  color: var(--color-heading);
  text-transform: uppercase;
}

#contacto .hd-form__contact-head {
  margin-bottom: 28px;
}

#contacto .hd-form__contact-head .contacto-hispadrive__titulo {
  margin-bottom: 0;
}

#contacto .hd-form--contact label:not(.hd-form__check):not(.custom-checkbox label) {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9ab0;
}

#contacto .hd-form--contact label.required::after {
  content: none;
}

#contacto .hd-form--contact .form-group {
  margin-bottom: 0;
}

#contacto .hd-form--contact .hd-form__inner--contact-underline {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

#contacto .hd-form--contact .hd-form__control--underline,
#contacto .hd-form--contact textarea.hd-form__control--underline {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0 0 12px !important;
  border: none !important;
  border-bottom: 1px solid #c8c8d4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--color-text) !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none !important;
  transition: border-color 0.15s ease;
}

#contacto .hd-form--contact .hd-form__control--underline:focus,
#contacto .hd-form--contact textarea.hd-form__control--underline:focus {
  outline: none;
  border-bottom-color: var(--color-cta) !important;
  box-shadow: none !important;
}

#contacto .hd-form--contact .hd-form__textarea--underline {
  min-height: 120px;
  padding-top: 4px !important;
  resize: vertical;
}

#contacto .hd-form__grid--contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin-bottom: 0;
}

#contacto .hd-form__grid--contact-row .form-group {
  margin-bottom: 0;
}

#contacto .hd-form--contact .contacto-hispadrive__rgpd,
#contacto .hd-form--contact .hd-form__checks {
  margin: -8px 0 0;
  padding-top: 0;
  border: none;
}

#contacto .hd-form--contact .contacto-hispadrive__rgpd label,
#contacto .hd-form--contact .psgdpr_consent_message,
#contacto .hd-form--contact .custom-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--color-text) !important;
  margin: 0;
}

#contacto .hd-form--contact .contacto-hispadrive__rgpd input[type="checkbox"],
#contacto .hd-form--contact .custom-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-cta);
}

#contacto .hd-form--contact .custom-checkbox .custom-input-box,
#contacto .hd-form--contact .custom-input-item {
  display: none;
}

#contacto .hd-form--contact .contacto-hispadrive__rgpd a {
  color: var(--color-cta);
}

#contacto .hd-form__btn--contact {
  margin-top: 8px;
  min-height: 52px;
  padding: 0 36px;
  width: auto;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
}

.hd-form__notice,
#contacto .hd-form__notice {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.hd-form__notice-list,
#contacto .hd-form__notice-list {
  margin: 0;
  padding-left: 18px;
}

.hd-form__notice--success,
#contacto .hd-form__notice--success {
  background: #e7f6ee;
  color: #1e6b45;
}

.hd-form__notice--error,
#contacto .hd-form__notice--error {
  background: #fdecea;
  color: #a3261b;
}

/* Password recovery (narrow column) */
.hispadrive-password-page .hd-auth--narrow {
  max-width: 480px;
  margin: 72px auto 120px;
  padding: 0 var(--gutter);
  text-align: center;
}

.hispadrive-password-page .hd-auth__icon-box {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--color-soft);
  color: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hispadrive-password-page .hd-auth__title--narrow {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.8px;
  text-align: center;
  text-transform: none;
  margin-bottom: 12px;
}

.hispadrive-password-page .hd-auth__lead--narrow {
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  margin: 0 0 32px;
  color: var(--color-text);
}

.hispadrive-password-page .hd-auth__email-hint {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 28px;
}

.hispadrive-password-page .hd-auth__fields {
  text-align: left;
}

.hispadrive-password-page .hd-auth__back-link-wrap {
  margin: 24px 0 0;
  text-align: center;
}

.hispadrive-password-page .hd-auth__back-link {
  font-size: 14px;
  color: var(--color-cta);
  text-decoration: none;
}

.hispadrive-password-page .hd-auth__back-link:hover {
  text-decoration: underline;
}

.hispadrive-password-page .ps-alert-error,
.hispadrive-password-page .ps-alert-success {
  display: none !important;
}

/* Customer account area */
.hispadrive-account-page #page_banner_container_1,
.hispadrive-account-page #page_banner_container_1 + .breadcrumb_spacing {
  display: none !important;
}

.hispadrive-account-page #breadcrumb_wrapper.hd-breadcrumb {
  margin-top: 24px;
  margin-bottom: 0;
}

.hispadrive-account-page .my_account_left_column,
.hispadrive-account-page .my-account-links,
.hispadrive-account-page .page_heading {
  display: none !important;
}

.hispadrive-account-page .from_blcok,
.hispadrive-account-page .general_border,
.hispadrive-account-page .box {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.hispadrive-account-page .btn-default.account-link,
.hispadrive-account-page a.account-link.btn {
  display: none !important;
}

.hd-account {
  max-width: var(--container);
  margin: 48px auto 96px;
  padding: 0 var(--gutter);
}

.hd-account__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--color-heading);
  margin: 0 0 12px;
}

.hd-account__subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-heading);
  margin: 0 0 16px;
}

.hd-account__greeting,
.hd-account__intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 32px;
}

.hd-account__dash-head {
  margin-bottom: 28px;
}

.hispadrive-account-page .hd-partner-status--account-card {
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 22px;
  background: var(--color-soft);
}

.hispadrive-account-page .hd-partner-status--account-card:hover,
.hispadrive-account-page .hd-partner-status--account-card:focus-visible {
  background: var(--color-soft);
  outline: 2px solid rgba(43, 49, 129, 0.15);
  outline-offset: 2px;
}

.hd-account__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hd-account-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background: #f5f5f7;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hd-account-card:hover {
  background: #ececf0;
  color: var(--color-text);
  text-decoration: none;
}

.hd-account-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-soft);
  color: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-account-card__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-heading);
}

.hd-account__sign-out {
  margin: 32px 0 0;
  text-align: center;
}

.hd-account__sign-out-link {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
}

.hd-account__sign-out-link:hover {
  color: var(--color-cta);
  text-decoration: underline;
}

.hd-account__text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-cta);
  text-decoration: none;
}

.hd-account__text-link:hover {
  text-decoration: underline;
}

.hd-account__panel {
  background: #f5f5f7;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 20px;
}

.hd-account__meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
}

.hd-account__table-wrap {
  overflow-x: auto;
}

.hd-account__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.hd-account__table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  text-align: left;
  padding: 0 12px 12px 0;
  border-bottom: 1px solid #ececf3;
}

.hd-account__table tbody tr + tr td,
.hd-account__table tbody tr + tr th {
  border-top: 1px solid #ececf3;
}

.hd-account__table tbody td,
.hd-account__table tbody th {
  padding: 16px 12px 16px 0;
  vertical-align: middle;
  font-weight: 400;
}

.hd-account__status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: color-mix(in srgb, var(--status-color, #888) 18%, #fff);
  color: var(--status-color, #444);
}

.hd-account__addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.hd-account__addresses .hd-account__panel {
  height: 100%;
  margin-bottom: 0;
}

.hd-account__favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hd-account--identity .hd-account__title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.hd-form.hd-form--account,
.hd-form.hd-form--identity {
  max-width: 640px;
  width: 100%;
}

.hd-form--account .form_content,
.hd-form--account .form_content_inner,
.hd-form--identity .form_content,
.hd-form--identity .form_content_inner {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

.hd-form__grid--account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
  align-content: start;
}

.hd-form__cell {
  min-width: 0;
}

.hd-form__cell .form-group {
  margin-bottom: 0;
}

.hd-form--account .hd-form__cell--full {
  grid-column: 1 / -1;
}

.hd-form--account .st_form_item_id_gender .hd-form__radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hd-form--account .form-control-comment,
.hd-form--account .help-block,
.hd-form--identity .form-control-comment,
.hd-form--identity .help-block {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: var(--color-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.hd-form__cell--full {
  grid-column: 1 / -1;
}

/* Dirección — checkout y Mi cuenta */
.hd-form.hd-form--address {
  max-width: none;
  width: 100%;
}

.hd-form__grid--address {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  width: 100%;
  align-content: start;
}

.hd-form__grid--address > .hd-form__cell--address1,
.hd-form__grid--address > .hd-form__cell--address2,
.hd-form__grid--address > .hd-form__cell--phone,
.hd-form__grid--address > .hd-form__cell--phone_mobile,
.hd-form__grid--address > .hd-form__cell--alias,
.hd-form__grid--address > .hd-form__cell--use_same_address,
.hd-form__grid--address > .hd-form__cell--other {
  grid-column: 1 / -1;
}

.hd-form--address .hd-form__label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.hd-form--address label.required::after {
  color: var(--color-accent-text);
}

.hd-form--address .form-control,
.hd-form--address .form-control-select,
.hd-form--address select.form-control,
.hd-form--address input.form-control:not([type='checkbox']):not([type='radio']) {
  font: inherit;
  font-family: var(--font-sans);
  height: 50px;
  padding: 0 16px;
  border: 1px solid #d9d9e4;
  border-radius: 14px;
  box-shadow: none;
}

.hd-form--address select.form-control-select,
.hd-form--address .hd-form__select {
  appearance: none;
  padding-right: 40px;
  text-overflow: ellipsis;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.hd-form--address .hd-form__check--address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
}

.hd-form--address .hd-form__check--address input {
  margin-top: 3px;
  flex-shrink: 0;
}

.hd-form__footer--address {
  margin-top: 24px;
}

.hispadrive-account-page .hd-form--address .hd-form__footer .hd-form__btn {
  min-height: 52px;
  padding: 0 32px;
  font-family: var(--font-sans);
}

@media (max-width: 767px) {
  .hd-form__grid--address {
    grid-template-columns: 1fr;
  }

  .hd-form__grid--address > .hd-form__cell {
    grid-column: 1 / -1;
  }
}

.hd-form__footer {
  margin-top: 8px;
  text-align: left;
}

.hd-form--account .hd-form__footer .hd-form__btn {
  width: auto;
  min-width: 160px;
}

.hispadrive-account-page .hd-form .form-footer .btn-default:not(.hd-form__btn) {
  display: none;
}

.hispadrive-account-page #customer-form .row.com_grid_view,
.hispadrive-account-page .address-form .row.com_grid_view {
  display: contents;
}

#contacto .contacto-hispadrive__formtitulo {
  display: none;
}

@media (max-width: 767px) {
  #contacto .hd-form__contact-head {
    margin-bottom: 24px;
  }

  #contacto .hd-form__grid--contact-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  #contacto .hd-form--contact .hd-form__inner--contact-underline {
    gap: 32px;
  }

  #contacto .hd-form__btn--contact {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 767px) {
  .hd-auth {
    margin-top: 40px;
    padding: 0 28px;
  }

  .hd-auth__grid {
    grid-template-columns: 1fr;
  }

  .hd-auth__aside {
    padding: 28px;
    border-radius: 22px;
  }

  .hd-auth__title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .hd-form__grid {
    grid-template-columns: 1fr;
  }

  .hd-form--register .st_form_item_firstname,
  .hd-form--register .st_form_item_lastname,
  .hd-form--register .st_form_item_company,
  .hd-form--register .st_form_item_siret {
    grid-column: 1;
  }

  .hispadrive-password-page .hd-auth--narrow {
    margin-top: 40px;
    margin-bottom: 80px;
  }

  .hd-account__grid,
  .hd-account__favorites-grid {
    grid-template-columns: 1fr;
  }

  .hd-account__addresses {
    grid-template-columns: 1fr;
  }

  .hd-form__grid--account {
    grid-template-columns: 1fr;
  }

  .hd-account__title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
}

/* --- Order history & order detail --- */
.hd-account-orders__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hd-account-orders__head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hd-account-orders__head .hd-account__title {
  margin-bottom: 8px;
}

.hd-account-orders__head .hd-account__intro {
  margin-bottom: 0;
}

.hd-account-orders__count {
  flex: none;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
}

.hd-order-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f5f5f7;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.hd-order-status__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hd-order-thumbs {
  display: flex;
  flex: none;
  align-items: center;
}

.hd-order-thumbs__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #f5f5f7;
  margin-right: -10px;
}

.hd-order-thumbs__item:last-child {
  margin-right: 0;
}

.hd-order-thumbs--48 .hd-order-thumbs__item {
  width: 48px;
  height: 48px;
}

.hd-order-thumbs--40 .hd-order-thumbs__item {
  width: 40px;
  height: 40px;
}

.hd-order-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hd-order-thumbs__more {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-heading);
}

.hd-account-orders__grid {
  display: none;
}

.hd-account-orders__cards {
  display: block;
}

.hd-account-orders__ref {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
}

.hd-account-orders__ref:hover {
  color: var(--color-cta);
  text-decoration: none;
}

.hd-account-orders__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.4;
}

.hd-account-orders__reorder {
  font-size: 13px;
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hd-account-orders__reorder:hover {
  color: var(--color-cta);
}

.hd-account-orders__reorder--center {
  display: block;
  text-align: center;
}

.hd-account-orders__details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d9d9e4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-cta);
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
}

.hd-account-orders__details-btn:hover {
  border-color: var(--color-cta);
  color: var(--color-cta);
  text-decoration: none;
}

.hd-account-orders__details-btn--full {
  width: 100%;
  height: 44px;
}

.hd-account__order-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid #ececf3;
  border-radius: 20px;
  background: #fff;
}

.hd-account__order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hd-account__order-meta {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.4;
}

.hd-account__order-card-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hd-account__order-card-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
}

.hd-account__order-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-account__empty {
  max-width: 440px;
  margin: 48px auto;
  text-align: center;
}

.hd-account__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-soft);
  color: var(--color-cta);
}

.hd-account__empty-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  color: var(--color-heading);
}

.hd-account__empty-text {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.5;
}

.hd-account__empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
}

@media (min-width: 992px) {
  .hd-account-orders__grid {
    display: block;
  }

  .hd-account-orders__cards {
    display: none;
  }

  .hd-account-orders__grid-head,
  .hd-account-orders__grid-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 140px 170px 130px 220px;
    gap: 24px;
    align-items: center;
  }

  .hd-account-orders__grid-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #ececf3;
  }

  .hd-account-orders__grid-head .hd-account-orders__col {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  .hd-account-orders__col--total,
  .hd-account-orders__col--actions,
  .hd-account-orders__grid-head .hd-account-orders__col--total,
  .hd-account-orders__grid-head .hd-account-orders__col--actions {
    text-align: right;
  }

  .hd-account-orders__grid-row {
    padding: 22px 0;
    border-bottom: 1px solid #ececf3;
  }

  .hd-account-orders__col--date {
    font-size: 14px;
    color: var(--color-text);
  }

  .hd-account-orders__col--total {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-heading);
  }

  .hd-account-orders__col--actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }

  .hd-account-orders__order-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .hd-account-orders__order-text {
    min-width: 0;
  }

  .hd-account-orders__grid--slips .hd-account-orders__grid-head,
  .hd-account-orders__grid--slips .hd-account-orders__grid-row {
    grid-template-columns: minmax(0, 1fr) 180px 160px 240px;
  }
}

.hd-account-orders__doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-soft);
  color: var(--color-cta);
}

.hd-account-orders__doc-icon--sm {
  width: 36px;
  height: 36px;
}

.hd-account-orders__slip-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
}

.hd-account-orders__pedido-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-cta);
  text-decoration: none;
}

.hd-account-orders__pedido-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--color-cta);
}

.hd-account-orders__details-btn--download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hd-account__empty-cta--secondary {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--color-cta);
  border-radius: 999px;
  background: transparent;
  color: var(--color-cta);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hd-account__empty-cta--secondary:hover {
  color: var(--color-cta);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.02);
}

/* Order detail */
.hd-order-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hd-order-detail__head .hd-account__title {
  margin-bottom: 6px;
}

.hd-order-detail__head .hd-account__intro {
  margin-bottom: 0;
}

.hd-order-detail__actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 32px;
}

.hd-order-detail__product-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hd-order-detail__product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ececf3;
}

.hd-order-detail__product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f5f5f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-order-detail__product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hd-order-detail__product-name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.35;
}

.hd-order-detail__product-name a {
  color: inherit;
  text-decoration: none;
}

.hd-order-detail__product-name a:hover {
  color: var(--color-cta);
}

.hd-order-detail__product-ref {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-muted);
}

.hd-order-detail__product-qty {
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
}

.hd-order-detail__product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
  text-align: right;
}

.hd-order-detail__totals {
  max-width: 420px;
  margin-left: auto;
  padding: 20px 0 0;
}

.hd-order-detail__totals .hd-cart-drawer__summary {
  margin: 0;
}

.hd-order-detail__addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.hd-order-detail__address-card {
  padding: 24px;
  border-radius: 22px;
  background: #f5f5f7;
}

.hd-order-detail__address-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-heading);
}

.hd-order-detail__address-body {
  font-style: normal;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-text);
}

.hd-order-detail__meta {
  margin-bottom: 28px;
}

.hd-order-detail__timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
}

.hd-order-detail__timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 24px 20px;
  border-left: 2px solid #ececf3;
}

.hd-order-detail__timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.hd-order-detail__timeline-dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--state-color, var(--color-cta));
  box-shadow: 0 0 0 3px #fff;
}

.hd-order-detail__timeline-item.is-current .hd-order-detail__timeline-dot {
  width: 12px;
  height: 12px;
  left: -7px;
}

.hd-order-detail__timeline-date {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.hd-order-detail__back {
  margin: 40px 0 0;
  text-align: center;
}

@media (max-width: 991.98px) {
  .hd-account-orders__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hd-order-detail__product {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      'thumb body'
      'qty price';
  }

  .hd-order-detail__product-thumb {
    grid-area: thumb;
    width: 48px;
    height: 48px;
  }

  .hd-order-detail__product-body {
    grid-area: body;
  }

  .hd-order-detail__product-qty {
    grid-area: qty;
    padding-left: 64px;
  }

  .hd-order-detail__product-price {
    grid-area: price;
    text-align: right;
  }

  .hd-order-detail__totals {
    max-width: none;
    margin-left: 0;
  }

  .hd-order-detail__addresses {
    grid-template-columns: 1fr;
  }

  .hd-order-detail__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
