.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #2196f3;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

#split-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 400px;
  width: 90%;
}
#split-selector-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  min-width: 250px;
}
.modal-input-group {
  margin-bottom: 20px;
}
.modal-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.pencil-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #666;
}
.pencil-btn:hover {
  color: #333;
}
.modal-btn {
  width: 100%;
  padding: 12px;
  background: #000;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.modal-btn:hover {
  background: #333;
}
.selector-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}
.selector-nav-btn {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.selector-nav-btn:hover {
  background: #e0e0e0;
}
.selector-done-btn {
  padding: 8px 16px;
  background: #000;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.selector-done-btn:hover {
  background: #333;
}
.element-counter {
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
  font-weight: bold;
}
.highlighted-element {
  outline: 3px solid red !important;
  outline-offset: 2px;
}

#floting-button {
  position: absolute;
  top: 28%;
  right: 12%;
  z-index: 10;
  width: 10rem;
  background: red;
  padding: 0.7rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  font-family: Helvetica, Arial, sans-serif;
  border: none !important;
  color: wheat;
  transition: all 0.3s ease;
}

/* Hover State */
#floting-button:hover {
  background: darkred;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#floting-button:active {
  transform: translateY(0);
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  #floting-button {
    top: 25%;
    right: 8%;
    width: 9rem;
    font-size: 0.75rem;
    padding: 0.6rem;
  }
}

/* Mobile Landscape (481px - 767px) */
@media (max-width: 767px) {
  #floting-button {
    top: 20%;
    right: 5%;
    width: 8rem;
    font-size: 0.7rem;
    padding: 0.5rem;
  }
}

/* Mobile Portrait (up to 480px) */
@media (max-width: 480px) {
  #floting-button {
    top: 15%;
    right: 3%;
    width: 7rem;
    font-size: 0.65rem;
    padding: 0.5rem;
    border-radius: 3px;
  }
}

/* Small Mobile (up to 360px) */
@media (max-width: 360px) {
  #floting-button {
    top: 12%;
    right: 2%;
    width: 6rem;
    font-size: 0.6rem;
    padding: 0.4rem;
  }
}

#split-button-cart span,
#split-button-single span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 0.125rem;
}

#split-button-cart:hover,
#split-button-single:hover {
  opacity: 0.9;
}

#split-button-cart::after,
#split-button-single::after {
  content: "Powered by Split2ship App";
  position: absolute;
  bottom: -1rem;
  right: 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: #ff4444;
}

.button-loader {
  width: 24px;
  height: 24px;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cg_hidden {
  display: none;
}

/* Checkout Card Styles */
.cg_subtotal_box {
  padding: 1.2rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

.cg_subtotal_box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.cg_subtotal_box ul li {
  display: flex;
  justify-content: space-between;
}
