.wd-swatches-product {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 8px;
}

.wd-swatch {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}


.wd-swatch.selected {
  border: 4px solid #706d6d;
}

.wd-swatch-bg {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.wd-swatch-text {
  font-size: 10px;
  margin-top: 4px;
  text-align: center;
}

.wd-swatch:hover::after {
  content: attr(data-title);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #111;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 1000;
}

.wd-swatch.disabled {
    cursor: not-allowed;
    /* filter: grayscale(0%); */
    opacity: 0.7;
    border: 3px solid transparent;
    border-color: #d90404;
    border-radius: 10px;
}

.wd-swatch:hover::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: none;
  border-bottom-color: #111;
  z-index: 1000;
}

#color-container {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-top: 20px;
}

#color-container table {
  border-collapse: collapse !important;
  border: none !important;
  width: auto !important;
}

#color-container td,
#color-container th {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  vertical-align: top !important;
}

#color-container th.label.cell {
  padding-right: 12px !important;
  font-weight: bold;
  white-space: nowrap;
}

#color-container .value.cell.with-swatches {
  padding: 0 !important;
}


.woocommerce table.shop_table .product-thumbnail img.kubify-cart-thumb {
    width: 200px;
    max-width: none;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.cart-toast {
    position: fixed;
    top: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 14px;

    background: #3f4c73; /* Kubify blue */
    color: #ffffff;

    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

    font-size: 14px;
    line-height: 1.3;

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.35s ease;

    z-index: 9999;
    pointer-events: none;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-content strong {
    display: block;
    font-weight: 600;
}

.toast-content span {
    font-size: 13px;
    opacity: 0.9;
}
