#smort-cart-container {
  position: relative;
  display: inline-block;
}

.smort-cart-icon {
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  margin-right: 5px;
  margin-left: 5px;
}

.cart-icon {
  font-size: 24px;
  /* Color is now set via inline style */
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  /* Background color is now set via inline style */
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
}

.smort-cart-content {
  position: fixed;
  top: 0;
  right: -110%;
  width: 1000px;
  height: 100vh;
  background-color: #fafafa;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 10000;
}

@media (max-width: 1200px) {
  .smort-cart-content {
    width: 100%;
  }
}

.smort-cart-content.active {
  right: 0;
}

.cart-header {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Background color and text color are now set via inline style */
}

.cart-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.header-logo {
  max-width: 200px;
  max-height: 50px;
  display: flex;
  align-items: center;
}

.header-logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.close-cart {
  cursor: pointer;
  font-size: 24px; /* Reduced from 50px */
  /* Background color is now set via inline style */
  color: white;
  border-radius: 50%;
  width: 30px; /* Reduced from 40px */
  height: 30px; /* Reduced from 40px */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem; /* Reduced from 1rem */
}

.cart-items {
  text-align: center;
}

.cart-items p {
  font-size: 1.7rem;
}

@media (max-width: 1200px) {
  .cart-items p {
    font-size: 18px;
  }
}

.cart-item {
  background: #ffff;
  display: flex;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
  position: relative;
}

.item-image {
  margin-right: 10px;
}

.item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.item-details {
  flex-grow: 1;
  text-align: left;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.item-details h4 {
  margin: 0 0 2px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.3;
}

.item-category {
  color: #999;
  margin: 3px 0 0 0;
  font-size: 11px;
  font-weight: normal;
}

.item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.item-remove a {
  /* Background color is now set via inline style */
  color: white;
  text-decoration: none;
  font-size: 12px; /* Reduced to 12px as requested */
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  cursor: pointer;
  z-index: 11;
  position: relative;
  transition: opacity 0.2s ease;
}

.item-remove a:hover, a.remove.remove-item:hover {
  opacity: 0.8;
}

.item-remove a:active {
  transform: scale(0.95);
}
.woocommerce .item-remove a, .woocommerce a.remove.remove-item {
  background-color: #257b7b!important;
  color: #fff !important;
}
.item-quantity-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  width: auto;
}
.quantity-price-per-item-container {
  font-size:12px;

  .sale-price {
    font-size: 14px;
  }
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.quantity-controls button.plus,
.quantity-controls button.minus {
  font-size: 16px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  background-color: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.quantity-btn:hover {
  background-color: #e0e0e0;
}

.quantity-input {
  width: 40px;
  height: 24px;
  text-align: center;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  appearance: textfield;
  -moz-appearance: textfield; /* Firefox */
  padding: 0;
  margin: 0;
  line-height: 24px;
}

/* Remove arrows from number input */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.item-price {
  font-weight: bold;
  margin: 0;
  text-align: right;
}

.item-price-container {
  min-width: 150px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.price-calculation {
  white-space: nowrap;
  font-size: 12px;
  color: #666;
}

.cart-footer {
  margin-inline:10px;
  margin-bottom:10px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.cart-total {
  margin-bottom: 15px;
  margin-top: 5px;
}

.cart-footer a.checkout-btn {
  padding: 8px 15px;
  text-decoration: none;
  width: auto;
  text-align: center;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  transition: all 0.3s ease;
  display: block;
}

.cart-footer a.checkout-btn:hover {
  opacity: 0.8;
}

.view-cart-btn {
  background-color: #f5f5f5;
  color: #333;
}

.checkout-btn {
  display: inline-block;
  /* Other styles are set via inline style */
}

.smort-cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.smort-cart-backdrop.active {
  display: block;
  opacity: 1;
}

.smort-cart-content {
  z-index: 10000;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

body.cart-open {
  overflow: hidden;
}

/* Upsell products */
.cart-upsells {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.cart-upsells h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.upsell-products {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
}

/* Ta bort scrollbar-styling eftersom vi inte längre har horisontell scrollning */

.upsell-product {
  flex: 0 0 auto;
  background: white;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden; /* Förhindra att innehåll sticker ut */
}

.upsell-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.upsell-product-info {
  display: flex;
  align-items: center;
  flex: 1;
  text-align: left;
  overflow: hidden;
  width: auto; /* Låt innehållet bestämma bredden */
  max-width: 70%; /* Begränsa bredden så att knappen får plats */
}

.upsell-product-details {
  margin-left: 10px;
  flex: 1;
  min-width: 0; /* För att hantera overflow korrekt */
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40%; /* Begränsa bredden så att knappen får plats */
}

.upsell-product-actions {
  display: flex;
  align-items: center;
  margin-left: auto; /* Placera längst till höger */
  flex-shrink: 0; /* Förhindra att knappen krymper */
  width: auto; /* Låt innehållet bestämma bredden */
}

.upsell-product a {
  text-decoration: none;
  color: inherit;
}

.upsell-product-info > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 5px;
}

.upsell-product img {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
}

.upsell-product h5 {
  margin: 0 0 2px 0;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  text-align: left;
}

.upsell-product h5 a {
  display: inline;
  text-align: left;
}

.upsell-product .price {
  display: block;
  margin: 0;
  font-weight: bold;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  text-align: left;
}

.add-to-cart-btn {
  /* Background color will be set via inline style */
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  min-width: 70px;
  font-weight: 500;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  width: auto; /* Låt innehållet bestämma bredden */
}

.add-to-cart-btn:hover {
  opacity: 0.9;
}


/* Highlight animation for newly added items */
@keyframes highlight-pulse {
  0% { background-color: transparent; }
  50% { background-color: rgba(255, 255, 0, 0.2); }
  100% { background-color: transparent; }
}

.highlight-item {
  animation: highlight-pulse 1s ease-in-out 2;
}

/* Theme Styles */

/* Modern Theme */
.theme-modern .cart-item {
  border-radius: 8px;
  margin: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: none;
  transition: transform 0.2s ease;
}

.theme-modern .cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-modern .item-details h4 {
  font-size: 16px;
  font-weight: 500;
}

.theme-modern .item-image img {
  border-radius: 6px;
}

.theme-modern .quantity-controls {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background-color: #f5f5f5;
}

.theme-modern .quantity-btn {
  background-color: transparent;
  border: none;
  /* Color is now set via inline style */
  font-weight: bold;
}

.theme-modern .checkout-btn {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

/* Clean Theme */
.theme-clean .cart-item {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 15px 10px;
}

.theme-clean .item-details h4 {
  font-size: 14px;
  font-weight: normal;
}

.theme-clean .item-image img {
  border: 1px solid #f0f0f0;
}

.theme-clean .quantity-controls {
  border: 1px solid #eee;
}

.theme-clean .quantity-btn {
  background-color: white;
  border: none;
}

.theme-clean .checkout-btn {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: normal;
}

/* Futuristic Theme */
.theme-futuristic .cart-header {
  /* Background is now set via inline style */
  background: linear-gradient(135deg, #ffffff 0%, rgba(0,0,0,0.1) 100%);
}

.theme-futuristic .cart-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.theme-futuristic .item-details h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.theme-futuristic .item-image img {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-futuristic .quantity-controls {
  border: none;
  background: linear-gradient(to right, #f0f0f0, #f9f9f9);
  border-radius: 20px;
  padding: 2px;
}

.theme-futuristic .quantity-btn {
  background-color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Color is now set via inline style */
}

.theme-futuristic .checkout-btn {
  /* Background is now set via inline style */
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.theme-futuristic .checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.woocommerce-message a.button.wc-forward {
  display: none;
}

/* WooCommerce checkout remove buttons - use plugin variable colors */
.woocommerce-checkout .woocommerce-cart-form .product-remove a,
.woocommerce-checkout .shop_table .product-remove a,
.woocommerce-cart .woocommerce-cart-form .product-remove a,
.woocommerce-cart .shop_table .product-remove a,
.woocommerce .cart_item .product-remove a,
.woocommerce-checkout .cart_item .product-remove a {
  background-color: var(--accentColor, #000000) !important;
  color: white !important;
  text-decoration: none !important;
  font-size: 12px !important;
  border-radius: 50% !important;
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 11 !important;
  position: relative !important;
  transition: opacity 0.2s ease !important;
  border: none !important;
  box-shadow: none !important;
}

.woocommerce-checkout .woocommerce-cart-form .product-remove a:hover,
.woocommerce-checkout .shop_table .product-remove a:hover,
.woocommerce-cart .woocommerce-cart-form .product-remove a:hover,
.woocommerce-cart .shop_table .product-remove a:hover,
.woocommerce .cart_item .product-remove a:hover,
.woocommerce-checkout .cart_item .product-remove a:hover {
  opacity: 0.8 !important;
  background-color: var(--accentColor, #000000) !important;
  color: white !important;
}

.woocommerce-checkout .woocommerce-cart-form .product-remove a:active,
.woocommerce-checkout .shop_table .product-remove a:active,
.woocommerce-cart .woocommerce-cart-form .product-remove a:active,
.woocommerce-cart .shop_table .product-remove a:active,
.woocommerce .cart_item .product-remove a:active,
.woocommerce-checkout .cart_item .product-remove a:active {
  transform: scale(0.95) !important;
}

/* Bundle Product Styles */

/* Bundle parent product styling */
.cart-item.bundle-parent {
  border-left: 4px solid #007cba;
  background-color: rgba(0, 124, 186, 0.05);
}

.cart-item.bundle-parent .item-details h4::before {
  content: "📦 ";
  margin-right: 5px;
}

/* Bundle child product styling */
.cart-item.bundle-child {
  margin-left: 20px;
  border-left: 2px solid #ddd;
  background-color: rgba(0, 0, 0, 0.02);
  position: relative;
}

.cart-item.bundle-child::before {
  content: "└─";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 12px;
}

.cart-item.bundle-child .item-details h4 {
  font-size: 14px;
  color: #666;
}

/* Bundle child specific styling for quantity display and price */
.cart-item.bundle-child .quantity-display {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-style: italic;
}

.cart-item.bundle-child .item-price-container {
  opacity: 0.8;
}

/* Bundle product general styling */
.cart-item.bundle-product {
  transition: all 0.3s ease;
}

.cart-item.bundle-product:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Theme-specific bundle styles */

/* Modern Theme Bundle Styles */
.theme-modern .cart-item.bundle-parent {
  border-radius: 8px 8px 0 0;
  border-left: 4px solid #007cba;
}

.theme-modern .cart-item.bundle-child {
  border-radius: 0;
  margin-left: 15px;
  border-left: 3px solid #007cba;
}

.theme-modern .cart-item.bundle-child:last-of-type {
  border-radius: 0 0 8px 8px;
}

/* Clean Theme Bundle Styles */
.theme-clean .cart-item.bundle-parent {
  border-top: 2px solid #007cba;
}

.theme-clean .cart-item.bundle-child {
  border-left: 1px solid #ddd;
  margin-left: 25px;
}

/* Futuristic Theme Bundle Styles */
.theme-futuristic .cart-item.bundle-parent {
  background: linear-gradient(135deg, rgba(0, 124, 186, 0.1) 0%, rgba(0, 124, 186, 0.05) 100%);
  border-left: 4px solid #007cba;
  box-shadow: 0 0 10px rgba(0, 124, 186, 0.2);
}

.theme-futuristic .cart-item.bundle-child {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
  border-left: 2px solid rgba(0, 124, 186, 0.5);
  margin-left: 20px;
}

/* Grouped Product Styles */
.cart-item.grouped-product {
  border-left: 4px solid #8bc34a;
  background-color: rgba(139, 195, 74, 0.05);
}

.cart-item.grouped-product .item-details h4::before {
  content: "📋 ";
  margin-right: 5px;
}

/* Composite Product Styles */
.cart-item.composite-parent {
  border-left: 4px solid #ff9800;
  background-color: rgba(255, 152, 0, 0.05);
}

.cart-item.composite-parent .item-details h4::before {
  content: "🔧 ";
  margin-right: 5px;
}

.cart-item.composite-child {
  margin-left: 20px;
  border-left: 2px solid #ffcc80;
  background-color: rgba(255, 152, 0, 0.02);
  position: relative;
}

.cart-item.composite-child::before {
  content: "└─";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9800;
  font-size: 12px;
}

/* Responsive adjustments for bundle products */
@media (max-width: 768px) {
  .cart-item.bundle-child,
  .cart-item.composite-child {
    margin-left: 10px;
  }

  .cart-item.bundle-child::before,
  .cart-item.composite-child::before {
    left: -10px;
  }
}
.item-price-container .tax-label {
  white-space: nowrap;
}

/* Sale price styling for cart items */
.item-price-container .regular-price-strikethrough {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-right: 6px;
}

.item-price-container .sale-price {
  color: #f18631;
  font-weight: bold;
}

/* Global upsells styles for checkout page */
.global-upsell-products-container {
  position: relative;
  margin-top: 15px;
}

.global-upsell-products {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px 0 12px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accentColor, #007cba) rgba(0, 0, 0, 0.1);
}

.global-upsell-products::-webkit-scrollbar {
  height: 8px;
}

.global-upsell-products::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin: 0 5px;
}

.global-upsell-products::-webkit-scrollbar-thumb {
  background: var(--accentColor, #007cba);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.global-upsell-products::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accentColor, #007cba) 85%, black);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.global-upsell-products::-webkit-scrollbar-thumb:active {
  background: color-mix(in srgb, var(--accentColor, #007cba) 70%, black);
}

/* Desktop: visa 3 produkter */
.global-upsell-product {
  flex: 0 0 calc(33.333% - 7px);
  min-width: 180px;
}

.global-upsell-product {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.global-upsell-product:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.global-upsell-product-image {
  margin-bottom: 6px;
}

.global-upsell-product-image a {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.global-upsell-product-image a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.global-upsell-product-image img {
  max-width: 45px;
  height: auto;
  border-radius: 3px;
  cursor: pointer;
}

.global-upsell-product-details h4 {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-upsell-product-details h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.global-upsell-product-details h4 a:hover {
  color: var(--accentColor, #007cba);
  text-decoration: underline;
}

.global-upsell-product-price {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.global-upsell-product-price .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-right: 8px;
}

.global-upsell-product-price .discounted-price {
  color: var(--accentColor2, #f18631);
  font-size: 18px;
  font-weight: 700;
}

.global-upsell-product-price .price {
  color: #333;
  font-size: 16px;
}

.discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--accentColor2, #e74c3c);
    color: #fff !important;
    border-radius: 3px;
    width: 30px;
    height: 20px;
    line-height: 22px;
    font-size: 11px;
    text-align: center;
    font-style: oblique;
    font-family: 'CustomHeadingFont';
    text-transform: uppercase;
}
.global-upsell-form {
  width: 100%;
  margin: 0;
}

.add-global-upsell-to-cart {
  background: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.add-global-upsell-to-cart:hover {
  background: #555;
  transform: translateY(-1px);
}

.add-global-upsell-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.global-upsell-success {
  animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Global upsell discount styling */
.global-upsell-discount {
  color: #1e5631 !important;
  font-size: 9px !important;
  font-weight: normal !important;
  margin: 1px 0 0 0 !important;
}

/* Scroll-indikator för att visa att det finns fler produkter */
/* .global-upsell-products-container::after {
  content: "→ Scrolla för fler erbjudanden";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.95));
  padding: 5px 10px 5px 20px;
  font-size: 10px;
  color: var(--accentColor, #007cba);
  font-weight: 600;
  pointer-events: none;
  border-radius: 15px;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
} */

/* Dölj scroll-indikator när man scrollat till slutet eller när scroll inte behövs */
.global-upsell-products-container.scrolled-to-end::after,
.global-upsell-products-container.no-scroll-needed::after {
  opacity: 0;
}

/* Column layout styles */
.smort-global-upsells.layout-column {
  max-width: 100%;
}

.global-upsell-products-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.layout-column .global-upsell-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex: none;
  width: 100%;
  min-width: auto;
}

.layout-column .global-upsell-product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.layout-column .global-upsell-product-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin: 0;
}

.layout-column .global-upsell-product-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.layout-column .global-upsell-product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.layout-column .global-upsell-product-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.layout-column .global-upsell-product-price {
  margin: 0;
}

.layout-column .global-upsell-product-actions {
  flex-shrink: 0;
  margin: 0;
}

.layout-column .add-global-upsell-to-cart {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Responsive design för global upsells */
@media (max-width: 768px) {
  /* Mobil: visa 2 produkter för box layout */
  .layout-box .global-upsell-product {
    flex: 0 0 calc(50% - 5px);
    min-width: 140px;
  }

  /* Column layout på mobil */
  .layout-column .global-upsell-product {
    gap: 10px;
    padding: 10px;
  }

  .layout-column .global-upsell-product-image {
    width: 50px;
    height: 50px;
  }

  .layout-column .global-upsell-product-image img {
    width: 50px;
    height: 50px;
  }

  .layout-column .global-upsell-product-details h4 {
    font-size: 12px;
  }

  .layout-column .add-global-upsell-to-cart {
    padding: 6px 12px;
    font-size: 11px;
  }

  .smort-global-upsells {
    margin: 12px 0;
  }

  .layout-box .global-upsell-product {
    padding: 6px;
  }

  .layout-box .global-upsell-product-details h4 {
    font-size: 11px;
  }

  .layout-box .global-upsell-product-image img {
    max-width: 35px;
  }

  .layout-box .add-global-upsell-to-cart {
    padding: 5px 8px;
    font-size: 9px;
  }

  /* Tydligare scroll-indikator på mobil för box layout */
  .layout-box .global-upsell-products-container::after {
    content: "→ Fler";
    font-size: 9px;
    padding: 3px 8px 3px 15px;
  }
}

@media (max-width: 480px) {
  .global-upsells-header h3 {
    font-size: 18px;
  }

  .global-upsell-product {
    min-width: 120px;
  }

  .global-upsell-product-image img {
    max-width: 30px;
  }
}

/* Free Shipping Indicator Styles */
.free-shipping-indicator {
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.free-shipping-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Progress bar animation */
.free-shipping-indicator .progress-bar {
  transition: width 0.5s ease-in-out;
}

/* Mobile responsiveness for free shipping indicator */
@media (max-width: 768px) {
  .free-shipping-indicator {
    padding: 10px;
    font-size: 13px;
  }

  .free-shipping-indicator span {
    font-size: 13px !important;
  }

  .free-shipping-indicator .progress-bar {
    height: 4px !important;
  }
}

/* Theme-specific adjustments */
.theme-futuristic .free-shipping-indicator {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-minimal .free-shipping-indicator {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-modern .free-shipping-indicator {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}