.woosw-btn-icon {
  color: white !important;
}
.woosw-items {
  width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.woosw-list {
  width: 100% !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}
#woosw_copy_url {
  width: 320px !important;
}
.woosw-item--stock {
  display: none !important;
}
.add_to_cart_inline a {
  background-color: #fbb907 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

:root {
  --gap: 12px;
  --border: 1px solid #e8e8e8;
  --muted: #6b7280;
}

.woosw-items tbody {
  display: block !important;
}

.woosw-items .woosw-item {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: var(--gap) !important;
  padding: 12px !important;
  border: var(--border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  margin: 0 0 12px !important;
  white-space: normal !important;
}

.woosw-items td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.woosw-item--remove {
  order: 0 !important;
}
.woosw-item--remove span {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #eee !important;
  vertical-align: middle !important;
}

.woosw-item--image {
  order: 1 !important;
  flex: 0 0 auto !important;
}
.woosw-item--image img {
  display: block !important;
  width: 72px !important;
  height: auto !important;
  border-radius: 8px !important;
  object-fit: contain !important;
}

.woosw-item--info {
  order: 2 !important;
  display: flex !important;
  align-items: flex-start !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.woosw-item--name a {
  color: #111 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-block !important;
  max-width: 38ch !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.woosw-item--name a:hover {
  text-decoration: underline !important;
}
.woosw-item--price {
  font-weight: 700 !important;
}
.woosw-item--time {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.woosw-item--actions {
  order: 3 !important;
  display: flex !important;
  align-items: center !important;
  gap: var(--gap) !important;
  flex: 0 0 auto !important;
}
.add_to_cart_inline {
  margin: 0 !important;
}

.woosw-actions {
  margin-top: 16px !important;
  padding: 10px !important;
  border: var(--border) !important;
  border-radius: 12px !important;
  background: #fafafa !important;
}
.woosw-copy {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.woosw-copy-label {
  color: var(--muted) !important;
  font-size: 0.92rem !important;
}
.woosw-copy-url input[type="url"] {
  width: min(100%, 420px) !important;
  padding: 8px 10px !important;
  border: var(--border) !important;
  border-radius: 10px !important;
  background: #fff !important;
}
#woosw_copy_btn {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #fff !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

.woosw-item {
  height: 130px !important;
}

@media (max-width: 1024px) {
  .woosw-items,
  .woosw-items tbody,
  .woosw-items .woosw-item,
  .woosw-items td {
    display: block !important;
    width: 100% !important;
  }

  .woosw-item {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "remove info"
      "image  info"
      "image  actions" !important;
    align-items: start !important;
    gap: 12px 14px !important;
    padding: 14px !important;
  }

  .woosw-item--remove {
    grid-area: remove !important;
    order: 0 !important;
  }
  .woosw-item--image {
    grid-area: image !important;
    order: 1 !important;
    margin-bottom: 16px !important;
    justify-self: center !important;
    align-self: start !important;
  }
  .woosw-item--info {
    grid-area: info !important;
    order: 2 !important;
  }
  .woosw-item--actions {
    grid-area: actions !important;
    order: 3 !important;
  }

  .woosw-item--image img {
    width: 80px !important;
    height: auto !important;
    border-radius: 10px !important;
  }

  .woosw-item--name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .woosw-item--price {
    margin-top: 6px !important;
    font-size: 1rem !important;
  }

  .woosw-item--time {
    margin-top: 2px !important;
    font-size: 0.92rem !important;
    margin-bottom: 18px !important;
  }

  .woosw-item--actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
  }

  .add_to_cart_inline a {
    min-height: 44px !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
  }

  .woosw-copy {
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  .woosw-copy-url input[type="url"] {
    width: min(100%, 460px) !important;
  }

  .woosw-item {
    height: auto !important;
  }
}

@media (max-width: 640px) {
  .woosw-list {
    font-size: clamp(15px, 3.7vw, 16px) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .woosw-item {
    display: grid !important;
    grid-template-columns: 72px 1fr !important;
    grid-template-areas:
      "image  remove"
      "info   info"
      "actions actions" !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .woosw-item--remove {
    grid-area: remove !important;
    justify-self: end !important;
  }
  .woosw-item--image {
    grid-area: image !important;
    margin-bottom: 16px !important;
  }
  .woosw-item--info {
    grid-area: info !important;
  }
  .woosw-item--actions {
    grid-area: actions !important;
  }

  .woosw-item--image img {
    width: 64px !important;
    height: auto !important;
    border-radius: 10px !important;
  }

  .woosw-item--name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .woosw-item--price {
    margin-top: 6px !important;
    font-size: 1rem !important;
  }

  .woosw-item--time {
    margin-top: 2px !important;
    font-size: 0.9rem !important;
  }

  .woosw-item--actions {
    margin-top: 6px !important;
    width: 100% !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .add_to_cart_inline {
    width: 100% !important;
  }
  .add_to_cart_inline a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
  }

  .woosw-copy {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  #woosw_copy_url {
    width: 100% !important;
  }
  #woosw_copy_btn {
    min-width: 100% !important;
    width: 100% !important;
    min-height: 44px !important;
  }

  .woosw-actions {
    display: block !important;
  }

  .woosw-items {
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (hover: none) {
  .woosw-item--remove span {
    width: 22px !important;
    height: 22px !important;
  }
}

.woosw-link {
  opacity: 0 !important;
}

.woosw-popup-content-mid-message {
  margin-top: 16px !important;
}
