/* WordPress / WooCommerce compatibility — does not restyle the template. */

body.admin-bar {
  padding-top: 80px;
}

body.admin-bar .topbar {
  top: var(--wp-admin--admin-bar--height, 32px);
}

body.admin-bar .header {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--topbar-h));
}

body.admin-bar .mobile-menu,
body.admin-bar .search-panel {
  top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--topbar-h) + var(--header-h));
}

.woocommerce-page-wrap .woocommerce,
.woocommerce-page-wrap form.checkout,
.woocommerce-page-wrap .woocommerce-form {
  font-family: inherit;
}

/* Empty notices wrapper must not look like a blank card. */
.woocommerce-notices-wrapper:empty {
  display: none;
}
.woocommerce-notices-wrapper:not(:empty) {
  margin: 0 0 16px;
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  font-size: 13px;
  line-height: 1.55;
  list-style: none;
}
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
  margin-bottom: 0;
}
.woocommerce-notices-wrapper .woocommerce-info + .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message + .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error + .woocommerce-error,
.woocommerce-notices-wrapper > * + * {
  margin-top: 12px;
}

.woocommerce-error {
  border-color: rgba(160, 30, 30, 0.25);
  background: #fff7f7;
  color: #7a1c1c;
}

.woocommerce-message,
.woocommerce-info {
  border-color: rgba(0,0,0,0.1);
  background: #fafafa;
}

.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.is-hidden[hidden],
.is-hidden {
  display: none !important;
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.page-checkout .page-section--checkout {
  padding-top: clamp(24px, 3.5vw, 40px) !important;
  padding-bottom: clamp(48px, 7vw, 80px) !important;
}

.page-checkout .page-section--checkout .woocommerce {
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

form.checkout.mischief-checkout {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mischief-checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.mischief-checkout__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.mischief-checkout__card {
  background: #fff;
  border: 1px solid var(--ink-12, rgba(0,0,0,0.12));
  padding: 24px;
  min-width: 0;
  box-sizing: border-box;
}

.mischief-checkout__card--summary {
  position: sticky;
  top: calc(var(--topbar-h, 0px) + var(--header-h, 64px) + 16px);
}

.mischief-checkout__title {
  margin: 0 0 18px;
  font-family: var(--font-heading, inherit);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #111;
}

.mischief-checkout__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40, rgba(0,0,0,0.4));
}

.mischief-checkout__hint {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ink-12, rgba(0,0,0,0.12));
  background: #fafafa;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-55, rgba(0,0,0,0.55));
}

/* Fields */
.mischief-checkout .woocommerce-billing-fields > h3,
.mischief-checkout .woocommerce-shipping-fields > h3,
.mischief-checkout .woocommerce-additional-fields > h3 {
  display: none;
}

.mischief-checkout .woocommerce-billing-fields,
.mischief-checkout .woocommerce-shipping-fields,
.mischief-checkout .woocommerce-additional-fields,
.mischief-checkout .woocommerce-account-fields {
  margin: 0;
  padding: 0;
}

.mischief-checkout .woocommerce-shipping-fields,
.mischief-checkout .woocommerce-additional-fields,
.mischief-checkout .woocommerce-account-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-08, rgba(0,0,0,0.08));
}

.mischief-checkout .woocommerce-billing-fields__field-wrapper,
.mischief-checkout .woocommerce-shipping-fields__field-wrapper,
.mischief-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.mischief-checkout .form-row {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mischief-checkout .form-row-wide,
.mischief-checkout .address-field {
  grid-column: 1 / -1;
}

.mischief-checkout .form-row-first,
.mischief-checkout .form-row-last {
  grid-column: auto;
}

.mischief-checkout .mischief-checkout-field--hidden,
.mischief-checkout #billing_country_field,
.mischief-checkout #shipping_country_field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  grid-column: 1 / -1;
}

.mischief-checkout .form-row label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-55, rgba(0,0,0,0.55));
}

.mischief-checkout .form-row .required { color: #b42318; }
.mischief-checkout .form-row .optional {
  color: var(--ink-40, rgba(0,0,0,0.4));
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.mischief-checkout .form-row .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

/* Indo Ongkir autocomplete / Select2 — keep usable inside theme grid */
.mischief-checkout .wcio-autocomplete-container,
.mischief-checkout .select2-container {
  width: 100% !important;
}
.mischief-checkout .wcio-autocomplete-results {
  z-index: 30;
  border-color: var(--ink-12, rgba(0,0,0,0.12));
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mischief-checkout .wcio-autocomplete-item:hover {
  background: #f5f5f5;
}

.mischief-checkout .form-row input.input-text,
.mischief-checkout .form-row textarea,
.mischief-checkout .form-row select {
  appearance: none;
  width: 100% !important;
  max-width: 100%;
  min-height: 46px;
  height: auto;
  border: 1px solid var(--ink-12, rgba(0,0,0,0.12));
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

/* Select2: one border on the selection only (not container + selection) */
.mischief-checkout .form-row .select2-container {
  width: 100% !important;
  max-width: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  box-shadow: none !important;
}

.mischief-checkout .form-row .select2-container .select2-selection--single {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100% !important;
  max-width: 100%;
  min-height: 46px;
  height: auto;
  border: 1px solid var(--ink-12, rgba(0,0,0,0.12)) !important;
  background: #fff !important;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 12px 36px 12px 14px;
  border-radius: 0 !important;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  box-shadow: none !important;
}

.mischief-checkout .form-row .select2-container--open .select2-selection--single,
.mischief-checkout .form-row .select2-container--focus .select2-selection--single {
  border-color: #111 !important;
}

.mischief-checkout .form-row .select2-container .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.3;
  color: #111 !important;
}

.mischief-checkout .form-row .select2-container .select2-selection__arrow {
  top: 0;
  right: 8px;
  height: 100%;
  width: 24px;
}

.mischief-checkout .form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.mischief-checkout .form-row input.input-text:focus,
.mischief-checkout .form-row textarea:focus,
.mischief-checkout .form-row select:focus {
  border-color: #111;
}

.mischief-checkout .form-row::after,
.mischief-checkout .form-row::before,
.mischief-checkout .clear,
.mischief-checkout .woocommerce-billing-fields__field-wrapper::after,
.mischief-checkout .woocommerce-shipping-fields__field-wrapper::after {
  display: none !important;
  content: none !important;
}

.mischief-checkout #ship-to-different-address {
  margin: 0 0 12px;
  grid-column: 1 / -1;
}

.mischief-checkout #ship-to-different-address label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-65, rgba(0,0,0,0.65));
  cursor: pointer;
}

/* Option cards */
.mischief-checkout__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mischief-checkout__option {
  position: relative;
  margin: 0;
  list-style: none;
}

.mischief-checkout__option > input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.mischief-checkout__option-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-12, rgba(0,0,0,0.12));
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mischief-checkout__option-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mischief-checkout__option-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.mischief-checkout__option-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-55, rgba(0,0,0,0.55));
  font-weight: 400;
}

.mischief-checkout__option-side {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.mischief-checkout__option-side--discount,
.mischief-checkout__option-side--discount .amount,
.mischief-checkout__totals .cart-discount td,
.mischief-checkout__totals .cart-discount td .amount {
  color: #b42318;
}

.mischief-checkout__option > input[type="radio"]:checked + .mischief-checkout__option-label,
.mischief-checkout__option.is-active .mischief-checkout__option-label {
  border-color: #111;
  background: #fafafa;
}

.mischief-checkout__option .payment_box {
  margin: -1px 0 0;
  padding: 10px 14px 12px;
  border: 1px solid #111;
  border-top: 0;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-55, rgba(0,0,0,0.55));
}

.mischief-checkout__option .payment_box p { margin: 0; }

.mischief-checkout .woocommerce-checkout-payment {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

.mischief-checkout .wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Summary */
.mischief-checkout__line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mischief-checkout__thumb {
  display: block;
  width: 52px;
  height: 64px;
  overflow: hidden;
  background: #ececec;
}

.mischief-checkout__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mischief-checkout__line-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mischief-checkout__line-attr {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-55, rgba(0,0,0,0.55));
}

.mischief-checkout__line-attr .variation { display: inline; }
.mischief-checkout__line-attr .variation dt,
.mischief-checkout__line-attr .variation dd { display: inline; margin: 0; }
.mischief-checkout__line-attr .variation dd p { display: inline; margin: 0; }
.mischief-checkout__line-attr .product-quantity::before { content: '· '; }

.mischief-checkout__line-price {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.mischief-checkout__review-body .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
}

.mischief-checkout__review-body .shop_table td {
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  vertical-align: middle;
}

.mischief-checkout__voucher {
  margin: 0 0 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink-08, rgba(0,0,0,0.08));
}

.mischief-checkout__coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.mischief-checkout__coupon .input-text {
  min-height: 42px;
  border: 1px solid var(--ink-12, rgba(0,0,0,0.12));
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.mischief-checkout__coupon .input-text:focus { border-color: #111; }

.mischief-checkout__coupon .button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.mischief-checkout__coupon .button:hover {
  background: #fff;
  color: #111;
}

.mischief-checkout__totals {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
}

.mischief-checkout__totals th,
.mischief-checkout__totals td {
  padding: 7px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-65, rgba(0,0,0,0.65));
}

.mischief-checkout__totals th { text-align: left; }
.mischief-checkout__totals td { text-align: right; color: #111; font-weight: 600; }

.mischief-checkout__totals .order-total th,
.mischief-checkout__totals .order-total td {
  padding-top: 12px;
  border-top: 1px solid var(--ink-12, rgba(0,0,0,0.12));
  font-size: 15px;
  font-weight: 800;
  color: #111;
}

.mischief-checkout__place-wrap { margin-top: 4px; }

.mischief-checkout__place-wrap .woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-55, rgba(0,0,0,0.55));
}

.mischief-checkout__place,
.mischief-checkout__place-wrap #place_order {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Keep dark base; theme .btn::before sweeps white. Text must flip to black. */
.mischief-checkout__place:hover,
.mischief-checkout__place-wrap #place_order:hover,
.mischief-checkout__place:focus-visible,
.mischief-checkout__place-wrap #place_order:focus-visible {
  background: #111;
  color: #111;
}

.mischief-checkout__place span,
.mischief-checkout__place-wrap #place_order span {
  position: relative;
  z-index: 1;
  color: inherit;
}

.mischief-checkout__back {
  margin: 14px 0 0;
  text-align: center;
}

.mischief-checkout__back a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-55, rgba(0,0,0,0.55));
  text-decoration: none;
}

.mischief-checkout__back a:hover {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cart empty */
.woocommerce-cart .mischief-cart-empty,
.woocommerce-cart .cart-empty.woocommerce-info {
  max-width: 520px;
  margin: clamp(48px, 8vw, 96px) auto;
  padding: clamp(36px, 5vw, 48px) 28px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  text-align: center;
}

.mischief-cart-empty__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
}

.mischief-cart-empty__title {
  margin: 0 0 12px;
  font-family: var(--font-heading, inherit);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mischief-cart-empty__text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0,0,0,0.55);
}

.woocommerce-cart .return-to-shop { text-align: center; margin: 0; }

.woocommerce-cart .return-to-shop .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.woocommerce-cart .return-to-shop .button:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 980px) {
  .mischief-checkout__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mischief-checkout__card--summary {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 720px) {
  .mischief-checkout__grid {
    grid-template-columns: 1fr;
  }

  .mischief-checkout .woocommerce-billing-fields__field-wrapper,
  .mischief-checkout .woocommerce-shipping-fields__field-wrapper,
  .mischief-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .mischief-checkout__coupon {
    grid-template-columns: 1fr;
  }

  .mischief-checkout__card {
    padding: 18px;
  }
}

/* ==========================================================================
   MY ACCOUNT
   ========================================================================== */
.page-shell--account .page-section--account {
  padding-top: clamp(28px, 4vw, 48px) !important;
  padding-bottom: clamp(48px, 8vw, 96px) !important;
  background: #f5f5f5;
}

.msc-account-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.msc-account-wrap .woocommerce {
  margin: 0;
}

.msc-account {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.msc-account__sidebar,
.msc-account__main {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.msc-account__sidebar {
  padding: 0;
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
}

.msc-account__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.msc-account__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0;
}

.msc-account__hello {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
}

.msc-account__name {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.msc-account__email {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  word-break: break-all;
  line-height: 1.35;
}

.msc-account__nav,
.woocommerce-MyAccount-navigation {
  margin: 0;
  padding: 10px;
}

.msc-account__nav ul,
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msc-account__nav li,
.woocommerce-MyAccount-navigation li {
  margin: 0;
}

.msc-account__nav a,
.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.msc-account__nav a:hover,
.woocommerce-MyAccount-navigation a:hover {
  background: #f3f3f3;
  color: #111;
}

.msc-account__nav .is-active a,
.woocommerce-MyAccount-navigation .is-active a {
  background: #111;
  color: #fff;
}

.msc-account__main {
  padding: clamp(22px, 3vw, 32px);
  min-height: 420px;
}

.msc-account__main > h2,
.msc-account__main > h3,
.msc-account-dash__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #111;
}

.msc-account-dash__text {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.58);
}

.msc-account-dash__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.msc-account-dash__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.msc-account-dash__card:hover {
  border-color: #111;
  background: #fff;
  transform: translateY(-1px);
}

.msc-account-dash__card strong {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.msc-account-dash__card span {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.5);
}

.msc-account-dash__logout {
  margin: 0;
}

.msc-account-dash__logout .btn {
  min-width: 140px;
}

/* Woo forms inside account */
.msc-account__main .woocommerce-OrdersTable,
.msc-account__main table.shop_table,
.msc-thankyou table.shop_table,
.msc-view-order table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.msc-account__main table.shop_table th,
.msc-account__main table.shop_table td,
.msc-thankyou table.shop_table th,
.msc-thankyou table.shop_table td,
.msc-view-order table.shop_table th,
.msc-view-order table.shop_table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.msc-account__main table.shop_table th,
.msc-thankyou table.shop_table th,
.msc-view-order table.shop_table th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.msc-account__main table.shop_table td.product-total,
.msc-account__main table.shop_table tfoot td,
.msc-thankyou table.shop_table td.product-total,
.msc-thankyou table.shop_table tfoot td,
.msc-view-order table.shop_table td.product-total,
.msc-view-order table.shop_table tfoot td {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.msc-account__main table.shop_table tfoot th,
.msc-thankyou table.shop_table tfoot th,
.msc-view-order table.shop_table tfoot th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.55);
}

.msc-account__main table.shop_table .order-total th,
.msc-account__main table.shop_table .order-total td,
.msc-thankyou table.shop_table .order-total th,
.msc-thankyou table.shop_table .order-total td,
.msc-view-order table.shop_table .order-total th,
.msc-view-order table.shop_table .order-total td {
  border-bottom: 0;
  font-size: 14px;
  color: #111;
  font-weight: 800;
  padding-top: 16px;
}

.msc-account__main .woocommerce-order-details__title,
.msc-thankyou .woocommerce-order-details__title,
.msc-view-order .woocommerce-order-details__title,
.msc-account__main .woocommerce-column__title,
.msc-thankyou .woocommerce-column__title,
.msc-view-order .woocommerce-column__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111;
}

.msc-account__main .woocommerce-customer-details,
.msc-thankyou .woocommerce-customer-details,
.msc-view-order .woocommerce-customer-details {
  margin-top: 28px;
}

.msc-account__main .woocommerce-customer-details address,
.msc-thankyou .woocommerce-customer-details address,
.msc-view-order .woocommerce-customer-details address {
  font-style: normal;
  line-height: 1.65;
  font-size: 13.5px;
  color: rgba(0, 0, 0, 0.72);
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fafafa;
}

.msc-account__main mark,
.msc-view-order mark {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* View order */
.msc-view-order__status {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fafafa;
}

.msc-view-order__status-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

.msc-view-order__num,
.msc-view-order__date {
  color: #111;
  font-weight: 700;
}

.msc-view-order__badge {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.msc-view-order__notes {
  margin: 0 0 24px;
}

.msc-view-order__notes h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.msc-view-order .woocommerce-OrderUpdates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.msc-view-order .woocommerce-OrderUpdate {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
}

.msc-view-order .woocommerce-OrderUpdate-meta {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

/* Address book */
.msc-addresses__grid,
.msc-account__main .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.msc-addresses__grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.msc-account__main .woocommerce-Address,
.msc-addresses__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fafafa;
  min-height: 180px;
}

.msc-addresses__head,
.msc-account__main .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.msc-addresses__head h3,
.msc-account__main .woocommerce-Address-title h2,
.msc-account__main .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.01em;
}

.msc-addresses__edit,
.msc-account__main .woocommerce-Address-title .edit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #111;
}

.msc-addresses__body,
.msc-account__main .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
}

.msc-addresses__empty {
  color: rgba(0, 0, 0, 0.45);
  font-style: italic;
}

.msc-addresses__card.is-empty {
  background: #fff;
  border-style: dashed;
}

/* Account info form */
.msc-account-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.msc-account-info__hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.45;
}

.msc-account-info__password {
  margin: 8px 0 22px;
  padding: 18px 18px 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fafafa;
}

.msc-account-info__password legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.msc-account-info__submit {
  margin: 0;
}

.msc-account__main form .form-row {
  margin: 0 0 16px;
  float: none;
  width: 100%;
}

.msc-account__main form .form-row-first,
.msc-account__main form .form-row-last {
  float: none;
  width: 100%;
}

.msc-account__main form label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
}

.msc-account__main form .required {
  color: #b42318;
  text-decoration: none;
}

.msc-account__main form .password-input {
  display: block;
  position: relative;
  width: 100%;
}

.msc-account__main form .password-input input.input-text {
  padding-right: 48px;
}

.msc-account__main form .show-password-input,
.msc-account__main form button.show-password-input {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: rgba(0, 0, 0, 0.45) !important;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.msc-account__main form .show-password-input::before,
.msc-account__main form .show-password-input::after {
  content: none !important;
  display: none !important;
}

.msc-account__main form .show-password-input::after {
  content: '' !important;
  display: block !important;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.msc-account__main form .show-password-input.display-password::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-7 0-11-7-11-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 7 11 7a18.5 18.5 0 0 1-2.16 3.19M1 1l22 22'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-7 0-11-7-11-7a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 7 11 7a18.5 18.5 0 0 1-2.16 3.19M1 1l22 22'/%3E%3C/svg%3E") center / contain no-repeat;
}

.msc-account__main form input.input-text,
.msc-account__main form select,
.msc-account__main form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.msc-account__main form input.input-text:focus,
.msc-account__main form select:focus,
.msc-account__main form textarea:focus {
  border-color: #111;
  outline: none;
}

.msc-account__main form button.woocommerce-Button,
.msc-account__main form .button[name="save_account_details"],
.msc-account__main form .button[name="save_address"],
.msc-account__main .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.msc-account__main form button.woocommerce-Button:hover,
.msc-account__main form .button[name="save_account_details"]:hover,
.msc-account__main form .button[name="save_address"]:hover,
.msc-account__main .woocommerce-button:hover {
  opacity: 0.85;
  color: #fff;
}

.msc-account__main .woocommerce-pagination {
  margin-top: 20px;
}

.msc-account__main .woocommerce-MyAccount-orders .woocommerce-button,
.msc-account__main .woocommerce-orders-table__cell-order-actions .button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

.auth__notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.auth__notice--error {
  border-color: rgba(160, 30, 30, 0.25);
  background: #fff7f7;
  color: #7a1c1c;
}

.auth__notice--success {
  border-color: rgba(0, 0, 0, 0.12);
  background: #f4f4f4;
  color: #111;
}

/* ==========================================================================
   THANK YOU / ORDER RECEIVED
   ========================================================================== */
.page-section--thankyou {
  padding-top: clamp(28px, 4vw, 48px) !important;
  padding-bottom: clamp(48px, 8vw, 96px) !important;
  background: #f5f5f5;
}

.msc-thankyou {
  max-width: 860px;
  margin: 0 auto;
}

.msc-thankyou__card {
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.msc-thankyou__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.msc-thankyou .woocommerce-thankyou-order-received {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111;
}

.msc-thankyou__overview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.msc-thankyou__overview li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fafafa;
}

.msc-thankyou__overview li span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 700;
}

.msc-thankyou__overview li strong {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  word-break: break-word;
}

.msc-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.msc-thankyou__details {
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.msc-thankyou__details .woocommerce-order-details,
.msc-thankyou__details .woocommerce-customer-details {
  margin: 0;
}

.msc-thankyou__details .woocommerce-customer-details {
  margin-top: 28px;
}

.msc-thankyou .woocommerce-bacs-bank-details,
.msc-thankyou .wc-bacs-bank-details-account-name {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .msc-account {
    grid-template-columns: 1fr;
  }

  .msc-account__sidebar {
    position: static;
  }

  .msc-account__nav ul,
  .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .msc-account__nav a,
  .woocommerce-MyAccount-navigation a {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .msc-account-dash__grid,
  .msc-account__main .u-columns,
  .msc-addresses__grid,
  .msc-thankyou__overview,
  .msc-account-info__grid {
    grid-template-columns: 1fr;
  }

  .msc-account__main {
    padding: 18px;
  }

  .msc-thankyou__actions {
    flex-direction: column;
  }

  .msc-thankyou__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

