/*
 * iCake Unified UI 0.1.3
 * Strictly scoped by .icake-unified-ui-active and the Production host-locked plugin.
 */

body.icake-unified-ui-active {
  --icake-charcoal: #3c342f;
  --icake-charcoal-soft: #5c514a;
  --icake-gold: #c19e56;
  --icake-paper: #fffdfa;
  --icake-paper-deep: #f7f1ec;
  --icake-blush: #f5e9e7;
  --icake-sage: #e7ebe2;
  --icake-line: #e9e1da;
  --icake-muted: #786e67;
  --icake-white: #ffffff;
  --icake-shadow: 0 18px 46px rgba(60, 52, 47, 0.08);
  --icake-radius: 16px;
  --icake-radius-small: 10px;
  background: var(--icake-paper);
  color: var(--icake-charcoal);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.icake-unified-ui-active #wrapper,
body.icake-unified-ui-active #main,
body.icake-unified-ui-active .page-wrapper {
  background: var(--icake-paper);
}

body.icake-unified-ui-active h1,
body.icake-unified-ui-active .page-title-inner h1,
body.icake-unified-ui-active .product-title {
  color: var(--icake-charcoal);
  font-family: "Noto Serif KR", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

body.icake-unified-ui-active h2,
body.icake-unified-ui-active h3,
body.icake-unified-ui-active h4 {
  color: var(--icake-charcoal);
}

body.icake-unified-ui-active a {
  color: var(--icake-charcoal-soft);
}

/* Header: retain all existing store/account/cart functionality and apply the home design language. */
body.icake-unified-ui-active #header,
body.icake-unified-ui-active #header .header-wrapper,
body.icake-unified-ui-active #masthead,
body.icake-unified-ui-active .header-bottom {
  background: var(--icake-paper) !important;
  box-shadow: none;
}

body.icake-unified-ui-active #top-bar {
  min-height: 30px;
  background: var(--icake-sage) !important;
  color: var(--icake-charcoal) !important;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.icake-unified-ui-active .header-main {
  border-bottom: 1px solid var(--icake-line);
}

body.icake-unified-ui-active .header-bottom {
  border-bottom: 1px solid var(--icake-line);
}

body.icake-unified-ui-active #wide-nav .nav > li > a,
body.icake-unified-ui-active .header-nav > li > a {
  color: var(--icake-charcoal) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

body.icake-unified-ui-active #wide-nav .nav > li.active > a,
body.icake-unified-ui-active #wide-nav .nav > li > a:hover {
  color: var(--icake-gold) !important;
}

body.icake-unified-ui-active .header-button .button,
body.icake-unified-ui-active .header-button a.button {
  min-height: 46px;
  border: 1px solid var(--icake-charcoal) !important;
  border-radius: 0 !important;
  background: var(--icake-charcoal) !important;
  color: var(--icake-white) !important;
}

/* Page title and archive header. */
body.icake-unified-ui-active .page-title,
body.icake-unified-ui-active .shop-page-title,
body.icake-unified-ui-active .category-page-title {
  display: block !important;
  min-height: 0;
  padding: 46px 20px 34px;
  background: var(--icake-paper-deep) !important;
  color: var(--icake-charcoal) !important;
}

body.icake-unified-ui-active .page-title-bg,
body.icake-unified-ui-active .page-title-overlay {
  display: none !important;
}

body.icake-unified-ui-active .page-title-inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

body.icake-unified-ui-active .page-title-inner h1,
body.icake-unified-ui-active h1.shop-page-title {
  display: block !important;
  width: auto;
  margin: 0;
  color: var(--icake-charcoal) !important;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  text-transform: none;
}

body.icake-unified-ui-active .woocommerce-breadcrumb,
body.icake-unified-ui-active .breadcrumbs {
  margin-top: 12px;
  color: var(--icake-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The Shop landing block already carries its own Order Online heading. Keep the
 * WooCommerce title bar as a compact results toolbar instead of duplicating it. */
body.icake-unified-ui-active.woocommerce-shop .shop-page-title.category-page-title {
  padding: 18px 20px;
}

body.icake-unified-ui-active.woocommerce-shop h1.shop-page-title,
body.icake-unified-ui-active.woocommerce-shop .shop-page-title .woocommerce-breadcrumb {
  display: none !important;
}

body.icake-unified-ui-active.woocommerce-shop .shop-page-title .page-title-inner {
  justify-content: flex-end;
}

@media (min-width: 850px) {
  body.icake-unified-ui-active.woocommerce-shop .shop-page-title .page-title-inner > .flex-col.flex-grow {
    display: none;
  }
}

/* Archive content and descriptions. */
body.icake-unified-ui-active .category-page-row,
body.icake-unified-ui-active .shop-page-title + .row,
body.icake-unified-ui-active .shop-container {
  width: min(1220px, calc(100% - 40px));
  max-width: 1220px;
  margin-right: auto;
  margin-left: auto;
}

body.icake-unified-ui-active .term-description {
  margin: 0 auto 34px;
  padding: 28px clamp(20px, 4vw, 46px);
  border: 1px solid var(--icake-line);
  border-radius: var(--icake-radius);
  background: var(--icake-white);
  box-shadow: var(--icake-shadow);
  color: var(--icake-charcoal-soft);
  font-size: 15px;
  line-height: 1.8;
}

body.icake-unified-ui-active .term-description > :first-child {
  margin-top: 0;
}

body.icake-unified-ui-active .term-description > :last-child {
  margin-bottom: 0;
}

body.icake-unified-ui-active .shop-page-title + .row,
body.icake-unified-ui-active .category-page-row {
  padding-top: 42px;
  padding-bottom: 72px;
}

body.icake-unified-ui-active .woocommerce-result-count {
  color: var(--icake-muted);
  font-size: 12px;
}

body.icake-unified-ui-active .woocommerce-ordering select,
body.icake-unified-ui-active select.orderby {
  min-height: 44px;
  border: 1px solid var(--icake-line);
  border-radius: 999px;
  background-color: var(--icake-white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233c342f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  color: var(--icake-charcoal) !important;
  box-shadow: none;
  padding-right: 42px;
}

/* Product cards. */
body.icake-unified-ui-active .products .product-small > .col-inner,
body.icake-unified-ui-active .products .product-small .product-small.box {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--icake-line);
  border-radius: var(--icake-radius);
  background: var(--icake-white);
  box-shadow: 0 10px 30px rgba(60, 52, 47, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.icake-unified-ui-active .products .product-small > .col-inner:hover,
body.icake-unified-ui-active .products .product-small .product-small.box:hover {
  transform: translateY(-3px);
  box-shadow: var(--icake-shadow);
}

body.icake-unified-ui-active .products .box-image,
body.icake-unified-ui-active .products .box-image img {
  border-radius: var(--icake-radius) var(--icake-radius) 0 0;
}

body.icake-unified-ui-active .products .box-text {
  padding: 18px 18px 20px;
}

body.icake-unified-ui-active .products .name,
body.icake-unified-ui-active .products .name a {
  color: var(--icake-charcoal);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
}

body.icake-unified-ui-active .products .price,
body.icake-unified-ui-active .products .price .amount {
  color: var(--icake-charcoal);
  font-weight: 700;
}

body.icake-unified-ui-active .products .button,
body.icake-unified-ui-active .products a.button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--icake-charcoal) !important;
  border-radius: var(--icake-radius-small) !important;
  background: var(--icake-charcoal) !important;
  color: var(--icake-white) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

body.icake-unified-ui-active .badge-inner,
body.icake-unified-ui-active .onsale {
  background: var(--icake-blush) !important;
  color: var(--icake-charcoal) !important;
}

/* Category tag cloud and filter-like links. */
body.icake-unified-ui-active .term-description a,
body.icake-unified-ui-active .tagcloud a,
body.icake-unified-ui-active .product-categories a {
  border-color: var(--icake-line);
}

/* Custom cake policy: the original source remains in the DOM and becomes a native details disclosure. */
body.icake-unified-ui-active .icake-ui-policy-details {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--icake-line);
  border-radius: var(--icake-radius-small);
  background: var(--icake-paper-deep);
}

body.icake-unified-ui-active .icake-ui-policy-summary {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 54px 20px 22px;
  color: var(--icake-charcoal);
  cursor: pointer;
  list-style: none;
}

body.icake-unified-ui-active .icake-ui-policy-summary::-webkit-details-marker {
  display: none;
}

body.icake-unified-ui-active .icake-ui-policy-summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  content: "+";
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-50%);
}

body.icake-unified-ui-active .icake-ui-policy-details[open] .icake-ui-policy-summary::after {
  content: "−";
}

body.icake-unified-ui-active .icake-ui-policy-summary span {
  font-family: "Noto Serif KR", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

body.icake-unified-ui-active .icake-ui-policy-summary small {
  color: var(--icake-muted);
  font-size: 12px;
}

body.icake-unified-ui-active .icake-ui-policy-content {
  padding: 4px 22px 24px;
  border-top: 1px solid var(--icake-line);
}

/* Single product layout and purchase panel. */
body.icake-unified-ui-active.single-product .product-main {
  padding-top: 42px;
  padding-bottom: 72px;
}

body.icake-unified-ui-active.single-product .product-main > .row {
  width: min(1220px, calc(100% - 40px));
  max-width: 1220px;
}

body.icake-unified-ui-active.single-product .product-gallery .col-inner,
body.icake-unified-ui-active.single-product .product-gallery .product-images,
body.icake-unified-ui-active.single-product .woocommerce-product-gallery {
  overflow: hidden;
  border-radius: var(--icake-radius);
  background: var(--icake-white);
}

body.icake-unified-ui-active.single-product .product-title {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.1;
}

body.icake-unified-ui-active.single-product .product-price-container,
body.icake-unified-ui-active.single-product .product-price-container .amount {
  color: var(--icake-charcoal);
  font-size: 20px;
  font-weight: 700;
}

body.icake-unified-ui-active .icake-ui-purchase-panel,
body.icake-unified-ui-active.single-product .add-to-cart-container {
  margin: 26px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--icake-line);
  border-radius: var(--icake-radius);
  background: var(--icake-white);
  box-shadow: var(--icake-shadow);
}

body.icake-unified-ui-active .icake-ui-purchase-heading {
  margin-bottom: 18px;
  color: var(--icake-charcoal);
  font-family: "Noto Serif KR", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
}

body.icake-unified-ui-active.single-product .variations label,
body.icake-unified-ui-active.single-product .tm-epo-field-label {
  color: var(--icake-charcoal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.icake-unified-ui-active input[type="text"],
body.icake-unified-ui-active input[type="email"],
body.icake-unified-ui-active input[type="tel"],
body.icake-unified-ui-active input[type="number"],
body.icake-unified-ui-active input[type="password"],
body.icake-unified-ui-active select,
body.icake-unified-ui-active textarea {
  min-height: 46px;
  border: 1px solid var(--icake-line);
  border-radius: var(--icake-radius-small);
  background: var(--icake-white);
  color: var(--icake-charcoal);
  box-shadow: none;
}

body.icake-unified-ui-active input:focus,
body.icake-unified-ui-active select:focus,
body.icake-unified-ui-active textarea:focus {
  border-color: var(--icake-gold);
  box-shadow: 0 0 0 3px rgba(193, 158, 86, 0.16);
}

body.icake-unified-ui-active.single-product .single_add_to_cart_button,
body.icake-unified-ui-active.single-product button.single_add_to_cart_button {
  min-height: 50px;
  border: 1px solid var(--icake-charcoal) !important;
  border-radius: var(--icake-radius-small) !important;
  background: var(--icake-charcoal) !important;
  color: var(--icake-white) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.icake-unified-ui-active .icake-ui-long-product-copy {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--icake-line);
  color: var(--icake-charcoal-soft);
  line-height: 1.75;
}

body.icake-unified-ui-active .icake-ui-long-product-copy h2,
body.icake-unified-ui-active .icake-ui-long-product-copy h3 {
  margin-top: 30px;
  font-family: "Noto Serif KR", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
}

/* Cart and checkout: compact transactional styling, without decorative hero blocks. */
body.icake-unified-ui-active.woocommerce-cart .woocommerce,
body.icake-unified-ui-active.woocommerce-checkout .woocommerce {
  width: min(1220px, calc(100% - 40px));
  max-width: 1220px;
  margin: 0 auto;
}

body.icake-unified-ui-active .checkout-page-title,
body.icake-unified-ui-active .woocommerce-cart-form,
body.icake-unified-ui-active .cart-sidebar,
body.icake-unified-ui-active .woocommerce-checkout .col-inner,
body.icake-unified-ui-active .woocommerce-checkout #order_review,
body.icake-unified-ui-active .woocommerce-checkout .woocommerce-billing-fields,
body.icake-unified-ui-active .woocommerce-checkout .woocommerce-shipping-fields,
body.icake-unified-ui-active .woocommerce-checkout .woocommerce-additional-fields {
  border-color: var(--icake-line);
}

body.icake-unified-ui-active .woocommerce-cart-form,
body.icake-unified-ui-active .cart-sidebar,
body.icake-unified-ui-active .woocommerce-checkout #order_review,
body.icake-unified-ui-active .woocommerce-checkout .woocommerce-billing-fields,
body.icake-unified-ui-active .woocommerce-checkout .woocommerce-shipping-fields,
body.icake-unified-ui-active .woocommerce-checkout .woocommerce-additional-fields {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--icake-line);
  border-radius: var(--icake-radius);
  background: var(--icake-white);
  box-shadow: 0 10px 30px rgba(60, 52, 47, 0.05);
}

body.icake-unified-ui-active .checkout-page-title {
  color: var(--icake-charcoal);
  font-family: "Noto Serif KR", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

body.icake-unified-ui-active .checkout-page-title .current .checkout-step,
body.icake-unified-ui-active .checkout-page-title .current {
  color: var(--icake-charcoal);
}

body.icake-unified-ui-active .button,
body.icake-unified-ui-active button,
body.icake-unified-ui-active input[type="submit"] {
  border-radius: var(--icake-radius-small);
}

body.icake-unified-ui-active .checkout-button,
body.icake-unified-ui-active #place_order,
body.icake-unified-ui-active button[name="update_cart"],
body.icake-unified-ui-active .wc-proceed-to-checkout .button {
  min-height: 50px;
  border: 1px solid var(--icake-charcoal) !important;
  border-radius: var(--icake-radius-small) !important;
  background: var(--icake-charcoal) !important;
  color: var(--icake-white) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.icake-unified-ui-active .continue-shopping .button,
body.icake-unified-ui-active a.continue-shopping {
  border-color: var(--icake-charcoal) !important;
  color: var(--icake-charcoal) !important;
}

body.icake-unified-ui-active table th,
body.icake-unified-ui-active table td {
  border-color: var(--icake-line);
}

/* Footer refinement without changing links or store content. */
body.icake-unified-ui-active .footer-wrapper,
body.icake-unified-ui-active #footer {
  background: var(--icake-paper-deep);
  color: var(--icake-charcoal-soft);
}

body.icake-unified-ui-active .footer-wrapper h3,
body.icake-unified-ui-active .footer-wrapper h4,
body.icake-unified-ui-active .footer-wrapper strong {
  color: var(--icake-charcoal);
}

@media (max-width: 849px) {
  body.icake-unified-ui-active #top-bar {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  body.icake-unified-ui-active .page-title,
  body.icake-unified-ui-active .shop-page-title,
  body.icake-unified-ui-active .category-page-title {
    padding: 32px 16px 26px;
  }

  body.icake-unified-ui-active .page-title-inner,
  body.icake-unified-ui-active .category-page-row,
  body.icake-unified-ui-active .shop-container,
  body.icake-unified-ui-active.single-product .product-main > .row,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce,
  body.icake-unified-ui-active.woocommerce-checkout .woocommerce {
    width: min(100% - 28px, 1220px);
  }

  body.icake-unified-ui-active.woocommerce-shop .shop-page-title.category-page-title {
    padding: 20px 16px;
  }

  body.icake-unified-ui-active.woocommerce-shop .shop-page-title .page-title-inner {
    justify-content: center;
    gap: 14px;
  }

  body.icake-unified-ui-active .page-title-inner h1,
  body.icake-unified-ui-active h1.shop-page-title,
  body.icake-unified-ui-active.single-product .product-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  body.icake-unified-ui-active .term-description {
    margin-bottom: 26px;
    padding: 22px 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  body.icake-unified-ui-active .shop-page-title + .row,
  body.icake-unified-ui-active .category-page-row {
    padding-top: 28px;
    padding-bottom: 52px;
  }

  body.icake-unified-ui-active .products .box-text {
    padding: 14px 12px 16px;
  }

  body.icake-unified-ui-active .products .name,
  body.icake-unified-ui-active .products .name a {
    font-size: 13px;
  }

  body.icake-unified-ui-active .products .button,
  body.icake-unified-ui-active .products a.button {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  body.icake-unified-ui-active.single-product .product-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  body.icake-unified-ui-active .icake-ui-purchase-panel,
  body.icake-unified-ui-active.single-product .add-to-cart-container {
    padding: 20px 16px;
  }

  body.icake-unified-ui-active .woocommerce-cart-form,
  body.icake-unified-ui-active .cart-sidebar,
  body.icake-unified-ui-active .woocommerce-checkout #order_review,
  body.icake-unified-ui-active .woocommerce-checkout .woocommerce-billing-fields,
  body.icake-unified-ui-active .woocommerce-checkout .woocommerce-shipping-fields,
  body.icake-unified-ui-active .woocommerce-checkout .woocommerce-additional-fields {
    padding: 20px 16px;
  }

  /*
   * 0.1.3 mobile repair 1: keep the Cart table and controls inside the card.
   * Product data is unchanged; this only reallocates visual column widths.
   */
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form {
    padding: 14px 10px;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form .cart-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form th.product-name,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form td.product-name {
    width: 54% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form th.product-quantity,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form td.product-quantity {
    width: 46% !important;
    min-width: 0 !important;
    padding-right: 0;
    padding-left: 6px;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form .quantity {
    justify-content: flex-end;
    max-width: 100%;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form .actions .continue-shopping,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
    float: none !important;
    width: 100%;
    margin: 0;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form .actions button[name="update_cart"] {
    margin-top: 10px;
  }

  /*
   * 0.1.3 mobile repair 2: render Checkout steps as separate compact pills.
   * This prevents the two live labels from touching at narrow widths.
   */
  body.icake-unified-ui-active .checkout-page-title {
    padding: 24px 12px 20px;
  }

  body.icake-unified-ui-active .checkout-page-title .page-title-inner {
    width: 100%;
  }

  body.icake-unified-ui-active .checkout-page-title .checkout-breadcrumbs {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
  }

  body.icake-unified-ui-active .checkout-page-title .checkout-breadcrumbs > a {
    flex: 0 0 auto;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--icake-line);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.icake-unified-ui-active .checkout-page-title .checkout-breadcrumbs > .divider {
    display: none !important;
  }

  body.icake-unified-ui-active.woocommerce-checkout .woocommerce-additional-fields .fl-label {
    max-width: calc(100% - 20px);
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /*
   * A hidden third-party checkout control is wider than the narrow viewport.
   * Contain horizontal paint without changing any field, validator or payment DOM.
   */
  body.icake-unified-ui-active.woocommerce-checkout #main {
    overflow-x: hidden;
    overflow-x: clip;
  }

  /*
   * 0.1.3 mobile repair 3: compact both fixed helpers into corner buttons.
   * The controls remain available and their opened panels stay inside the viewport.
   */
  body.icake-unified-ui-active .wa__btn_popup .wa__btn_popup_txt {
    display: none !important;
  }

  body.icake-unified-ui-active .wa__btn_popup {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
  }

  body.icake-unified-ui-active .wa__btn_popup .wa__btn_popup_icon {
    width: 48px !important;
    height: 48px !important;
  }

  body.icake-unified-ui-active .wa__popup_chat_box {
    right: 12px !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
  }

  body.icake-unified-ui-active .gt_switcher_wrapper {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
  }

  body.icake-unified-ui-active .gt_switcher_wrapper .gt_switcher-popup {
    display: grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 999px;
    background: var(--icake-white);
    box-shadow: 0 8px 24px rgba(60, 52, 47, 0.16);
  }

  body.icake-unified-ui-active .gt_switcher_wrapper .gt_switcher-popup > span {
    display: none !important;
  }

  body.icake-unified-ui-active .gt_switcher_wrapper .gt_switcher-popup > img {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
  }

  body.icake-unified-ui-active input,
  body.icake-unified-ui-active select,
  body.icake-unified-ui-active textarea,
  body.icake-unified-ui-active .tm-extra-product-options,
  body.icake-unified-ui-active .woocommerce-error,
  body.icake-unified-ui-active .woocommerce-notices-wrapper {
    scroll-margin-bottom: 88px;
  }

  body.icake-unified-ui-active #footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
    display: block;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
    display: none !important;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    align-items: start;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--icake-line);
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td {
    border: 0;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove {
    position: absolute;
    top: 12px;
    left: 0;
    display: block !important;
    width: 28px !important;
    padding: 0 4px 0 0;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal {
    display: none !important;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name {
    display: block !important;
    grid-column: 1;
    width: auto !important;
    min-width: 0;
    padding: 2px 4px 2px 34px;
    text-align: left !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name::before {
    display: none !important;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity {
    display: grid !important;
    grid-column: 2;
    justify-items: end;
    gap: 5px;
    width: auto !important;
    min-width: 0 !important;
    padding: 0;
    text-align: right !important;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity::before {
    display: block !important;
    float: none;
    content: attr(data-title);
    color: var(--icake-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .quantity {
    width: 74px;
    max-width: 74px;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr:not(.cart_item),
  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr:not(.cart_item) > td.actions {
    display: block !important;
    width: 100% !important;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr:not(.cart_item) > td.actions {
    padding: 14px 0 0;
  }
}

@media (max-width: 360px) {
  body.icake-unified-ui-active.woocommerce-cart .woocommerce {
    width: calc(100% - 16px);
  }

  body.icake-unified-ui-active.woocommerce-cart .cart-container > .woocommerce > .woocommerce.row {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  body.icake-unified-ui-active.woocommerce-cart .woocommerce-cart-form {
    padding: 12px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.icake-unified-ui-active *,
  body.icake-unified-ui-active *::before,
  body.icake-unified-ui-active *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
