@keyframes stdv-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes stdv-toast-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes stdv-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}
@keyframes stdv-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stdv-cart-share {
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, rgb(239.075, 241.35, 243.625) 100%);
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stdv-cart-share__header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.stdv-cart-share__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  letter-spacing: -0.01em;
}

.stdv-cart-share__description {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

.stdv-cart-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stdv-cart-share__buttons--separate {
  justify-content: flex-start;
}
.stdv-cart-share__buttons--dropdown {
  position: relative;
}

.stdv-cart-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease;
}
.stdv-cart-share__btn:focus {
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}
.stdv-cart-share__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.stdv-cart-share__btn {
  background: #2c3e50;
  color: #ffffff;
}
.stdv-cart-share__btn:hover:not(:disabled) {
  background: #1a252f;
}
.stdv-cart-share__btn:active:not(:disabled) {
  transform: translateY(1px);
}
.stdv-cart-share__btn {
  min-height: 44px;
}
.stdv-cart-share__btn--copy {
  background: #2c3e50;
}
.stdv-cart-share__btn--copy:hover:not(:disabled) {
  background: #1a252f;
}
.stdv-cart-share__btn--pdf {
  background: #495057;
}
.stdv-cart-share__btn--pdf:hover:not(:disabled) {
  background: #343a40;
}
.stdv-cart-share__btn--trigger {
  background: #2c3e50;
}
.stdv-cart-share__btn--trigger .stdv-cart-share__chevron {
  transition: transform 200ms ease;
}
.stdv-cart-share__btn--trigger[aria-expanded=true] .stdv-cart-share__chevron {
  transform: rotate(180deg);
}
.stdv-cart-share__btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.stdv-cart-share__btn--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: stdv-spin 0.6s linear infinite;
}
.stdv-cart-share__btn--success {
  background: #27ae60 !important;
}

.stdv-cart-share__icon {
  flex-shrink: 0;
}

.stdv-cart-share__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  padding: 4px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 200ms ease;
}
.stdv-cart-share__dropdown[aria-hidden=false] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: stdv-dropdown-in 200ms ease ease;
}

.stdv-cart-share__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  color: #495057;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 150ms ease;
}
.stdv-cart-share__dropdown-item:hover {
  background: #f8f9fa;
  color: #2c3e50;
}
.stdv-cart-share__dropdown-item:focus {
  outline: none;
  background: #f8f9fa;
}

.stdv-cart-share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
}

.stdv-cart-share-toast__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  margin-top: 8px;
  background: #343a40;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  animation: stdv-toast-in 200ms ease ease;
  pointer-events: auto;
}
.stdv-cart-share-toast__item--success {
  background: #27ae60;
}
.stdv-cart-share-toast__item--error {
  background: #e74c3c;
}
.stdv-cart-share-toast__item--hiding {
  animation: stdv-toast-out 200ms ease ease forwards;
}

.stdv-cart-share-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.stdv-cart-conflict-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.stdv-cart-conflict-modal.is-open {
  display: flex;
}
.stdv-cart-conflict-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: stdv-fade-in 200ms ease ease;
}
.stdv-cart-conflict-modal__container {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  animation: stdv-modal-in 200ms ease ease;
}
.stdv-cart-conflict-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e9ecef;
}
.stdv-cart-conflict-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
}
.stdv-cart-conflict-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #adb5bd;
  cursor: pointer;
  transition: all 150ms ease;
}
.stdv-cart-conflict-modal__close:hover {
  background: #f8f9fa;
  color: #495057;
}
.stdv-cart-conflict-modal__content {
  padding: 24px;
}
.stdv-cart-conflict-modal__description {
  margin: 0 0 24px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
}
.stdv-cart-conflict-modal__carts {
  display: grid;
  gap: 16px;
}
.stdv-cart-conflict-modal__cart {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}
.stdv-cart-conflict-modal__cart-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stdv-cart-conflict-modal__cart-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #495057;
}
.stdv-cart-conflict-modal__cart-products {
  font-size: 12px;
  color: #adb5bd;
}
.stdv-cart-conflict-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}
.stdv-cart-conflict-modal__btn {
  flex: 1;
  min-width: 140px;
}
.stdv-cart-conflict-modal__btn--overwrite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease;
}
.stdv-cart-conflict-modal__btn--overwrite:focus {
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}
.stdv-cart-conflict-modal__btn--overwrite:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.stdv-cart-conflict-modal__btn--overwrite {
  background: #2c3e50;
  color: #ffffff;
}
.stdv-cart-conflict-modal__btn--overwrite:hover:not(:disabled) {
  background: #1a252f;
}
.stdv-cart-conflict-modal__btn--overwrite:active:not(:disabled) {
  transform: translateY(1px);
}
.stdv-cart-conflict-modal__btn--merge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease;
}
.stdv-cart-conflict-modal__btn--merge:focus {
  outline: 2px solid #2c3e50;
  outline-offset: 2px;
}
.stdv-cart-conflict-modal__btn--merge:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.stdv-cart-conflict-modal__btn--merge {
  background: #27ae60;
  color: #ffffff;
}
.stdv-cart-conflict-modal__btn--merge:hover:not(:disabled) {
  background: #1e8449;
}
.stdv-cart-conflict-modal__btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.stdv-cart-conflict-modal__btn--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: stdv-spin 0.6s linear infinite;
}

@keyframes stdv-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes stdv-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (max-width: 768px) {
  .stdv-cart-share {
    padding: 16px;
  }
  .stdv-cart-share__header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .stdv-cart-share__title {
    font-size: 1.125rem;
  }
  .stdv-cart-share__description {
    font-size: 12px;
  }
  .stdv-cart-share__buttons--separate {
    flex-direction: column;
  }
  .stdv-cart-share__buttons--separate .stdv-cart-share__btn {
    width: 100%;
  }
  .stdv-cart-share__dropdown {
    width: 100%;
  }
  .stdv-cart-conflict-modal {
    padding: 8px;
  }
  .stdv-cart-conflict-modal__container {
    max-height: 95vh;
  }
  .stdv-cart-conflict-modal__header {
    padding: 8px 16px;
  }
  .stdv-cart-conflict-modal__title {
    font-size: 1.125rem;
  }
  .stdv-cart-conflict-modal__content {
    padding: 16px;
  }
  .stdv-cart-conflict-modal__footer {
    padding: 8px 16px;
    flex-direction: column;
  }
  .stdv-cart-conflict-modal__btn {
    width: 100%;
  }
}
