/* Storefront action labels follow CHIC title capitalization. */
:root :is(body, #MainContent, #MobileProduct) :is(button, summary, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"], a[class*="button"], a[class*="__btn"], a[class*="__cta"], a[class$="-btn"], a[class$="-cta"], a.button, a.btn, a.anchor-btn, a.button-1, a.button-2, a.link-button, .chic-button, .chic-text-link, .chic-card__link, .chic-ps__text-link, .chic-cart-line__remove, .chic-cart__header > a, .chic-links__shopping > a, .chic-links__socials > a, .chic-links__contact > a, .chic-mobile-details-link, .chic-links-hub__primary, .chic-links-hub__category, .chic-links-hub__contact-link, .chic-links-hub__social, .ce-button, .ce-text-link, .ce-explore, .final-cta__button, .advertorial-image-with-text__button, .article-sidebar-benefits__sidebar-cta-btn, .collection-view-all-link, .concern-benefits_button, .image-text-marquee__button, .load-more_button, .image-with-text-button, .features-section__btn) {
  text-transform: capitalize !important;
}
:root #MainContent :is(.btn, .anchor-btn):is(.btn--soldout, .is-soldout, :disabled, [disabled], [aria-disabled="true"]) {
  text-transform: capitalize !important;
}
:root :is(body, #MainContent, #MobileProduct) :is(button, a[role="button"], a[class*="button"], a[class*="__btn"], a[class*="__cta"], a[class$="-btn"], a[class$="-cta"], a.button, a.btn, a.anchor-btn, .chic-button, .chic-text-link, .ce-button, .ce-text-link, .ce-explore) :is(span, strong, em, b, i) {
  text-transform: inherit !important;
}
:root :is(body, #MainContent, #MobileProduct) :is(.chic-builder__base, [data-builder-base-card], .chic-builder__slot, [data-builder-slot], [data-builder-move], .chic-icon-button, .chic-round-button, .chic-localization__submit, .chic-mobile-quantity-controls button, button[role="radio"], button[role="option"], button[role="combobox"], .shopify-payment-button__button--branded, [data-chic-preserve-case]),
:root :is(body, #MainContent, #MobileProduct) :is(.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp, .material-icons-two-tone, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp),
:root :is(body, #MainContent, #MobileProduct) :is(button, a[role="button"], a[class*="button"], a[class*="__btn"], a[class*="__cta"], a[class$="-btn"], a[class$="-cta"], a.button, a.btn, a.anchor-btn, .chic-button, .chic-cart-line__remove) :is(.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp, .material-icons-two-tone, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, .chic-visually-hidden, .visually-hidden, svg, code, kbd, [data-chic-cart-count], [data-chic-set-option], [data-chic-preserve-case]) {
  text-transform: none !important;
}

:root body :is(.chic-departments__action,.chic-journal-preview__all-link,.chic-journal-preview__read-link,.chic-journal__read-link,.chic-journal-navigation__back,.chic-editorial__text-link,.chic-editorial__product-link,.chic-cart-complements__link,.cp2-piece small,.mobile-edit-row>a,.hero-cropped__melissa-cta){display:inline-flex!important;align-items:center;justify-content:center!important;gap:0;min-height:44px;max-width:100%;padding:10px 16px!important;border:1px solid #947643!important;border-radius:4px!important;background:#4d3e33!important;color:#fffaf1!important;font-size:14px;line-height:1.4;text-align:center;text-decoration:none!important;letter-spacing:.02em;box-sizing:border-box}
:root body .chic-departments__action>span{font:inherit!important;letter-spacing:inherit!important;transform:none!important;white-space:normal}
:root body .chic-departments__caption{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:12px;padding:9px 12px;border:1px solid currentColor;border-radius:4px;font-size:13px;line-height:1.5;text-align:center}
:root body :is(.chic-departments-card__product,.chic-department-hero__product):hover .chic-departments__caption{text-decoration:none;background:#ffffff66}
:root body :is(.chic-departments__action,.chic-journal-preview__all-link,.chic-journal-preview__read-link,.chic-journal__read-link,.chic-journal-navigation__back,.chic-editorial__text-link,.mobile-edit-row>a,.hero-cropped__melissa-cta):hover{background:#654f3d!important}
:root body :is(.chic-departments__action,.chic-journal-preview__all-link,.chic-journal-preview__read-link,.chic-journal__read-link,.chic-journal-navigation__back,.chic-editorial__text-link,.mobile-edit-row>a,.hero-cropped__melissa-cta):focus-visible{outline:2px solid #947643;outline-offset:4px}
:root body #MobileProduct .mobile-price-row{height:auto;min-height:44px;flex-wrap:wrap}
:root body #MobileProduct .mobile-price-row>button{min-height:44px;min-width:80px;padding:10px 14px;border:1px solid #947643;border-radius:4px;font-size:12px;text-decoration:none;background:#f9f4e9;color:#4d3e33}
:root body #MainContent .icon_cart-btns:has(>svg[viewBox="0 0 25 15"]),:root body .hero-cropped__melissa-cta>svg,:root body .chic-collection-directory__arrow{display:none!important}
:root body#ChicMobileSite.chic-mobile-site #MainContent .chic-journal-preview__all-link{max-width:150px;font-size:13px;flex-shrink:0}
@media(max-width:749px){:root body .chic-departments__action{font-size:13px}:root body .hero-cropped__melissa-cta{min-height:48px;font-size:14px}}

/* Raised surfaces for storefront actions. The theme still supplies each button's colors and shape. */
html body :where(a[href], button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"]):is(
  .button, .btn, .anchor-btn, .button-1, .button-2, .link-button, .chic-button,
  .submit_add_cart, .submit-button, .bundle-checkout-btn, .password-button,
  .shopify-challenge__button, .shopify-payment-button__button--unbranded,
  .richtext_btn, .viewmore_btn, .image-with-text-button, .video-with-text-button,
  .carousel-button, .collection-cta-btn, .collection-view-all-link, .load-more_button,
  .features-section__btn, .final-cta__button, .advertorial-image-with-text__button,
  .article-sidebar-benefits__sidebar-cta-btn, .concern-benefits_button, .image-text-marquee__button,
  .newsletter-btn, .cart-slide__checkout-btn, .cart-slide__btn, .cart-related_btn,
  .cart-drawer_btn-submit, .cart-drawer_btn-cart, .mcpg-facets_btn-action, .ctl-atc-btn,
  .chic-cart__checkout, .chic-cart-complements__link,
  .mobile-main-cta, .mobile-bundle-buy, .hero-cropped__melissa-cta, .mobile-edit-row > a,
  [data-bundle-submit], .mobile-price-row > [data-details-open],
  [data-main-collection-grid-add-to-cart], [data-featured-products-add-to-cart], [data-atelier-grid-add],
  .chic-departments__action, .chic-chicago-gallery__button, .chic-chicago-store__button,
  .chic-home-editorial__primary, .chic-locations__button, .chic-opening__button,
  .chic-links-review__action, .chic-links-profile__shop-link,
  .chic-google-reviews__button, .chic-editorial__button, .chic-editorial__text-link, .chic-editorial__product-link,
  .chic-journal__button, .chic-journal-preview__all-link, .chic-journal-preview__read-link,
  .chic-journal-preview__button, .chic-journal__read-link, .chic-journal-navigation__back, .chic-share__button,
  .chic-links-hub__primary, .chic-links-hub__category, .chic-links-hub__contact-link, .chic-links-hub__social,
  chic-charm-atelier :is(.primary-action, .secondary-action, .add-charm-button, [data-role="catalog-more"], [data-role="cart-link"]),
  .customer button[type="submit"], input[type="submit"]
):where(:not(
  .ce-button, .skip-to-content-link, .visually-hidden, .chic-visually-hidden,
  .quantity_button, .cart-qty-btn, .btn__button, .arrow, [aria-pressed],
  [role="tab"], [role="radio"], [role="option"], [role="combobox"],
  :disabled, [disabled], [aria-disabled="true"], .disabled, .loading, .btn--soldout, .is-soldout,
  .shopify-payment-button__button--branded
)) {
  --chic-raised-edge: #30241c;
  --chic-raised-depth: 4px;
  --chic-raised-shadow: 0 6px 9px #30241c29;
  box-shadow: inset 0 1px 0 #ffffff50, inset 0 11px 13px -13px #ffffff80,
    0 var(--chic-raised-depth) 0 var(--chic-raised-edge), var(--chic-raised-shadow) !important;

  &:where(.button--secondary, .button--tertiary, .btn--secondary, .anchor-btn--secondary,
    .image-with-text-button--secondary, .video-with-text-button--secondary, .chic-journal__button--outline,
    .secondary-action, .chic-links-hub__category, .chic-links-hub__contact-link, .chic-links-hub__social,
    .chic-opening__button--secondary, .chic-links-profile__shop-link,
    .mobile-price-row > [data-details-open]) {
    --chic-raised-edge: #a4886c;
  }

  &:focus-visible {
    outline: 2px solid #866444 !important;
    outline-offset: 4px;
    --chic-raised-shadow: 0 0 0 3px #fffcf6;
  }

  &:active {
    --chic-raised-depth: 1px;
  }

  @media (prefers-reduced-motion: no-preference) {
    transition: box-shadow 100ms ease-out, translate 100ms ease-out, background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
    &:active { translate: 0 3px; }
  }

  @media (prefers-reduced-motion: reduce) {
    transition-duration: 0s;
  }
}
