.field-blocks {
  position: relative;
  display: inline-block;
  width: 100%;
}

.field-blocks .block {
  width: calc(25% - 10px);
  float: left;
  position: relative;
  padding: 0 10px 0 0;
}

.custom-quantity-block {
  width: 100%;
  display: inline-block;
}

/* Hide cards view when table view is selected */
.custom-quantity-block[data-display-method="table"] .wpiqd-swatch {
  display: none !important;
}

/* Show table view when table is selected */
.custom-quantity-block[data-display-method="table"] .wpiqd-table-view {
  display: table !important;
}

/* Hide table view when cards view is selected */
.custom-quantity-block[data-display-method="cards"] .wpiqd-table-view {
  display: none !important;
}

/* Show cards view when cards is selected */
.custom-quantity-block[data-display-method="cards"] .wpiqd-swatch {
  display: block !important;
}

.field-blocks .block input,
.field-blocks .block textarea {
  width: 100% !important;
}

.quantity_discount_block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-top: 10px;
}

.field-blocks {
  display: flex;
  flex-grow: 1;
}

.quantity_discount_block {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  margin-top: 5px;
}

.block {
  flex-grow: 1;
  margin-right: 10px;
}

.block:last-child {
  margin-right: 0;
}

.block input,
.block textarea {
  width: 100%;
  box-sizing: border-box;
}

.delete_quantity_discount {
  margin-left: 20px;
  height: fit-content;
}

.tabs {
  margin-bottom: 20px;
}

.tabs li {
  display: inline-block;
  margin-right: 5px;
}

.tabs a {
  display: inline-block;
  padding: 10px 20px;
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-bottom: none;
}

.tabs a.active {
  text-decoration: none;
  color: #000;
  background: #fff;
  border-color: #ccc #ccc #fff;
}

.tabs a {
  text-decoration: none;
  color: #000;
  border-color: #ccc #ccc #fff;
}

.panel.active {
  display: block !important;
}

/*Preview block*/
.wpiqd-swatch {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  display: block;
  position: relative;
}

.preview-block {
  width: calc(100% - 20px);
  position: relative;
  display: inline-block;
  padding: 10px;
}

#quantity_discounts_preview {
  max-width: 500px;
  margin: 0 auto;
}

#quantity_discounts_preview_preview {
  max-width: 500px;
  margin: 0 auto;
}

.wpiqd-inner {
  justify-content: space-between;
}

.wpiqd-radio,
.wpiqd-middle {
  display: inline-block;
}

.wpiqd-middle {
  margin-left: 20px;
}

.wpiqd-right {
  float: right;
  text-align: right;
}

.wpiqd-inner {
  display: flex;
  align-items: center;
}

.one-block {
  flex-shrink: 0; /* Prevent the radio button container from shrinking */
}

.second-block {
  flex-grow: 1; /* Take up the remaining space */
  display: flex;
  justify-content: space-between; /* Distribute space between the middle and right sections */
  align-items: center;
}

.old-price {
  color: #c0c0c0;
}

.wpiqd-swatch {
  cursor: pointer;
  line-height: 1.3;
}

.wpiqd-swatch:hover {
  background-color: unset;
  color: unset;
}

.wpiqd-swatch.active .wpiqd-radio span {
  background-color: white; /* Change the color of the custom radio button when active */
}

.blocks_3 {
  display: inline-block;
  padding: 0 20px;
}

.blocks_3:first-child {
  padding-left: 0;
}

.quantity-discounts-settings-label {
  display: inline-block;
  margin-right: 10px;
}

.wp-picker-container {
  display: inline-block;
  vertical-align: top;
}

.wpiqd-radio input[type=radio] {
  display: none; /* Hide the default radio button */
}

/*Badges*/
.third-block.badge-inside {
  padding-right: 80px;
}

.third-block.badge-inside-no {
  padding-right: 0;
}

#badge-container {
  position: absolute;
  top: -25px;
  left: 50%; /* Centers it horizontally */
  transform: translateX(-50%); /* Shifts the badge container to the left by half its width */
  z-index: 999;
}

#badge-container.badge-price-star_container {
  position: absolute;
  top: -25px;
  right: -20px;
  left: inherit;
  transform: inherit;
  z-index: 999;
}

#badge-container.circle-badge_container {
  top: -12px;
  position: absolute;
  right: -10px;
  transform: inherit;
  left: inherit;
  z-index: 999;
}

.badge-price-star,
.badge-price-star:before,
.badge-price-star:after,
.badge-price-star .price {
  height: 5em !important;
  width: 5em !important;
  background: #d32f2f;
}

.badge-price-star:before,
.badge-price-star:after {
  content: "" !important;
  position: absolute !important;
}

.badge-price-star {
  margin: 20px 0 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  background-color: #e53935;
  transform-origin: center !important;
  transition: 0.3s all ease-out !important;
}

.badge-price-star:before {
  top: 0;
  left: 0;
  -webkit-transform: rotate(22.5deg);
  -moz-transform: rotate(22.5deg);
  -ms-transform: rotate(22.5deg);
  -o-transform: rotate(22.5deg);
  transform: rotate(22.5deg);
  z-index: 1;
}

.badge-price-star:after {
  top: 0;
  left: 0;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: #e53935;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.badge-price-star .price {
  padding: 1em 0em;
  height: 3em; /* height minus padding */
  position: absolute;
  bottom: 0;
  margin-bottom: 0 !important;
  display: grid;
  text-align: center;
  align-items: center;
  right: 0;
  -webkit-transform: rotate(-22.5deg);
  -moz-transform: rotate(-22.5deg);
  -ms-transform: rotate(-22.5deg);
  -o-transform: rotate(-22.5deg);
  transform: rotate(-22.5deg);
  z-index: 1; /* important so the text shows up */
}

.badge-price-star .price span {
  position: relative;
  z-index: 100;
  align-items: center;
  display: grid;
  text-align: center;
  color: #fff;
  font: 14px Sans-Serif;
  text-transform: uppercase;
}

.badge-price-star .price span.number {
  font-weight: bold;
  font-size: 1.625em;
  line-height: 0.9em;
  color: #ffebee;
}

.circle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font: 14px Sans-Serif;
  background-color: #e53935;
  width: 80px;
  height: 80px;
  text-align: center;
}

.rect-badge {
  display: inline-block;
  color: white;
  font: 14px Sans-Serif;
  background-color: #e53935;
  padding: 5px 10px;
  border-radius: 5px;
}

.ribbon-badge {
  position: relative;
  padding: 10px 40px;
  background-color: #e53935;
  color: white;
  display: inline-block;
  font-size: 16px;
  margin: 30px;
}

.ribbon-badge:before, .ribbon-badge:after {
  content: "";
  position: absolute;
  top: 0;
  font: 17px Sans-Serif;
  border: 20px solid transparent;
  z-index: -1;
}

.ribbon-badge:before {
  left: -40px;
  border-right-color: #e53935;
}

.ribbon-badge:after {
  right: -40px;
  border-left-color: #e53935;
}

.wpiqd-radio span {
  display: inline-block;
  height: 20px;
  width: 20px;
  border-width: 1px; /* Inactive border color */
  border-style: solid;
  border-radius: 50%; /* Circular border */
  position: relative;
  cursor: pointer;
  vertical-align: middle; /* Align with the text */
}

/* Style for the custom radio button when it's active/checked */
.wpiqd-radio input[type=radio]:checked + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 12px;
  width: 12px;
  border-radius: 50%;
}

/* Hover styles for the custom radio */
.wpiqd-radio span:hover {
  border-color: #aaa; /* Hover border color */
}

.badge-price-star_preview,
.circle-badge_preview,
.rect-badge_preview {
  display: none;
}

.badge-price-star_preview.active,
.circle-badge_preview.active,
.rect-badge_preview.active {
  display: flex;
}

.circle-badge_container {
  top: -8px !important;
}

.rect-badge_container {
  top: 15px !important;
}

#minmax_preview {
  padding: 0 30px;
}

/* Table View Styles for Frontend */
.custom-quantity-block[data-display-method="table"] {
  display: inline-block;
  width: 100%;
  margin: 20px 0;
}

.wpiqd-table-view {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  display: table;
  border: 1px solid #e0e0e0;
}

.wpiqd-table-view thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
}

.wpiqd-table-view th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
}

.wpiqd-table-view th:first-child {
  width: 50px;
  text-align: center;
}

.wpiqd-table-view th:nth-child(2) {
  width: 80px;
}

.wpiqd-table-view th:nth-child(3) {
  min-width: 200px;
}

.wpiqd-table-view th:nth-child(4) {
  width: 120px;
  text-align: right;
}

.wpiqd-table-view th:last-child {
  width: 100px;
  text-align: center;
}

.wpiqd-table-view td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.wpiqd-table-view tbody tr {
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.wpiqd-table-view tbody tr:last-child td {
  border-bottom: none;
}

.wpiqd-table-view tbody tr:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wpiqd-table-view tbody tr.active {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.1);
}

.wpiqd-table-view tbody tr.active td {
  font-weight: 500;
  color: #1976d2;
}

.wpiqd-table-view tbody tr.active .table-quantity {
  color: #1976d2;
  font-weight: 700;
}

.wpiqd-table-view tbody tr.active .table-price {
  color: #1976d2;
}

.wpiqd-table-view td:first-child {
  text-align: center;
  width: 50px;
}

.wpiqd-table-view td:nth-child(2) {
  width: 80px;
}

.wpiqd-table-view td:nth-child(4) {
  text-align: right;
}

.wpiqd-table-view td:last-child {
  text-align: center;
}

.wpiqd-table-view .table-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  accent-color: #2196f3;
}

.wpiqd-table-view .table-quantity {
  font-weight: 700;
  font-size: 18px;
  color: #212529;
  line-height: 1.2;
}

.wpiqd-table-view .table-label {
  font-weight: 600;
  color: #212529;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.wpiqd-table-view .table-description {
  font-size: 13px;
  color: #6c757d;
  margin-top: 6px;
  line-height: 1.5;
}

.wpiqd-table-view .table-price {
  font-size: 20px;
  font-weight: 700;
  color: #28a745;
  line-height: 1.2;
  white-space: nowrap;
}

.wpiqd-table-view .table-price .woocommerce-Price-amount {
  color: inherit;
  font-weight: inherit;
}

.wpiqd-table-view .table-old-price {
  font-size: 14px;
  color: #adb5bd;
  text-decoration: line-through;
  margin-top: 6px;
  display: block;
  font-weight: 400;
}

.wpiqd-table-view .table-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
  white-space: nowrap;
}

.wpiqd-table-view tbody tr.active .table-badge {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .wpiqd-table-view {
    font-size: 14px;
    border-radius: 6px;
  }
  
  .wpiqd-table-view th {
    padding: 10px 8px;
    font-size: 11px;
  }
  
  .wpiqd-table-view td {
    padding: 12px 8px;
  }
  
  .wpiqd-table-view .table-quantity {
    font-size: 16px;
  }
  
  .wpiqd-table-view .table-label {
    font-size: 14px;
  }
  
  .wpiqd-table-view .table-description {
    font-size: 12px;
  }
  
  .wpiqd-table-view .table-price {
    font-size: 18px;
  }
  
  .wpiqd-table-view .table-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .wpiqd-table-view th:nth-child(3),
  .wpiqd-table-view td:nth-child(3) {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .wpiqd-table-view {
    display: block;
    width: 100%;
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
  }
  
  .wpiqd-table-view thead {
    display: none;
  }
  
  .wpiqd-table-view tbody {
    display: block;
    width: 100%;
  }
  
  .wpiqd-table-view tr {
    display: block;
    width: auto;
    margin-bottom: 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
  }
  
  .wpiqd-table-view tr:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .wpiqd-table-view tr.active {
    border-color: #2196f3;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
  }
  
  /* Radio button - inline with content */
  .wpiqd-table-view td:first-child {
    display: inline-block;
    vertical-align: top;
    width: auto;
    padding: 0;
    margin-right: 10px;
    border: none;
    background: transparent;
  }
  
  .wpiqd-table-view tr.active td:first-child {
    background: transparent;
  }
  
  .wpiqd-table-view .table-radio {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #2196f3;
    vertical-align: middle;
  }
  
  /* Content cells - compact inline layout */
  .wpiqd-table-view td:not(:first-child) {
    display: inline-block;
    width: auto;
    border: none;
    padding: 0;
    margin-right: 15px;
    text-align: left !important;
    vertical-align: middle;
  }
  
  .wpiqd-table-view td:last-child {
    margin-right: 0;
  }
  
  /* Remove labels on mobile - cleaner look */
  .wpiqd-table-view td:not(:first-child):before {
    display: none;
  }
  
  /* Quantity - bold and prominent */
  .wpiqd-table-view .table-quantity {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    display: inline-block;
  }
  
  .wpiqd-table-view tr.active .table-quantity {
    color: #1976d2;
  }
  
  /* Description - compact */
  .wpiqd-table-view td[data-label="Description"] {
    display: block;
    width: 100%;
    margin: 8px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
  }
  
  .wpiqd-table-view tr.active td[data-label="Description"] {
    border-top-color: #bbdefb;
  }
  
  .wpiqd-table-view .table-label {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    display: block;
    margin-bottom: 2px;
  }
  
  .wpiqd-table-view tr.active .table-label {
    color: #1976d2;
  }
  
  .wpiqd-table-view .table-description {
    font-size: 12px;
    color: #6c757d;
    display: block;
    line-height: 1.4;
  }
  
  /* Price - inline with quantity */
  .wpiqd-table-view td[data-label="Price"] {
    display: inline-block;
  }
  
  .wpiqd-table-view .table-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    display: inline-block;
  }
  
  .wpiqd-table-view tr.active .table-price {
    color: #1976d2;
  }
  
  .wpiqd-table-view .table-old-price {
    font-size: 12px;
    color: #adb5bd;
    display: block;
    margin-top: 2px;
  }
  
  /* Badge - inline if exists */
  .wpiqd-table-view td[data-label="Badge"] {
    display: inline-block;
    margin-left: 8px;
  }
  
  .wpiqd-table-view .table-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  .wpiqd-table-view tr.active .table-badge {
    background: #2196f3;
  }
}

/*# sourceMappingURL=quantity-discounts-public.css.map */
