/* Table layout */
.wpig-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}
.wpig-table th,
.wpig-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}
.wpig-table th:nth-child(1),
.wpig-table td:nth-child(1) {
    width: 10%;
}
.wpig-table th:nth-child(3),
.wpig-table td:nth-child(3) {
    width: 20%;
}

/* Controls */
.wpig-controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}
.wpig-btn {
    padding: 8px 16px;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

/* Quantity inputs */
.wpig-qty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.wpig-plus,
.wpig-minus {
    padding: 6px 12px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
}
.wpig-qty {
    width: 50px;
    text-align: center;
    padding: 6px;
}

/* Progress bar */
.wpig-progress-bar {
    height: 10px;
    width: 100%;
    background-color: #ddd;
    margin: 10px 0;
    border-radius: 5px;
    overflow: hidden;
}
.wpig-progress-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}
.wpig-count {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Toast notifications */
.wpig-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 3px;
    display: none;
    z-index: 9999;
    font-weight: bold;
}

/* Disabled “Add Items to Cart” */
#wpig-add-all:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Dismissable WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;
}
.wpig-notice-close {
    position: absolute;
    top: 0.2em;
    right: 0.5em;
    background: none;
    border: none;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    color: #000;
}

/* Nudge the dismiss “×” left so it sits left of the Undo button */
.wpig-notice-close {
  right: 4.5rem !important;  /* move it left (adjust as needed) */
  background: #dc3545;        /* match Undo’s red bg */
  color: #fff;                /* white × */
  border-radius: 4px;         /* same corner radius */
  width: 1.2em;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
}

/* Optional: add a hover state to match Undo */
.wpig-notice-close:hover {
  background: #c82333;        /* slightly darker red */
}


/* Block interactions when form is disabled */
.wpig-disabled {
    opacity: 0.6;
}
.wpig-disabled button,
.wpig-disabled .wpig-plus,
.wpig-disabled .wpig-minus,
.wpig-disabled .wpig-qty {
    pointer-events: none;
}

/* Notice container styling */
.wpig-notice {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.4;
}
.wpig-error {
  border-left: 4px solid #dc3545;  /* red accent */
}
.wpig-info {
  border-left: 4px solid #17a2b8;  /* teal accent */
}