/* Native InSales forms keep their markup, validation and visibility rules. */

:is(.me-account-page, .me-checkout-page, body[data-theme-template="cart"]) #main-content {
  background: #fcf9f4 !important;
  color: #49372c;
  font: 400 15px/1.6 Arial, sans-serif;
}
:is(.me-account-page, .me-checkout-page) #main-content > .layout {
  padding-top: 32px;
  padding-bottom: 64px;
  background: transparent !important;
}
:is(.me-account-page, .me-checkout-page) #main-content > .layout > .layout__content {
  max-width: 1200px;
  background: transparent !important;
}
:is(.me-account-page, .me-checkout-page) .checkout-v2-wrapper {
  color: #49372c;
  font: 400 15px/1.6 Arial, sans-serif;
}
:is(.me-account-page, .me-checkout-page) .co-title {
  color: #49372c;
  font-family: var(--me-heading-font, Georgia, serif);
  font-weight: 400;
  letter-spacing: -.02em;
}
:is(.me-account-page, .me-checkout-page) .co-title--h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}
:is(.me-account-page, .me-checkout-page) :is(.co-title--h2, .co-login-title) {
  font-size: 23px;
  line-height: 1.3;
}
:is(.me-account-page, .me-checkout-page) .co-section--checkout_header {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
}
:is(.me-account-page, .me-checkout-page) :is(.co-button, .co-modal-button) {
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid #49372c;
  border-radius: var(--me-button-radius, 16px) !important;
  background: #49372c;
  box-shadow: none;
  color: #fff8ed;
  font: 400 14px/1.5 Arial, sans-serif;
  text-shadow: none;
  transition: background-color .2s ease, border-color .2s ease;
}
:is(.me-account-page, .me-checkout-page) :is(.co-button, .co-modal-button):disabled {
  opacity: .55;
  cursor: not-allowed;
}
:is(.me-account-page, .me-checkout-page) :is(.co-input-label, .co-input-title) {
  margin-bottom: 8px;
  color: #6f5843;
  font-size: 13px;
  font-weight: 400;
}
:is(.me-account-page, .me-checkout-page) .co-input-field:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
:is(.me-account-page, .me-checkout-page) select.co-input-select {
  box-sizing: border-box;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d8c5ac;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: none;
  color: #49372c;
  font: 400 16px/1.45 Arial, sans-serif;
}
:is(.me-account-page, .me-checkout-page) textarea.co-input-field { min-height: 110px; resize: vertical; }
:is(.me-account-page, .me-checkout-page) .co-input-field:focus {
  border-color: #9b7753;
  outline: 2px solid #d8c09e;
  outline-offset: 2px;
}
:is(.me-account-page, .me-checkout-page) .co-input--error .co-input-field { border-color: #b34f35; }
:is(.me-account-page, .me-checkout-page) :is(input[type="checkbox"], input[type="radio"]) { accent-color: #8c6848; }
:is(.me-account-page, .me-checkout-page) .co-input-notice { font-size: 12px; line-height: 1.6; }
:is(.me-account-page, .me-checkout-page) :is(.co-input-description, .co-checkout-text, .co-login-text) {
  color: #826d59;
  font-size: 13px;
  line-height: 1.7;
}
:is(.me-account-page, .me-checkout-page) a:not(.co-button) { color: #795637; text-underline-offset: 3px; }
:is(.me-account-page, .me-checkout-page) .co-modal-wrapper { border-radius: 24px; background: #fffdf9; }
:is(.me-account-page, .me-checkout-page) .co-notice--danger { color: #9a3f2d; }
:is(.me-account-page, .me-checkout-page) .co-notice--flash {
  padding: 14px 18px;
  border: 1px solid #e9c7b2;
  border-radius: 14px;
  background: #fff4e9;
  font-size: 13px;
}
:is(.me-account-page, .me-checkout-page) .co-notice--success { color: #3f6550; }

/* Login, customer navigation, order history and profile forms. */
.me-account-page .co-login-form_placeholder {
  max-width: 520px;
  margin-inline: auto;
  padding: 32px;
  border: 1px solid #e5d5c1;
  border-radius: 24px;
  background: #fffdf9;
}
.me-account-page .co-login { flex: 1 1 100%; justify-content: center; }
.me-account-page:has(.co-login) .co-section--checkout_header { text-align: center; }
.me-account-page .co-login-form_placeholder .co-button { width: 100%; }
.me-account-page .co-sidebar--menu {
  padding: 14px;
  border: 1px solid #e5d5c1;
  border-radius: 22px;
  background: #f8eddd !important;
}
.me-account-page .co-menu { margin: 0; }
.me-account-page .co-menu-item + .co-menu-item { margin-top: 6px; }
.me-account-page .co-menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #604934;
  font-size: 14px;
  text-decoration: none;
}
.me-account-page :is(.co-menu-link--active, .co-menu-item--active .co-menu-link) { background: #ead6b9; color: #49372c; }
.me-account-page .co-table-wrapper { max-width: 100%; overflow-x: auto; border: 1px solid #e5d5c1; border-radius: 20px; background: #fffdf9; }
.me-account-page .co-table { color: #604c3b; font-size: 14px; }
.me-account-page .co-table-cell { padding: 16px; border-color: #eee2d2; }
.me-account-page .co-table-cell--head { background: #f6ead8; color: #6b513b; font-size: 12px; font-weight: 400; }
.me-account-page .co-section--content { min-width: 0; }

/* Checkout summary and the existing shipping/payment fields. */
.me-checkout-page .co-checkout-order_form {
  padding: 28px;
  border: 1px solid #e5d5c1;
  border-radius: 24px;
  background: #fffdf9;
}
.me-checkout-page .co-basket {
  padding: 24px;
  border: 1px solid #e1caaa;
  border-radius: 24px;
  background: #f8eddd;
}
.me-checkout-page .co-basket_item { padding-block: 14px; border-color: #e7d6bf; }
.me-checkout-page .co-basket_item-image { overflow: hidden; border-radius: 14px; background: #fffaf3; }
.me-checkout-page .co-basket_item-description { color: #604934; font-size: 14px; line-height: 1.5; }
.me-checkout-page :is(.co-basket_total, .co-basket_subtotal) { border-color: #ddc6a7; }
.me-checkout-page .co-basket_total-title { font-size: 16px; }
.me-checkout-page .co-basket_total-price { color: #49372c; font: 600 23px/1.4 Arial, sans-serif; }
.me-checkout-page .co-delivery_method-list > .co-checkout-block { margin-bottom: 24px; }
.me-checkout-page :is(.delivery_variants, .payment_variants) .co-toggable_field {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #e4d3bc;
  border-radius: 16px;
  background: #fffdf9;
}
.me-checkout-page :is(.delivery_variants, .payment_variants) .co-toggable_field:has(input:checked) { border-color: #b38c60; background: #fbefd9; }
.me-checkout-page .co-sidebar-toggler { border: 1px solid #e1caaa; border-radius: 16px; background: #f8eddd; color: #49372c; }
.me-checkout-page .co-sidebar { box-shadow: none; }

@media (min-width: 1024px) {
  .me-checkout-page .co-section--checkout_order { width: calc(64% - 28px); }
  .me-checkout-page .co-sidebar { left: 64%; width: 36%; }
}
@media (max-width: 1023px) {
  .me-checkout-page .co-section--checkout_order { width: 100%; }
  .me-checkout-page .co-sidebar { position: relative; left: auto; bottom: auto; width: 100%; }
}

/* Cart item rows and a clearly separated order total. */
body[data-theme-template="cart"] .widget-type_system_widget_v4_cart_2 { padding-block: 28px 56px; background: transparent !important; }
body[data-theme-template="cart"] .widget-type_system_widget_v4_cart_2 > .layout__content { max-width: 1280px; background: transparent !important; }
body[data-theme-template="cart"] .widget-type_system_widget_v4_cart_2 > .layout__content > .heading {
  margin: 0 0 28px;
  color: #49372c;
  font: 400 34px/1.2 var(--me-heading-font, Georgia, serif);
}
.widget-type_system_widget_v4_cart_2 .cart-item {
  --item-image-size: 136px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e7d9c7;
  border-radius: 22px;
  background: #fffdf9;
}
.widget-type_system_widget_v4_cart_2 .cart-item .item-title { color: #49372c; font: 400 21px/1.3 var(--me-heading-font, Georgia, serif); }
.widget-type_system_widget_v4_cart_2 .cart-item .item-image { overflow: hidden; border-radius: 16px; }
.widget-type_system_widget_v4_cart_2 .cart-item .item-delete button { color: #92785f; }
.widget-type_system_widget_v4_cart_2 .cart__area-controls-sticky { border: 1px solid #e0c7a6; border-radius: 22px; background: #f8eddd; }
.widget-type_system_widget_v4_cart_2 :is(.cart__area-count, .cart__area-coupon) { background: transparent; }
.widget-type_system_widget_v4_cart_2 .cart__area-controls .button { min-height: 48px; background: #49372c; color: #fff8ed; font: 400 14px/1.5 Arial, sans-serif; }
.widget-type_system_widget_v4_cart_2 :is(.form-control, .counter-input) { border: 1px solid #d8c5ac; border-radius: 12px; background: #fffdf9; color: #49372c; }
.widget-type_system_widget_v4_cart_2 .counter-button { background: #f4e6d0; color: #604934; }
.widget-type_system_widget_v4_cart_2 .empty-title { color: #49372c; font: 400 27px/1.3 var(--me-heading-font, Georgia, serif); }
.widget-type_system_widget_v4_cart_2 .empty-info { max-width: 480px; margin: 16px auto 0; color: #806a55; font-size: 15px; line-height: 1.8; }
.widget-type_system_widget_v4_cart_2 .js-cart-empty:not(.hidden) { padding: 40px 24px; border: 1px solid #e7d9c7; border-radius: 24px; background: #fffaf3; }

@media (hover: hover) {
  :is(.me-account-page, .me-checkout-page) :is(.co-button, .co-modal-button):hover,
  .widget-type_system_widget_v4_cart_2 .cart__area-controls .button:hover { border-color: #70563e; background: #70563e; color: #fff8ed; }
  .me-account-page .co-menu-link:hover { background: #edddc6; }
}
@media (max-width: 767px) {
  :is(.me-account-page, .me-checkout-page) #main-content > .layout { padding-top: 24px; padding-bottom: 40px; }
  :is(.me-account-page, .me-checkout-page) .co-title--h1,
  body[data-theme-template="cart"] .widget-type_system_widget_v4_cart_2 > .layout__content > .heading { font-size: 28px; }
  :is(.me-account-page, .me-checkout-page) .co-section--checkout_header { margin-bottom: 24px; }
  .me-checkout-page .co-checkout-order_form, .me-account-page .co-login-form_placeholder { padding: 22px 18px; border-radius: 20px; }
  .me-checkout-page .co-basket { padding: 20px 16px; border-radius: 20px; }
  .widget-type_system_widget_v4_cart_2 .cart__area-controls { margin-inline: 0; }
  .widget-type_system_widget_v4_cart_2 .cart-item { --item-image-size: 80px; padding: 16px; gap: 10px 14px; }
  .widget-type_system_widget_v4_cart_2 .cart-item .item-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.me-account-page, .me-checkout-page) :is(.co-button, .co-modal-button) { transition: none; }
}
