/* Storefront finish. The first declared layer takes priority for important rules. */
@layer ma_store_silver {
  :root {
    --ma-silver-ink: #142b43;
    --ma-silver-edge: #929292;
    --ma-silver-grain: repeating-linear-gradient(0deg, rgba(255,255,255,.15) 0px, rgba(255,255,255,.15) 1px, rgba(55,55,55,.035) 1px, transparent 2px, transparent 4px);
    --ma-silver-face: var(--ma-silver-grain), linear-gradient(112deg, #c8c8c8, #f0f0f0 22%, #dfdfdf 46%, #c7c7c7 63%, #f1f1f1 84%, #cbcbcb);
    --ma-silver-control: var(--ma-silver-grain), linear-gradient(172deg, #fbfbfb 0%, #dddddd 40%, #c4c4c4 53%, #f0f0f0 100%);
    --ma-silver-paper: linear-gradient(115deg, #f8f8f8, #ebebeb 55%, #f5f5f5);
  }
  body:not(.wp-admin,.login) {
    --ma-sig-metal: var(--ma-silver-face) !important;
    --ma-sig-pearl: var(--ma-silver-paper) !important;
    --ma-sig-action: var(--ma-silver-control) !important;
    --ma-purchase-face: var(--ma-silver-control) !important;
    background-color: #eeeeee !important;
  }
  :is(#ma-home header, #ma-store-nav-shell, nav.ma-approved-navigation,
    .ma-site-desktop-header, .ma-site-mobile-header, .ma-checkout-live .ma-header,
    .ma-page-hero,.ma-catalog-hero,.ma-product-card,.ma-product-info,.map-card,
    #ma-coa-nov12 .report-card, .elementor-5140 .gallery-item,
    #ma-home.signature #rail .product, #ma-home.signature #rail .meta,
    .woocommerce-cart-form, .cart-collaterals .cart_totals, .woocommerce-MyAccount-navigation,
    .ma-native-checkout .e-checkout__order_review, .ma-checkout-live .ma-aside) {
    background: var(--ma-silver-face) !important;
    color: var(--ma-silver-ink) !important;
    border-color: var(--ma-silver-edge) !important;
  }
  :is(.ma-catalog-hero,.ma-page-hero) :is(.elementor-heading-title, a, span, p, h1),
  :is(.ma-product-card,.map-card) :is(.price,.amount,.product_title,a),
  #ma-coa-nov12 .report-card :is(strong,small) {
    color: var(--ma-silver-ink) !important;
    text-shadow: none !important;
  }
  :is(.ma-catalog-body,.ma-page-body,#ma-home.signature #collection,.ma-checkout-live,
    .woocommerce-MyAccount-content,.elementor-location-footer > .e-con, .ma-checkout-live .ma-footer) {
    background: var(--ma-silver-paper) !important;
    color: var(--ma-silver-ink) !important;
  }
  :is(.elementor-location-footer,.ma-checkout-live .ma-footer) :is(a,p,span,.elementor-heading-title) {
    color: var(--ma-silver-ink) !important;
  }
  :is(nav.ma-approved-navigation > a:not(.brand), .ma-shop-menu > summary,
    .ma-approved-navigation button, .ma-shop-links button,
    .ma-product-primary .button, .ma-product-details a, .ma-product-actions a,
    .woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
    .woocommerce-page .single_add_to_cart_button, .woocommerce-page a.checkout-button,
    .woocommerce-account .woocommerce-MyAccount-navigation-link > a,
    .ma-checkout-live #place_order, .ma-delivery-buttons button, .wp-block-search__button,
    .wc-block-components-button:not(.is-link), .elementor-button:not(.elementor-size-xs),
    #ma-home .hero-shop, #ma-home .ma-discover-arrivals, #ma-home .store-action,
    #ma-home .sample-report, #ma-home .story-link, .ma-records a,
    #ma-member-gateway .ma-google-continue, .ma-shop-links a:hover,
    #arrivals.shell :is(.cta,.play,.arrow,.choices button)) {
    background: var(--ma-silver-control) !important;
    color: var(--ma-silver-ink) !important;
    -webkit-text-fill-color: var(--ma-silver-ink) !important;
    border-color: var(--ma-silver-edge) !important;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #999999 !important;
    text-shadow: none !important;
  }
  :is(.ma-shop-links, .ma-approved-navigation .sub-menu, #arrivals.shell .bottom, #arrivals.shell .info) {
    background: var(--ma-silver-paper) !important;
    color: var(--ma-silver-ink) !important;
  }
  :is(#ma-member-panel, #arrivals.shell .top) {
    background: var(--ma-silver-face) !important;
    color: var(--ma-silver-ink) !important;
  }
  #ma-member-panel :is(h1,h2,h3,p,label), .ma-shop-links a,
  #arrivals.shell :is(.info h2, .bottom .catalog, .top h1) { color: var(--ma-silver-ink) !important; }
  :is(.ma-approved-navigation a,.ma-approved-navigation summary,.woocommerce .button,
    .ma-product-actions a, .woocommerce-MyAccount-navigation-link a,#arrivals.shell button,
    #ma-member-gateway button):focus-visible {
    outline: 3px solid #1b5289 !important;
    outline-offset: 2px !important;
  }
  :is(.ma-approved-navigation [aria-current="page"],.woocommerce-MyAccount-navigation-link.is-active a,
    .ma-delivery-buttons button[aria-pressed="true"], #arrivals.shell .choices button[aria-pressed="true"]) {
    box-shadow: inset 0 -3px 0 #213f60 !important;
  }
}

/* The water vials are photographed on square studio backdrops. */
@layer ma_store_silver {
  :is(.post-5932, .post-3730, .post-2847) .ma-product-image {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  :is(.post-5932, .post-3730, .post-2847) .ma-product-image :is(a, .elementor-widget-container, img) {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  :is(.post-5932, .post-3730, .post-2847) .ma-product-image img {
    aspect-ratio: 1 !important;
    object-fit: contain !important;
  }

  body:is(.postid-5932, .postid-3730, .postid-2847) .elementor-434 :is(.elementor-element-3907de1, .woocommerce-product-gallery) {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #0b1730 !important;
    border-radius: 14px !important;
  }

  body:is(.postid-5932, .postid-3730, .postid-2847) .woocommerce-product-gallery__image img:not(.zoomImg) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
  }
}

/* Use the same neutral metal on controls that have their own template styles. */
@layer ma_store_silver {
  :is(#ma-catalog-search button, .ma-product-coa-links a, #ma-home .molecule-action,
      #ma-home .arrivals-catalog, .ma-product-details .elementor-button,
      .ma-approved-navigation .ma-shop-links a:focus-visible,
      .ma-approved-navigation .ma-shop-links a[aria-current="page"]) {
    background: var(--ma-silver-control) !important;
    border-color: var(--ma-silver-edge) !important;
    color: var(--ma-silver-ink) !important;
    -webkit-text-fill-color: var(--ma-silver-ink) !important;
    text-shadow: none !important;
  }
  .elementor-434 .elementor-element-117c514,
  .elementor-434 .ship-row,
  #ma-home.signature #arrivals .ma-arrival-buy {
    background: var(--ma-silver-paper) !important;
    border-color: var(--ma-silver-edge) !important;
  }
  .ma-approved-navigation .ma-shop-links a {
    border-color: #cfcfcf !important;
  }
  #ma-catalog-search label { color: var(--ma-silver-ink) !important; }
}
