.skip-collapsible {
  cursor: text !important;
}

.term-2993 p.woocommerce-info {
  display: none !important;
}

input.itc-add-to-cart-custom-stone-panel {
  margin: 0;
  max-width: none;
  font-size: 16px !important;
  padding: 14px 50px !important;
  width: 100% !important;
  background-color: #03ba48;
  border: 2px solid black;
  transition: 0.3s ease-in-out;
}

.stone-sum {
  padding: 0;
}


.calculate-rope-section {
  /*padding: 100px 0;*/
  padding: 40px 0;
}



.calculate-rope-section .step-block {
  border-radius: 25px;
  background-color: #e6e6e6;
  margin-bottom: 60px;
  padding-top: 1px;
  display: flex;
  align-items: center;
}

.calculate-rope-section .step-block .info-box {
  width: calc(100% - 175px);
  padding: 20px 25px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.calculate-rope-section .step-block .info-box:only-child {
  width: 100%;
}

.r-stone-ops__table-title {
  margin-bottom: 10px;
}

.r-stone-ops__table-subtitle {
  display: inline-block;
  /* flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; */
  text-align: center;
  margin-bottom: 20px;
}

.calculate-rope-section .step-block .form-group {
  width: 100%;
  max-width: 715px;
  margin: 0 auto;
}

.calculate-rope-section .step-block .circle-box {
  position: relative;
  width: 150px;
  overflow: hidden;
  margin-top: -22px;
  align-self: flex-end;
  margin-left: 25px;
}

.calculate-rope-section .step-block .circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: -20px;
  background-color: #03ba48;
  color: #fff;
  font-size: 20px;
}

.calculate-rope-section .step-block .circle p {
  margin-bottom: 0;
}

.calculate-rope-section .step-block .num {
  font-size: 50px;
}


.calculate-rope-section .btn {
  text-align: center;
  padding: 9px 14px;
  font-size: 14px;
}


.calculate-rope-section .title-box {
  margin-bottom: 50px;
}



.calculate-wf-form select,
.calculate-wf-custom-gabion-form select {
  width: 100%;
}

.calculate-wf-form label,
.calculate-wf-custom-gabion-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.calculate-wf-form label .label-note,
.calculate-wf-custom-gabion-form label .label-note {
  color: #656565;
  font-size: 12px;
  /*font-weight: 400;*/
}

.layout-mini .info {
    border: 1px solid;
    border-radius: 100%;
    padding: 0px 5px;
    font-weight: 900;
    font-size: 10px;
    cursor: pointer;
    line-height: 1.3;
}

.calculate-result-holder input[type="submit"],
.calculate-wf-form input[type="submit"],
.calculate-wf-custom-gabion-form input[type="submit"] {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  white-space: normal;
}


.calculate-result-holder input[type="submit"] {
  margin: 0;
  max-width: none;
  font-size: 16px;
  padding: 9px 25px;
}



.calculate-wf-form input[type="radio"],
.calculate-wf-custom-gabion-form input[type="radio"] {
  display: inline-block;
}

.calculate-wf-form .input-holder,
.calculate-wf-custom-gabion-form .input-holder {
  margin-bottom: 10px;
}


.calculate-wf-form .btn-wrapper,
.calculate-wf-custom-gabion-form .btn-wrapper,
.calculate-result-holder .btn-wrapper {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  max-width: max-content;
}

/* .stone-sum h3 {
  margin: 0;
  text-align: left;
  margin-bottom: 15px;
  font-size: 15px;
} */

.full-width {
  max-width: unset !important;
}


.calculate-result-holder,
.calculate-result-holder * {
  box-sizing: border-box;
}



.calculate-result-holder,
.calculate-result-holder .calculate-row {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-wrap: wrap;
  /* margin: 0 -15px; */
}


.calculate-item.price {
  width: 40% !important;
  text-align: right !important;
  padding-right: 15px !important;
}




/* Stone Calculator Radio Button Styles */
.stone-option {
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 5px;
  /* background-color: #caccca; */
}


.stone-option input[type="radio"] {
  /* margin-right: 10px; */
  transform: scale(1.2);
}



/* Fallback for browsers that don't support :has() */
.stone-option:has(input[type="radio"]:checked),
.stone-option.selected {
  /* background: #03ba48 !important; */
  border: 2px solid #ff8400;
}

.stone-option:has(input[type="radio"]:checked) a:not(:hover),
.stone-option.selected a:not(:hover) {
  /* color: #fff; */
}

.r-stone-ops-tbl {
  width: 100%;
}

/* .r-stone-ops-tbl {
  margin-bottom: 14px;
} */

/* .r-stone-ops-tbl__prod-link {
  position: relative;
  z-index: 1;
  text-decoration: none !important;
} */

/* Stone Options Table Styles */
.stone-options-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 10px 10px 0px 0px;
  overflow: hidden;
}

.stone-options-table th,
.stone-options-table td {
  padding: 12px 8px;
  text-align: center;
  /* border: 1px solid #e2e2e2; */
  vertical-align: middle;
}

.stone-options-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.stone-options-table tbody tr:not(.a) {
  cursor: pointer;
  /* transition: 0.2s ease; */
  background-color: transparent !important;
  color: #212121;
}


.stone-options-table .radio-cell {
  width: 35px;
  min-width: 35px;
}

.stone-option input[type="radio"] {
  min-width: 15px;
}

.stone-options-table .image-cell {
  width: 12%;
}

.stone-options-table .product-name-cell {
  width: 30%;
  text-align: left;
}

.stone-options-table .qty-cell,
.stone-options-table .leftover-cell,
.stone-options-table .price-each-cell,
.stone-options-table .total-price-cell {
  width: 12.5%;
}

.stone-options-table .stone-image {
  max-width: min(100%, 90px);
  max-height: 90px;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 1;
}

.stone-options-table .product-name-cell {
  /* color: #333; */
  text-decoration: none;
  font-weight: var(--tbl-title-font-weight, 600);
  cursor: pointer;
  position: relative;
  z-index: 2;
  text-wrap: auto;
  line-height: 1.1;
}

/* .stone-options-table .r-stone-ops-tbl__prod-link:hover {
  color: #ff8400;
  text-decoration: underline;
} */

.stone-options-table .stone-type-radio {
  margin: 0;
  transform: scale(1.2);
  cursor: pointer;
}


.stone-options-table tr:not(.selected-row):hover {
  background-color: #eaeaea !important;
}

.stone-options-table .selected-row {
  background-color: #e8f4f8 !important;
  /* border-left: 3px solid #ff8400; */
}

.stone-options-table .selected-row:hover {
  background-color: #e8f4f8 !important;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .stone-options-table {
    font-size: 12px;
  }

  .stone-options-table th,
  .stone-options-table td {
    padding: 8px 4px;
  }

  .stone-options-table .stone-image {
    max-width: min(100%, 80px);
    max-height: 80px;
  }
}

@media (max-width: 768px) {
  .stone-options-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .stone-options-table th,
  .stone-options-table td {
    min-width: 80px;
  }
  .stone-options-table thead tr th.first-child,
  .stone-options-table .radio-cell {
    width: 15px;
    min-width: 15px;
  }

  .stone-options-table .product-name-cell {
    min-width: 150px;
  }
}


/* Additional Gabion Rows Styles */
.additional-gabion-row,
.main-gabion-row {
  background-color: #f9f9f9;
  background-color: #e6e6e6;
  box-shadow: 0 4px 4px -2px rgb(0 0 0 / 8%);
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  container-type: inline-size;
}

.additional-gabion-row:last-child {
  margin-bottom: 20px;
}

.additional-gabion-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}

.additional-gabion-fields .form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.form-group .form-group--step{
  background: #03ba48;
  display: flex ;
  width: auto;
  align-self: flex-start;
  color: white;
  padding: 1px 8px;
  border-radius: 24px;
  margin-bottom: 0;
  font-weight: 600;
}

.additional-gabion-fields label {
    display: flex;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 12px;
    gap: 3px;
    align-items: center;
}

.additional-gabion-fields select,
.additional-gabion-fields input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

.additional-gabion-fields .label-note {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.add-gabion-link {
  color: #5aa1e3;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 10px;
  margin-top: 10px;
  padding-bottom: 0px;
}

.remove-gabion-link {
  color: #d32f2f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.remove-gabion-link:before {
  content: "\00d7";
  font-size: 20px;
  line-height: 0.6;
  margin-right: 4px;
  text-decoration: none !important;
}

.remove-gabion-link:hover {
  color: #a91b1b;
  text-decoration: none;
}

.add-another-gabion-btn:hover {
  background-color: #45a049 !important;
}

.calculate-result-holder.stone-sum .btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculate-result-holder.stone-sum .itc-add-to-cart-custom-stone-panel {
  width: auto !important;
}

.add-gabion-btn-wrapper {
  display: none;
}

.additional-gabions-container:has(*)+.add-gabion-btn-wrapper {
  display: block;
}

/* Responsive design for additional gabion fields */
@supports not (container-type: size) {
  @media (max-width: 768px) {
    .additional-gabion-fields {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .tonnage-required {
      max-width: 75% !important;
    }
  }
}

@supports (container-type: size) {
  @container (width < 710px) {
    .additional-gabion-fields {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .tonnage-required {
      max-width: 75% !important;
    }
  }
}

@supports not (container-type: size) {
  @media (max-width: 480px) {
    .additional-gabion-fields {
      grid-template-columns: 1fr;
      gap: 8px;
    }
  }
}

@supports (container-type: size) {
  @container (width < 360px) {
    .additional-gabion-fields {
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }
  }
}

@media (max-width: 685px) {
  .stone-options-table {
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 10px !important;
  }

  .calculate-rope-section .calculate-result-holder.stone-sum .info-box {
    padding: 12px !important;
  }

  .stone-options-table thead {
    display: none !important;
  }

  .stone-options-table tbody {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stone-options-table tbody>tr {
    display: flex;
    flex-direction: column;
    width: 95%;
    box-shadow: 0 0 10px -4px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 20px 1.5fr 3fr;
    border: 2px solid transparent;
  }

  .stone-options-table tbody>tr>td {
    min-width: unset !important;
    width: 100% !important;
    border-top: var(--tbl-cell-border-top, none) !important;
    border-bottom: var(--tbl-cell-border-bottom, none) !important;
    border-left: var(--tbl-cell-border-left, none) !important;
    border-right: var(--tbl-cell-border-right, none) !important;
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 4px;
    flex-direction: var(--stone-table-cell-flex-direction, row);
    text-align: center;
  }

  .product-name-cell {
    align-self: flex-start;
    font-size: 1.2em;
    --tbl-title-font-weight: 600;
  }

  .radio-cell {
    /* display: none !important; */
  }

  .product-name-cell {
    grid-column: 2/-1;
  }

  .qty-cell.stone-qty,
  .leftover-cell,
  .price-each-cell,
  .total-price-cell {
    grid-column: span 2;
    align-items: center;
  }

  .total-price-cell {
    grid-column: 1 / -1;
    --stone-table-cell-flex-direction: row;
    --tbl-cell-border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .selected .total-price-cell {
    --tbl-cell-border-top: 1px solid rgba(255, 255, 255, 0.5);
  }

  .qty-cell.stone-qty:before {
    content: "Quantity: ";
  }

  .leftover-cell:before {
    content: "Leftover (kg): "
  }

  .price-each-cell:before {
    content: "Price Each: ";
  }

  .total-price-cell:before {
    content: "Total Price: ";
  }

  .qty-cell:before,
  .leftover-cell:before,
  .price-each-cell:before,
  .total-price-cell:before {
    font-weight: 700;
  }

  .total-price-cell {
    font-size: 14px;
    color: #03ba48;
    --tbl-cell-border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .tonnage-required {
    max-width: 90% !important;
  }

  .stone-options-table .radio-cell {
    grid-column: 1;
    grid-row: 1 / span 5;
  }

  .stone-options-table .image-cell {
    grid-column: 2;
    grid-row: 1 / span 5;
    justify-content: center;
  }

  .stone-options-table .product-name-cell,
  .stone-options-table .qty-cell,
  .stone-options-table .leftover-cell,
  .stone-options-table .price-each-cell,
  .stone-options-table .total-price-cell {
    grid-column: 3;
  }

  .stone-options-table .stone-image {
    max-width: min(100%, 100px);
    max-height: 100%;
  }

  .product-name-cell {
    align-self: flex-start;
    font-size: 1.2em;
    --tbl-title-font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.6 !important;
  }

  .stone-options-table .qty-cell, 
  .stone-options-table .leftover-cell, 
  .stone-options-table .price-each-cell {
    font-size: 13px;
    line-height: 14px;
    font-weight: 400;
    color: #666666;
    padding-left: 12px;
  }

  .stone-options-table .total-price-cell {
    font-weight: 700;
    color: #03ba48;
    --tbl-cell-border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .stone-options-table .qty-cell:after,
  .stone-options-table .leftover-cell:after,
  .stone-options-table .price-each-cell:after {
    content: '●';
    color: #38ba48;
    position: absolute;
    left: 2px;
  }

  .stone-options-table td {
    padding: 0 4px;
  }

  .stone-options-table .selected-row:hover {
    background-color: transparent !important;
  }
}







/* Responsive styles for gabion accordion */
@media (max-width: 768px) {
  .gabion-accordion-label {
    padding: 15px 20px;
    font-size: 16px;
  }

  .gabion-caret-icon {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .gabion-accordion-label {
    padding: 12px 15px;
    font-size: 14px;
  }

  .gabion-caret-icon {
    font-size: 16px;
  }
}


/* Gabion Accordion Styles */
.gabion-accordion {
  margin: 28px 0px;
  padding: 0px;
  border-bottom: 1px solid #cccccc;
}

input[name="gabion-collapse-checkbox"] {
  display: none;
}

.gabion-accordion-label {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  /* background-color: #e6e6e6; */
  border-radius: 25px;
  margin-bottom: 28px;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  /* box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1); */
  line-height: 31px;
}

.gabion-accordion-label>span.gabion-accordion-label-text {
  text-decoration: underline;
}

/* .gabion-accordion-label:hover {
  background-color: #ddd;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.2);
} */

.gabion-caret-icon {
  font-size: 18px;
  font-weight: 400;
  transition: transform 200ms ease-in-out;
  margin-left: auto;
}

.gabion-collapsible {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 600ms;
  transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.gabion-collapsible>* {
  overflow: hidden;
}

.gabion-accordion-content {
  padding: 0 24px;
}

input[name="gabion-collapse-checkbox"]:checked~.gabion-collapsible {
  grid-template-rows: 1fr;
}

input[name="gabion-collapse-checkbox"]:checked~.gabion-accordion-label .gabion-caret-icon {
  transform: rotate(180deg);
}

/* Ensure elements inside the accordion don't get collapsible behavior when not needed */
.gabion-accordion .skip-collapsible {
  position: relative;
  z-index: 1;
}

.tax-product_cat .stone-options-table .video-wrapper {
  font-size: 12px;
}

.tonnage-required .calculate-item.price,
.tonnage-required .r-calculate-reuqired-volume {
  font-weight: 700;
  color: #03ba48;
}

.info.calculate-length,
.info.calculate-depth,
.info.calculate-height {
  display: none;
}

.term-calculator .info.calculate-length,
.term-calculator .info.calculate-depth,
.term-calculator .info.calculate-height {
  display: block;
}