/**
* NOTICE OF LICENSE
*
* All right is reserved,
* Please go through LICENSE.txt file inside our module
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future. If you wish to customize this module for your
* needs please refer to CustomizationPolicy.txt file inside our module for more information.
*
* @author Webkul IN
* @copyright since 2010 Webkul
* @license LICENSE.txt
*/

.disc-btn {
  width: 100%;
  padding: 0.1rem;
}

.product-discounts .wk-table-product-discounts thead tr th {
  width: 11%;
  padding: 0.625rem 0rem;
  background: #fff;
  border: 0.2125rem solid #e6d5d5;
  text-align: center;
  font-size: 16px;
}

.product__discounts__table .wk-table-product-discounts thead tr th {
  width: 11%;
  padding: 0.625rem 0rem;
  background: #fff;
  border: 0.2125rem solid #e6d5d5;
  text-align: center;
  font-size: 16px;
}

.product-discounts .wk-table-product-discounts tbody tr td {
  padding: 0.425rem 0rem;
  text-align: center;
  background: #fff;
  border: 0.2125rem solid #e6d5d5;
  font-size: 16px;
}

.product__discounts__table .wk-table-product-discounts tbody tr td {
  padding: 0.425rem 0rem;
  text-align: center;
  background: #fff;
  border: 0.2125rem solid #e6d5d5;
  font-size: 16px;
}

.table-product-discounts {
  color: #232323;
  font-size: 16px;
}

.wk-discount-table-container {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.wk-table-product-discounts {
  width: 100%;
}

/* Styling for select coloumn code start*/
.wk_qty_discount_select {
  background-color: transparent;
  color: #007bff;
  border: none;
  /* padding: 8px 15px; */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-align: center;
  outline: none;
}

.wk-radio-indicator {
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #007bff;
  position: relative;
  margin-right: 8px;
}

.wk-radio-indicator .selected {
  background-color: #007bff;
  width: 12.8px;
  height: 12.8px;
  border-radius: 50%;
  position: absolute;
  top: 10%;
  left: 10%;
}

.wk-radio-indicator .unselected {
  background-color: transparent;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

.wk-radio-indicator--readonly {
  border-color: #cfd4dc;
}

.wk-radio-indicator--readonly .selected {
  background-color: transparent;
}

.wk-radio-indicator--readonly .unselected {
  background-color: transparent;
}

.wk_qty_discount_select:hover,
.wk_qty_discount_select:focus {
  outline: none;
  border: none;
}

.wk-product-price-product-discounts {
  margin-bottom: 1.5rem;
}

.wk-product-price-product-discounts > .product-discounts-title {
  /* font-size: .875rem; */
  font-weight: 600;
}

.wk-product-price-product-discounts > .table-product-discounts thead tr th {
  width: 33%;
  padding: 0.625rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 0.3125rem #f6f6f6 solid;
}

.wk-product-price-product-discounts > .table-product-discounts tbody tr {
  background: #f6f6f6;
}

.wk-product-price-product-discounts
  > .table-product-discounts
  tbody
  tr:nth-of-type(even) {
  background: #fff;
}

.wk-product-price-product-discounts > .table-product-discounts tbody tr td {
  padding: 0.625rem 1.25rem;
  text-align: center;
  border: 0.3125rem #f6f6f6 solid;
}

/* Styling for select coloumn code end*/

.wk-responsiveness {
  max-width: 92%;
  overflow: auto;
}

@media (max-width: 576px) {
  .wk-responsiveness {
    max-width: 65%;
  }
}

/* New discount card layout (product page) */
.wk-discount-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0;
}

.wk-discount-view-toggle-wrapper {
  display: flex;
  justify-content: center;
}

.wk-discount-view-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.wk-discount-item {
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.wk-discount-item--best {
  border-color: rgba(0, 123, 255, 0.45);
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.18);
}

.wk-discount-item-header {
  background: linear-gradient(90deg, #1a73e8, #0d62d8);
  color: #ffffff;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.wk-discount-star {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.wk-discount-item-body {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hummingbird modal: keep 3 equal columns in one row (scoped to popup only) */
.wk_modal_view .modal-dialog.modal-dialog-centered {
  max-width: 40rem;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.wk_modal_view .modal-body {
  overflow-x: hidden;
}

.wk_modal_view .wk-discount-table-container,
.wk_modal_view .wk-discount-list.discount-table,
.wk_modal_view .wk-discount-item,
.wk_modal_view .wk-discount-item-body {
  max-width: 100%;
}

.wk_modal_view .wk-discount-item {
  width: 100%;
  box-sizing: border-box;
}

.wk_modal_view .wk-discount-item-body {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.wk_modal_view .wk-discount-item-body > .wk-discount-col {
  flex: 1 1 0;
  min-width: 0;
}

.wk_modal_view .wk-discount-col--left,
.wk_modal_view .wk-discount-col--middle,
.wk_modal_view .wk-discount-col--right {
  min-width: 0;
}

.wk_modal_view .wk-discount-col--right {
  align-items: flex-end;
}

.wk_modal_view .wk-discount-col--middle,
.wk_modal_view .wk-discount-col--right {
  overflow: hidden;
}

.wk_modal_view .wk-discount-qty,
.wk_modal_view .wk-discount-off {
  white-space: normal;
  word-break: break-word;
}

.wk_modal_view .wk-discount-save,
.wk_modal_view .wk-discount-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Classic theme toggle dropdown: 2 cols on first row + right col centered on second row */
.wk-class-discount-toggle-container .wk-classic-discount-item-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left middle"
    "right right";
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
  padding:10px;
}

.wk-class-discount-toggle-container .wk-discount-item,
.wk-class-discount-toggle-container .wk-discount-item--best {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.wk-class-discount-toggle-container .wk-classic-discount-toggle-entry {
  width: 100%;
}

.wk-class-discount-toggle-container .wk-classic-discount-item-separator {
  border: 0;
  height: 1px;
  background: #e6e9ef;
  margin: 10px 0;
}

.wk-class-discount-toggle-container .wk-classic-discount-view-toggle-wrapper {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.wk-class-discount-toggle-container .wk-classic-discount-view-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.wk-class-discount-toggle-container .wk-discount-col--left {
  grid-area: left;
  min-width: 0;
}

.wk-class-discount-toggle-container .wk-discount-col--middle {
  grid-area: middle;
  min-width: 0;
  overflow: hidden;
}

.wk-class-discount-toggle-container .wk-discount-col--right {
  grid-area: right;
  min-width: 0;
  justify-self: center;
  text-align: center;
  align-items: center;
}

.wk-class-discount-toggle-container .wk-discount-save,
.wk-class-discount-toggle-container .wk-discount-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .wk-class-discount-toggle-container .wk-classic-discount-item-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;

  }

  .wk-class-discount-toggle-container .wk-discount-col.wk-discount-col--right{
    flex-direction: column-reverse;
  }

  .wk-class-discount-toggle-container .wk-discount-col--left,
  .wk-class-discount-toggle-container .wk-discount-col--middle,
  .wk-class-discount-toggle-container .wk-discount-col--right {
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
  }

  .wk-class-discount-toggle-container .wk-discount-col--middle,
  .wk-class-discount-toggle-container .wk-discount-col--right {
    overflow: visible;
  }

  .wk-class-discount-toggle-container .wk-discount-qty,
  .wk-class-discount-toggle-container .wk-discount-off,
  .wk-class-discount-toggle-container .wk-discount-save,
  .wk-class-discount-toggle-container .wk-discount-price {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }
}

.wk-class-discount-toggle-container .wk-discount-col--right{
  margin-left: inherit !important;
}

/* Classic theme modal: proper layout and View More/Less */
.wk-classic-modal.wk_modal_view {
  /* Override any global modal constraints */
}

.wk-classic-modal.wk_modal_view .modal-dialog {
  max-width: 40rem;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

.wk-classic-modal.wk_modal_view .modal-content {
  margin: 16px;
}

.wk-classic-modal.wk_modal_view .modal-body {
  overflow: visible !important;
  padding: 10px;
  max-height: none !important;
  min-height: auto !important;
  height: auto !important;
}

.wk-classic-modal.wk_modal_view .wk-discount-table-container {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
}

.wk-classic-modal.wk_modal_view .wk-discount-list.discount-table {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
}

.wk-classic-modal.wk_modal_view .wk-discount-item,
.wk-classic-modal.wk_modal_view .wk-discount-item--best {
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
}

.wk-classic-modal.wk_modal_view .wk-classic-modal-item-body {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  height: auto !important;
}

.wk-classic-modal.wk_modal_view .wk-discount-item-body > .wk-discount-col {
  flex: 1 1 0;
  min-width: 0;
}

.wk-classic-modal.wk_modal_view .wk-discount-col--left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.wk-classic-modal.wk_modal_view .wk-discount-col--middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
}

.wk-classic-modal.wk_modal_view .wk-discount-col--right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
}

.wk-classic-modal.wk_modal_view .wk-discount-col--left,
.wk-classic-modal.wk_modal_view .wk-discount-col--middle,
.wk-classic-modal.wk_modal_view .wk-discount-col--right {
  min-width: 0;
}

.wk-classic-modal.wk_modal_view .wk-discount-save,
.wk-classic-modal.wk_modal_view .wk-discount-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-classic-modal.wk_modal_view .wk-classic-modal-entry {
  width: 100%;
}

.wk-classic-modal.wk_modal_view .wk-classic-modal-item-separator {
  border: 0;
  height: 1px;
  background: #e6e9ef;
  margin: 10px 0;
}

.wk-classic-modal.wk_modal_view .wk-classic-modal-view-toggle-wrapper {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.wk-classic-modal.wk_modal_view .wk-classic-modal-view-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  outline: none;
}

@media (max-width: 576px) {
  .wk-classic-modal.wk_modal_view .wk-classic-modal-item-body {
    /* flex-direction: column; */
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  .wk-classic-modal.wk_modal_view .wk-discount-col--left,
  .wk-classic-modal.wk_modal_view .wk-discount-col--middle,
  .wk-classic-modal.wk_modal_view .wk-discount-col--right {
    /* width: 100%; */
    min-width: 0;
    align-items: center;
    justify-content: center;
  }


  .wk-classic-modal.wk_modal_view .wk-discount-col--middle,
  .wk-classic-modal.wk_modal_view .wk-discount-col--right {
    overflow: visible;
  }

  .wk-classic-modal.wk_modal_view .wk-discount-qty,
  .wk-classic-modal.wk_modal_view .wk-discount-off,
  .wk-classic-modal.wk_modal_view .wk-discount-save,
  .wk-classic-modal.wk_modal_view .wk-discount-price {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }
}

/* Hummingbird toggle dropdown: 2 cols on first row + right col centered on second row */
.wk-discount-toggle-container .wk-discount-item-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left middle"
    "right right";
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
}

.wk-discount-toggle-container .wk-discount-item,
.wk-discount-toggle-container .wk-discount-item--best {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.wk-discount-toggle-container .wk-discount-toggle-entry {
  width: 100%;
}

.wk-discount-toggle-container .wk-discount-item-separator {
  border: 0;
  height: 1px;
  background: #e6e9ef;
  margin: 10px 0;
}

.wk-discount-toggle-container .wk-discount-toggle-view-toggle-wrapper {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.wk-discount-toggle-container .wk-discount-toggle-view-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}



.wk-discount-toggle-container .wk-discount-col--left {
  grid-area: left;
  min-width: 0;
}

.wk-discount-toggle-container .wk-discount-col--middle {
  grid-area: middle;
  min-width: 0;
  overflow: hidden;
}

.wk-discount-toggle-container .wk-discount-col--right {
  grid-area: right;
  min-width: 0;
  justify-self: center;
  text-align: center;
  align-items: center;
}

.wk-discount-toggle-container .wk-discount-save,
.wk-discount-toggle-container .wk-discount-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .wk-discount-toggle-container .wk-discount-item-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .wk-discount-toggle-container .wk-discount-col.wk-discount-col--right{

    flex-direction: column-reverse;
  }

  .wk-discount-toggle-container .wk-discount-col--left,
  .wk-discount-toggle-container .wk-discount-col--middle,
  .wk-discount-toggle-container .wk-discount-col--right {
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
  }

  .wk-discount-toggle-container .wk-discount-col--middle,
  .wk-discount-toggle-container .wk-discount-col--right {
    overflow: visible;
  }

  .wk-discount-toggle-container .wk-discount-qty,
  .wk-discount-toggle-container .wk-discount-off,
  .wk-discount-toggle-container .wk-discount-save,
  .wk-discount-toggle-container .wk-discount-price {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }
}

.wk-discount-toggle-container .wk-discount-col--right{
  margin-left: inherit !important;
}

.wk-product-discounts {
  width: 100%;
}
/* Product page: enforce equal-width 3-column layout without impacting listing/other blocks */
.wk-product-discounts .wk-discount-item-body {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.wk-product-discounts .wk-discount-item-body > .wk-discount-col {
  flex: 1 1 0;
  min-width: 0;
}

.wk-product-discounts .wk-discount-col--left,
.wk-product-discounts .wk-discount-col--middle,
.wk-product-discounts .wk-discount-col--right {
  min-width: 0;
  text-align: center;
}

.wk-discount-col--left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.wk-discount-left-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wk-discount-qty {
  color: #1f2937;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.wk-discount-off {
  color: #28a745;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.wk-discount-col--middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
}

.wk-discount-label {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.2;
}

.wk-discount-save {
  color: #28a745;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.wk-discount-col--right {
  display: flex;
  flex-direction: column;
  /* align-items: flex-end; */
  gap: 6px;
  min-width: 110px;
}

/* Product listing: render discounts as dropdown overlay (prevents grid whitespace) */
.product-miniature .wk-discount-table-container {
  max-height: none;
  overflow: visible;
  position: relative;
}

.product-miniature .wk-discount-list.discount-table {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
}

.product-miniature .wk-discount-col--right {
  margin-left: auto;
}

.product-miniature .wk-discount-item-body {
  min-width: 0;
  width: 100%;
}

.wk-discount-price {
  color: #111827;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.wk-discount-unit-label {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.2;
}

.wk-discount-more-msg {
  background: #eefaf2;
  border: 1px solid #d8f0df;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f7a3d;
  font-weight: 600;
}

.wk-discount-more-icon {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-block;
  transform: rotate(-10deg);
  background: #2f7a3d;
  border-radius: 3px;
}

.wk-discount-more-icon:before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #2f7a3d;
}

.wk-discount-more-icon:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 3px;
  height: 3px;
  background: #eefaf2;
  border-radius: 50%;
  opacity: 0.95;
}

@media (max-width: 576px) {
  .wk-discount-item-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .wk-discount-col--right {
    align-items: flex-start;
  }

  /* Hummingbird modal: keep 3 columns in a single row on mobile too */
  .wk_modal_view .wk-discount-item-body {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .wk_modal_view .wk-discount-col--right {
    align-items: flex-end;
  }

  .wk_modal_view .modal-dialog.modal-dialog-centered {
    width: calc(100% - 1rem);
  }

  /* Product page: keep 3 columns in a single row on mobile */
  .wk-product-discounts .wk-discount-item-body {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 10px 12px;
  }

  .wk-product-discounts .wk-discount-col--left {
    gap: 6px;
  }

  .wk-product-discounts .wk-discount-left-text {
    gap: 2px;
  }

  .wk-product-discounts .wk-discount-col--right {
    align-items: flex-end;
  }

  .wk-product-discounts .wk-discount-col--middle,
  .wk-product-discounts .wk-discount-col--right {
    overflow: hidden;
  }

  .wk-product-discounts .wk-discount-left-text {
    overflow: visible;
    min-width: 0;
  }

  .wk-product-discounts .wk-discount-qty,
  .wk-product-discounts .wk-discount-off {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  .wk-product-discounts .wk-discount-save,
  .wk-product-discounts .wk-discount-price {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
/*
  .wk_modal_view.wk-classic-modal .modal-dialog .modal-content {
    max-height: 40rem !important;
  } */

}

 .wk_modal_view.wk-classic-modal .wk-discount-list.discount-table  {
    position: relative !important;
  }

  button:focus {
    outline: none;
  }

  .wk_modal_view .wk-discount-table-container{
        max-height: none;
  }

/* // */
