/* ======================================================================
   RIH DIL — GLOBAL FOUNDATION (LOCKED)
   Single source of truth for:
   - Tokens
   - Global container system
   - Astra width enforcement
   - Shared sections
   - Shared premium panels
   - Global button system
   - Shared icon / close button system
   - WooCommerce polish / safety fixes
   - My Account dashboard UI
   ====================================================================== */

:root{
  /* DRY container + spacing */
  --rihdil-container: 1440px;
  --rihdil-padding-desktop: 24px;
  --rihdil-padding-mobile: 18px;

  /* Brand accent system */
  --rih-gold: #2563EB;
  --rih-gold-light: #60A5FA;
  --rih-gold-dark: #1D4ED8;

  /* Neutral foundation */
  --rih-black: #0F172A;
  --rih-matte: #EAF2FF;
  --rih-white: #FFFFFF;
  --rih-bg: #F7FAFF;
  --rih-surface: #FFFFFF;
  --rih-surface-soft: #F5F8FF;
  --rih-surface-alt: #EEF4FF;

  /* Premium gradient (blue system) */
  --rih-gold-gradient: linear-gradient(135deg, #60A5FA 0%, #2563EB 50%, #1D4ED8 100%);

  /* Borders */
  --rih-border-gold: 1px solid rgba(37,99,235,0.16);
  --rih-border-gold-strong: 1px solid rgba(37,99,235,0.26);
  --rih-border-soft: 1px solid rgba(37,99,235,0.10);

  /* Text */
  --rih-text: #0F172A;
  --rih-muted: #64748B;

  /* Shadows */
  --rih-shadow-sm: 0 8px 22px rgba(15,23,42,0.05);
  --rih-shadow-md: 0 18px 40px rgba(15,23,42,0.08);
  --rih-shadow-lg: 0 26px 54px rgba(15,23,42,0.12);
}

/* =========================================================
   ONE TRUE CONTAINER
   ========================================================= */

.rihdil-container{
  max-width: var(--rihdil-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--rihdil-padding-desktop);
  padding-right: var(--rihdil-padding-desktop);
}

/* Standard page shell: required for normal front-end pages */
.rih-page-shell{
  width: 100%;
}

.rih-page-shell > .rihdil-container{
  width: 100%;
}

@media (max-width: 768px){
  .rihdil-container{
    padding-left: var(--rihdil-padding-mobile);
    padding-right: var(--rihdil-padding-mobile);
  }
}

/* =========================================================
   ASTRA CONTAINER ENFORCEMENT
   Uses --rihdil-container
   ========================================================= */

.ast-container,
.site-content .ast-container,
.site-header .ast-container,
.site-footer .ast-container,
.ast-primary-header-bar .ast-container,
.ast-builder-layout-element .ast-container{
  max-width: var(--rihdil-container) !important;
  padding-left: var(--rihdil-padding-desktop) !important;
  padding-right: var(--rihdil-padding-desktop) !important;
}

@media (max-width: 768px){
  .ast-container,
  .site-content .ast-container,
  .site-header .ast-container,
  .site-footer .ast-container,
  .ast-primary-header-bar .ast-container,
  .ast-builder-layout-element .ast-container{
    padding-left: var(--rihdil-padding-mobile) !important;
    padding-right: var(--rihdil-padding-mobile) !important;
  }
}

/* =========================================================
   SHARED RIH SECTION SYSTEM
   ========================================================= */

.rih-section{
  background: transparent;
  color: var(--rih-text);
}

/* =========================================================
   SHARED PREMIUM PANEL SYSTEM (LIGHT VERSION)
   ========================================================= */

.rih-panel,
.rih-quote{
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

/* subtle premium sheen (very light, not flashy) */
.rih-panel::before,
.rih-quote::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.0) 45%
  );
}

/* softer variant (used inside sections) */
.rih-panel-soft{
  background: #f5f8ff;
  border: 1px solid rgba(37,99,235,0.10);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
  color: #0f172a;
}
/* =========================================================
   SHARED ICON / CLOSE BUTTONS (LIGHT SYSTEM FIXED)
   ========================================================= */

.rih-icon-btn,
.rih-close-btn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;

  border: 1px solid rgba(37,99,235,0.22);
  background: #ffffff;
  color: #2563EB;

  cursor: pointer;
  line-height: 1;
  font-size: 20px;
  font-weight: 700;

  transition: all .15s ease;
}

/* HOVER — always visible */
.rih-icon-btn:hover,
.rih-close-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
  background: #EEF4FF;
  color: #1D4ED8;
}

/* FOCUS */
.rih-icon-btn:focus-visible,
.rih-close-btn:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55);
  outline-offset: 2px;
}

/* DISABLED */
.rih-icon-btn[disabled],
.rih-close-btn[disabled]{
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   POPUP CLOSE BUTTON (CONSISTENT PRIMARY STYLE)
   ========================================================= */

button.rih-p55-close,
.woocommerce button.rih-p55-close,
.woocommerce-account button.rih-p55-close{
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 40px !important;
  height: 40px !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 12px !important;
  border: none !important;

  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #ffffff !important;

  box-shadow: 0 10px 24px rgba(37,99,235,0.22) !important;
  cursor: pointer !important;

  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  transition: all .15s ease !important;
}

/* HOVER — stays readable */
button.rih-p55-close:hover,
.woocommerce button.rih-p55-close:hover,
.woocommerce-account button.rih-p55-close:hover{
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  color: #ffffff !important;
}

/* FOCUS */
button.rih-p55-close:focus-visible,
.woocommerce button.rih-p55-close:focus-visible,
.woocommerce-account button.rih-p55-close:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   MOBILE FIXES
   ========================================================= */

@media (max-width: 640px){
  button.rih-p55-close,
  .woocommerce button.rih-p55-close,
  .woocommerce-account button.rih-p55-close{
    top: 14px !important;
    right: 14px !important;
  }

  .woocommerce-account img#rihP55ModalImg{
    padding-right: 14px;
    box-sizing: border-box;
  }
}
/* =========================================================
   GLOBAL BUTTON SYSTEM
   Used across entire site

   Base class:
   .rih-btn

   Variants:
   .rih-btn-primary
   .rih-btn-ghost

   IMPORTANT:
   - Do NOT redefine these classes in page CSS
   - Page CSS may only control layout spacing
   ========================================================= */

.rih-btn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 20px;
  border-radius: 12px;

  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;

  border: var(--rih-border-gold);
  background: transparent;
  color: var(--rih-text);

  text-decoration: none;
  cursor: pointer;

  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.rih-btn:hover{
  text-decoration: none;
}

.rih-btn-primary{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
}

.rih-btn-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
}

.rih-btn-ghost{
  color: #2563EB;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.25);
}

.rih-btn-ghost:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.08);
  color: #1D4ED8;
}

/* =========================================================
   WOOCOMMERCE — CHECKOUT / ACCOUNT POLISH
   ========================================================= */

/* Checkout / order headings */
.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title,
.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title,
.woocommerce.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title,
.woocommerce.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title{
  background: #2563EB;
  color: #ffffff;
  padding: 1em;
  margin-bottom: 0;
  font-size: 1rem;
  border-width: 1px 1px 0 1px;
  border-style: solid;
  border-color: var(--ast-border-color);
}

/* My Account / address headings */
.woocommerce .woocommerce-Addresses .woocommerce-Address-title,
.woocommerce .woocommerce-Addresses .woocommerce-column__title,
.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce .woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce .woocommerce-customer-details .woocommerce-Address-title,
.woocommerce .woocommerce-customer-details .woocommerce-column__title,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title,
.woocommerce-account .woocommerce-Addresses .woocommerce-column__title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce-account .woocommerce-customer-details .woocommerce-Address-title,
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title{
  background: #2563EB;
  color: #ffffff;
  padding: .6em 1em;
  margin-bottom: 0;
  border-width: 1px 1px 0 1px;
  border-style: solid;
  border-color: var(--ast-border-color);
}

/* =========================================================
   CHECKOUT — Prevent "Your order" totals overflow
   ========================================================= */

.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order{
  max-width: 100%;
  overflow-x: hidden;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table{
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td{
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* My Account Orders — artwork preview thumbnail polish */
.woocommerce-account .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions img{
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* =========================================================
   RIH DIL — MY ACCOUNT DASHBOARD
   ========================================================= */

.rih-account-dashboard{
  margin-top: 30px;
}

/* Hero panel */
.rih-account-hero{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px;
  background: #0e0e0e;
  border: 1px solid rgba(198,167,94,.25);
  border-radius: 14px;
}

.rih-account-eyebrow{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 6px;
}

.rih-account-hero h2{
  margin-bottom: 6px;
}

.rih-account-hero p{
  opacity: .8;
}

/* Hero stats */
.rih-account-hero__meta{
  display: flex;
  gap: 24px;
}

.rih-account-stat{
  text-align: center;
}

.rih-account-stat__label{
  font-size: 12px;
  opacity: .7;
  display: block;
}

.rih-account-stat__value{
  font-size: 20px;
}

/* Action grid */
.rih-account-actions{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.rih-account-action{
  background: #0e0e0e;
  border: 1px solid rgba(198,167,94,.25);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: .15s ease;
}

.rih-account-action:hover{
  border-color: #2563EB;
  transform: translateY(-2px);
}

.rih-account-action h3{
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 768px){
  .rih-account-hero{
    flex-direction: column;
    align-items: flex-start;
  }

  .rih-account-hero__meta{
    width: 100%;
    justify-content: space-between;
  }

  .rih-account-actions{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GLOBAL LINK SYSTEM
   ========================================================= */

a{
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover{
  color: #1D4ED8;
}

/* prevent weird overrides */
a:focus,
a:active{
  color: #1D4ED8;
}

/* optional subtle underline on hover */
a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   FIX: Prevent DOUBLE CONTAINER PADDING
========================================= */
@media (max-width: 768px){
  .rih-bt{
    padding: 28px var(--rihdil-padding-mobile) 40px;
  }
}

/* =========================================================
   RIH DIL — CART DRAWER (FUNCTIONAL FIRST PASS)
   ========================================================= */

.rih-cart-drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.rih-cart-drawer-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.rih-cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-left: 1px solid rgba(37,99,235,0.14);
  z-index: 9999;
  box-shadow: -24px 0 54px rgba(15,23,42,0.16);
  transform: translateX(100%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rih-cart-drawer::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.62) 0%,
    rgba(255,255,255,0) 42%
  );
}

.rih-cart-drawer.is-open{
  transform: translateX(0);
}

.rih-cart-drawer__head{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(37,99,235,0.10);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rih-cart-drawer__head h3,
.rih-cart-drawer__head h4,
.rih-cart-drawer__head strong{
  margin: 0;
  color: #0F172A;
}

.rih-cart-drawer__head button{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(37,99,235,0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #2563EB;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
  transition: all .15s ease;
}

.rih-cart-drawer__head button:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
  background: #EEF4FF;
  color: #1D4ED8;
}

.rih-cart-drawer__head button:focus-visible{
  outline: 2px solid rgba(96,165,250,0.55);
  outline-offset: 2px;
}

.rih-cart-drawer__body{
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: auto;
  padding: 16px 18px 18px;
}

.rih-cart-drawer__foot{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(37,99,235,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, #f5f8ff 100%);
}

.rih-cart-drawer__foot .button{
  flex: 1;
  text-align: center;
}

body.rih-cart-drawer-open{
  overflow: hidden;
}

/* =========================================================
   RIH DIL — CART DRAWER MINI-CART CONTENT
   ========================================================= */
.rih-cart-drawer .woocommerce-mini-cart,
.rih-cart-drawer .woocommerce-mini-cart.cart_list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.rih-cart-drawer .woocommerce-mini-cart-item{
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(37,99,235,0.10);
}

.rih-cart-drawer .woocommerce-mini-cart-item:first-child{
  padding-top: 4px;
}

.rih-cart-drawer .woocommerce-mini-cart-item:last-child{
  margin-bottom: 0;
}

.rih-cart-drawer .woocommerce-mini-cart-item a.remove{
  position: absolute;
  top: 12px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(37,99,235,0.18);
  color: #64748B !important;
  line-height: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.rih-cart-drawer .woocommerce-mini-cart-item a.remove:hover{
  background: #EEF4FF;
  border-color: rgba(37,99,235,0.36);
  color: #1D4ED8 !important;
}

.rih-cart-drawer .woocommerce-mini-cart-item img{
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.10);
  background: #F8FBFF;
  display: block;
}

.rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove){
  display: block;
  margin: 0 0 6px;
  padding-left: 20px;
  color: #0F172A;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.rih-cart-drawer .woocommerce-mini-cart-item > a:not(.remove):hover{
  color: #1D4ED8;
}

.rih-cart-drawer .woocommerce-mini-cart-item .quantity{
  display: block;
  padding-left: 20px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.5;
}

.rih-cart-drawer .woocommerce-mini-cart-item .quantity strong,
.rih-cart-drawer .woocommerce-mini-cart-item .quantity .amount{
  color: #0F172A;
  font-weight: 700;
}

.rih-cart-drawer .woocommerce-mini-cart__total,
.rih-cart-drawer .woocommerce-mini-cart-total{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(37,99,235,0.12);
  color: #0F172A;
  font-size: 1.05rem;
}

.rih-cart-drawer .woocommerce-mini-cart__total strong,
.rih-cart-drawer .woocommerce-mini-cart-total strong{
  font-weight: 800;
}

.rih-cart-drawer .woocommerce-mini-cart__total .amount,
.rih-cart-drawer .woocommerce-mini-cart-total .amount{
  color: #2563EB;
  font-weight: 800;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons,
.rih-cart-drawer .woocommerce-mini-cart-buttons{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button{
  width: 100% !important;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 16px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button.checkout,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button.checkout,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button.checkout{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(37,99,235,0.20) !important;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout),
.rih-cart-drawer .woocommerce-mini-cart-buttons .button:not(.checkout),
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button:not(.checkout){
  background: #ffffff !important;
  color: #2563EB !important;
  border: 1px solid rgba(37,99,235,0.25) !important;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button:hover,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button:hover,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button:hover{
  transform: translateY(-1px);
  text-decoration: none !important;
}

.rih-cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout):hover,
.rih-cart-drawer .woocommerce-mini-cart-buttons .button:not(.checkout):hover,
.rih-cart-drawer .woocommerce.widget_shopping_cart .buttons .button:not(.checkout):hover{
  background: rgba(37,99,235,0.08) !important;
  border-color: rgba(37,99,235,0.45) !important;
  color: #1D4ED8 !important;
}

.rih-cart-drawer .woocommerce-mini-cart__empty-message,
.rih-cart-drawer .cart_empty{
  margin: 0;
  padding: 18px 16px;
  border: 1px dashed rgba(37,99,235,0.22);
  border-radius: 16px;
  background: rgba(37,99,235,0.05);
  color: #1D4ED8;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px){
  .rih-cart-drawer .woocommerce-mini-cart-item{
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rih-cart-drawer .woocommerce-mini-cart-item img{
    width: 64px;
    height: 64px;
  }

  .rih-cart-drawer .woocommerce-mini-cart__buttons,
  .rih-cart-drawer .woocommerce-mini-cart-buttons{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .rih-cart-drawer{
    width: min(100vw, 100vw);
  }

  .rih-cart-drawer__head,
  .rih-cart-drawer__body,
  .rih-cart-drawer__foot{
    padding-left: 14px;
    padding-right: 14px;
  }

  .rih-cart-drawer__foot{
    flex-direction: column;
  }
}