/* TRT Norge static cart — styles for the client-side cart/checkout UI.
   Palette + button shape follow the site's own theme (#00293E, pill buttons). */

/* mini-cart drawer content */
.widget_shopping_cart_content .woocommerce-mini-cart {
  list-style: none; margin: 0; padding: 0;
}
.widget_shopping_cart_content .mini_cart_item {
  display: grid; grid-template-columns: 24px 64px 1fr; gap: 10px;
  align-items: center; padding: 12px 0; border-bottom: 1px solid #eee;
}
.widget_shopping_cart_content .mini_cart_item > a:not(.remove) {
  display: contents; color: inherit; text-decoration: none; font-weight: 600;
}
.widget_shopping_cart_content .mini_cart_item img {
  width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #f6f6f6;
}
.widget_shopping_cart_content .mini_cart_item .remove {
  color: #b00; font-size: 20px; text-decoration: none; line-height: 1;
}
.widget_shopping_cart_content .mini_cart_item .quantity {
  grid-column: 3; font-size: .9em; color: #555;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total {
  display: flex; justify-content: space-between; padding: 14px 0; font-size: 1.05em;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  display: grid; gap: 10px; margin: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
  display: block; text-align: center; padding: 13px 18px; border-radius: 99px;
  background: #eef2f5; color: #00293E; font-weight: 700; text-decoration: none;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button.checkout {
  background: #00293E; color: #fff;
}
.widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
  padding: 24px 0; text-align: center; color: #666;
}

/* generic pieces */
.trt-btn {
  display: inline-block; background: #00293E; color: #fff !important; font-weight: 800;
  padding: 15px 34px; border-radius: 99px; border: 0; cursor: pointer;
  text-decoration: none !important; font-size: 16px; line-height: 1.2;
}
.trt-btn:hover { opacity: .92; }
.trt-empty, .trt-confirm { text-align: center; padding: 60px 20px; }
.trt-empty h2, .trt-confirm h2 { margin-bottom: 14px; }
.trt-confirm p { margin-bottom: 26px; }

/* cart page */
.trt-cart { max-width: 1100px; margin: 0 auto; padding: 10px 20px 60px; }
.trt-cart-table { width: 100%; border-collapse: collapse; }
.trt-cart-table th {
  text-align: left; padding: 12px 10px; border-bottom: 2px solid #00293E;
  font-size: .85em; text-transform: uppercase; letter-spacing: .04em;
}
.trt-cart-table td { padding: 16px 10px; border-bottom: 1px solid #e8e8e8; vertical-align: middle; }
.trt-col-img img { width: 76px; height: 76px; object-fit: contain; border-radius: 10px; background: #f6f6f6; }
.trt-col-name a { font-weight: 700; color: #00293E; text-decoration: none; }
.trt-attrs { font-size: .85em; color: #667; margin-top: 3px; }
.trt-qty { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #d8dde2; border-radius: 99px; padding: 6px 12px; }
.trt-qty button {
  border: 0; background: none; font-size: 18px; font-weight: 800; cursor: pointer; color: #00293E;
  width: 24px; height: 24px; line-height: 1;
}
.trt-remove { color: #b00; font-size: 22px; text-decoration: none; }
.trt-cart-totals { margin-left: auto; max-width: 380px; padding-top: 26px; }
.trt-total-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; }
.trt-total-row.trt-grand { font-size: 1.15em; font-weight: 800; border-bottom: 0; }
.trt-checkout-btn { display: block; text-align: center; margin-top: 18px; }

/* checkout page */
.trt-checkout { max-width: 1100px; margin: 0 auto; padding: 10px 20px 60px; }
.trt-checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) {
  .trt-checkout-grid { grid-template-columns: 1fr; }
  .trt-cart-table .trt-col-img { display: none; }
}
#trt-checkout-form h3, .trt-order-summary h3 { margin-bottom: 16px; }
#trt-checkout-form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .92em; }
#trt-checkout-form input, #trt-checkout-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid #d8dde2; border-radius: 10px; font: inherit; background: #fff;
}
.trt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trt-pay-note { font-size: .88em; color: #556; background: #f4f7f9; border-radius: 10px; padding: 12px 14px; margin: 6px 0 18px; }
.trt-place-order { width: 100%; }
.trt-checkout-error { margin-top: 14px; color: #b00; font-weight: 600; }
.trt-order-summary { background: #f7f9fa; border-radius: 16px; padding: 26px; }
.trt-sum-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid #e6ebee; font-size: .95em; }
.trt-sum-line.trt-grand { font-weight: 800; font-size: 1.1em; border-bottom: 0; padding-top: 14px; }

/* toast */
#trt-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #00293E; color: #fff; padding: 13px 26px; border-radius: 99px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 99999;
}
#trt-toast.trt-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* make sure the side-cart drawer overlays properly when we open it */
.elementor-menu-cart--shown .elementor-menu-cart__container { z-index: 9999; }
body.trt-cart-open { overflow: hidden; }

/* shop page product grid (statically generated cards) */
ul.products.elementor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 20px 0 60px; padding: 0; }
@media (max-width: 992px) { ul.products.elementor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { ul.products.elementor-grid { grid-template-columns: 1fr; } }
.trt-shop-card a { text-decoration: none; color: #00293E; display: block; }
.trt-shop-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f6f6; border-radius: 14px; margin-bottom: 12px; }
.trt-shop-card .woocommerce-loop-product__title { font-size: 1.02em; font-weight: 700; margin: 0 0 6px; }
.trt-shop-card .price { color: #556; font-size: .95em; }

/* injected variant selector (L-Carnitine page) */
.trt-variations { margin-bottom: 16px; }
.trt-variations label { display: block; font-weight: 700; margin-bottom: 6px; }
.trt-variations select {
  width: 100%; padding: 12px 14px; border: 1px solid #d8dde2; border-radius: 10px;
  font: inherit; background: #fff; color: #00293E;
}
