#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;
}

.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;
}

.item-quantity-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  width: auto;
  padding-right: 20px; /* Add space for the remove button */
}

.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 {
  padding: 0 15px 15px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

@media (max-width: 768px) {
  .cart-footer {
    padding: 0;
  }
}

.cart-total {
  margin-bottom: 15px;
  margin-top: 5px;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  justify-content: space-between;

  @media (max-width: 768px) {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* Cart savings styling */
.cart-savings {
  margin: 6px 0 10px;
  color: #333;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
}

.cart-savings .savings-value {
  font-weight: 700;
  color: #1e5631; /* subtle green to indicate savings */
}

.cart-savings .tax-label {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
  white-space: nowrap;
}

.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 {
  padding: 10px 15px;
  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;
  width: 100%;
  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;
}

@media (max-width: 768px) {
  .upsell-product {
    width: calc(50% - 5px);
  }
}

@media (max-width: 480px) {
  .upsell-product {
    width: 130px;
  }
}

/* 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;
}

/* 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;
}

/* Global upsells styles for checkout page */
.smort-global-upsells {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.global-upsells-header {
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
}

.global-upsells-header h3 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.global-upsells-header p {
  margin: 0;
  color: #7f8c8d;
  font-size: 13px;
  font-weight: 500;
}

.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;
  white-space: nowrap;
}

.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: #e74c3c;
  font-size: 18px;
  font-weight: 700;
}

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

.discount-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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;
}

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

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

  .global-upsells-header h3 {
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  .global-upsells-header p {
    font-size: 11px;
  }

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

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

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

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

  /* Tydligare scroll-indikator på mobil */
  .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;
  }
}

/* Progress Bar Styles */
.smort-progress-bar-container {
  background: #000;
  padding: 20px 15px;
  margin: 0;
  position: relative;
  padding-top: 4rem;
}

.smort-progress-bar-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.smort-progress-bar-track {
  height: 8px;
  background: #333;
  border-radius: 10px;
  position: relative;
  overflow: visible;
  margin: 40px 0 60px 0;
}

.smort-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0000 0%, #ff6600 50%, #ffcc00 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Moving marker that follows the progress end */
.smort-progress-bar-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff4500;
  box-shadow: 0 0 6px rgba(255, 69, 0, 0.8);
  pointer-events: none;
  z-index: 2;
}

.smort-progress-current-amount {
  position: static;
  margin-top: 10px;
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  z-index: 1;
}

.smort-progress-milestones {
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.smort-milestone {
  position: absolute;
  top: 0; /* align to vertical center of track via marker translateY */
  transform: translateX(-50%);
  text-align: center;
  transition: all 0.3s ease;
}

.smort-milestone-marker {
  width: 16px;
  height: 16px;
  background: #333;
  border: 3px solid #666;
  border-radius: 50%;
  margin: 0 auto; /* center horizontally */
  position: relative;
  transform: translateY(-50%); /* center vertically on the track */
  transition: all 0.3s ease;
  top: 16px;
}

.smort-milestone.reached .smort-milestone-marker {
  background: #ff4500;
  border-color: #ff4500;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.6);
}

.smort-milestone.active .smort-milestone-marker {
  background: #ff6347;
  border-color: #ff6347;
}

/* Keep edge milestones inside the container */
.smort-progress-milestones .smort-milestone:last-child {
  transform: translateX(-100%);
  text-align: right;
}

.smort-progress-milestones .smort-milestone:first-child {
  transform: translateX(0%);
  text-align: left;
}

/* Spacing for labels and amounts around the dot */
.smort-milestone-label {
  margin-bottom: 6px;
  max-width: 140px;
  white-space: normal;
  width: 100px;
}

.smort-milestone-amount {
  margin-top: 6px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.8);
  }
}

.smort-milestone-label {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff9500;
  font-size: 14px;
  font-weight: black;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.5px;
  max-width: 140px;
  white-space: normal;
  text-align: center;
  background: rgb(41, 40, 40);
  padding: 5px 10px;
  border-radius: 10px;
}

.smort-milestone-amount {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
}

/* Keep edge milestones inside the container */
.smort-progress-milestones .smort-milestone:last-child .smort-milestone-label {
  left: -35px;
  transform: translateX(0);
}

.smort-progress-milestones .smort-milestone:last-child .smort-milestone-amount {
  left: 0;
  transform: translateX(0);
  text-align: right;
}

.smort-progress-milestones .smort-milestone:first-child .smort-milestone-label {
  left: -40px;
  transform: translateX(0);
  text-align: center;
}

.smort-progress-milestones
  .smort-milestone:first-child
  .smort-milestone-amount {
  left: 0;
  transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .smort-progress-bar-container {
    padding: px 8px;
    padding-top: 3rem;
  }

  .smort-progress-bar-wrapper {
    max-width: 400px;
  }

  .smort-progress-bar-track {
    margin: 35px 0 55px 0;
    height: 6px;
  }

  .smort-milestone-marker {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .smort-milestone-label {
    font-size: 10px;
    max-width: 80px;
    bottom: 20px;
  }

  .smort-milestone-amount {
    font-size: 12px;
    top: 20px;
  }

  .smort-progress-current-amount {
    font-size: 9px;
    padding: 2px 6px;
  }
}

@media (max-width: 480px) {
  .smort-progress-bar-container {
    padding: 12px 8px;
    padding-top: 3rem;
  }

  .smort-progress-bar-track {
    margin: 30px 0 45px 0;
    height: 5px;
  }

  .smort-milestone-marker {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .smort-milestone-label {
    max-width: 60px;
    bottom: 18px;
    letter-spacing: 0.2px;
  }

  .smort-milestone-amount {
    top: 18px;
  }

  .smort-progress-current-amount {
    font-size: 10px;
    padding: 1px 5px;
  }

  /* Keep edge milestones inside the container */
  .smort-progress-milestones
    .smort-milestone:last-child
    .smort-milestone-label {
    left: -67px;
    transform: translateX(0);
    top: -43px;
  }

  .smort-progress-milestones
    .smort-milestone:last-child
    .smort-milestone-amount {
    left: -46px;
  }
}
