/**
 * Qin SiteToolkit Module CSS
 * Hide SKU information from product page
 */

.product.attribute.sku {
    display: none !important;
}
/* Minimal stylesheet to satisfy MIME type and static asset pipeline */
.apf-hidden { display: none; }
.footer .footer-columns { display: flex; flex-wrap: nowrap; gap: 24px; align-items: flex-start; clear: both; width: 100%; }
.footer .footer-column { flex: 0 0 calc((100% - 48px)/3); min-width: 0; box-sizing: border-box; padding-right: 0; }
.footer-title { font-weight: 600; margin: 0 0 8px; text-transform: uppercase; }
.footer .footer-column p { margin: 0 0 8px; }
.footer .footer-column .links { list-style: none; margin: 0; padding: 0; }
.footer .footer-column .links li { margin: 0 0 6px; }
@media (max-width: 992px) {
  .footer .footer-columns { flex-wrap: wrap; }
  .footer .footer-column { flex: 0 0 100%; }
}

.catalog-product-view .page-title .base,
.catalog-product-view .product-info-main .page-title .base {
  font-size: 24px !important;
  line-height: 31px !important;
  font-weight: 400 !important;
  display: inline !important;
}
.catalog-product-view .page-title,
.catalog-product-view .product-info-main .page-title {
  line-height: 31px !important;
}
.catalog-product-view h1.page-title {
  font-size: 24px !important;
  line-height: 31px !important;
  font-weight: 400 !important;
  margin-bottom: 16px !important;
}

/* Amazon-style Swatch Size */
.swatch-option.image {
    width: 60px !important;
    height: 60px !important;
    margin: 0 10px 10px 0 !important;
    background-size: cover !important;
}
.swatch-option.image:hover, .swatch-option.image.selected {
    outline: 2px solid #e77600 !important;
    border: 1px solid #e77600 !important;
}

/* Swatch pagination */
.qst-swatch-pager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.qst-page-list {
    display: inline-flex;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.qst-page-btn {
    background: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 18px;
    cursor: pointer;
}
.qst-page-btn:hover {
    border-color: #8f8f8f;
}
.qst-page-btn.active {
    border-color: #0071ce;
    color: #0071ce;
    font-weight: 600;
}
.qst-page-btn.disabled {
    opacity: 0.5;
    cursor: default;
}
.qst-page-ellipsis {
    pointer-events: none;
}
.qst-page-info {
    margin-left: 8px;
    font-size: 13px;
    line-height: 18px;
    color: #666;
    white-space: nowrap;
}

/* Grid layout for paged swatches: 2 rows x 6 columns per page */
.swatch-attribute.qst-paged .swatch-attribute-options {
    display: grid;
    grid-template-columns: repeat(6, 60px);
    /* grid-auto-rows: 60px; */
    gap: 10px;
}
.swatch-attribute.qst-paged .swatch-option {
    margin: 0 !important;
}

.swatch-attribute.qst-paged .swatch-option.text {
    box-sizing: border-box;
    width: 60px !important;
    max-width: 60px !important;
    min-width: 60px !important;
    padding: 4px 6px !important;
    white-space: normal !important;
    overflow: hidden !important;
    word-break: break-word;
    height: auto !important;
}

.swatch-attribute .swatch-attribute-options {
    margin-bottom: 8px !important;
}

.swatch-attribute {
    margin-bottom: 20px !important;
}

.swatch-option.disabled,
.swatch-option-disabled {
    border: 1px dashed rgba(190, 188, 186, 0.8) !important;
    opacity: 0.3 !important;
}
.swatch-option.disabled:after,
.swatch-option-disabled:after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.swatch-option.text {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden !important;
  text-overflow: clip !important;
  box-sizing: border-box;
  width: 100px !important;
  max-width: 100px !important;
  min-width: 60px !important;
  height: auto !important;
  line-height: 1.2;
  padding: 4px 6px;
}

.swatch-attribute .swatch-option.text,
.swatch-opt .swatch-option.text {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden !important;
  text-overflow: clip !important;
  box-sizing: border-box;
  width: 100px !important;
  max-width: 100px !important;
  min-width: 60px !important;
  height: auto !important;
  line-height: 1.2;
  padding: 4px 6px;
}

.swatch-attribute .swatch-attribute-options .swatch-option.text,
.swatch-opt .swatch-attribute-options .swatch-option.text {
  width: auto !important;
}

.swatch-attribute .swatch-option.text.selected,
.swatch-opt .swatch-option.text.selected {
  height: auto !important;
}

.swatch-option.text.selected {
  height: auto !important;
}

/* Product attributes summary: two-column inline rows */
.product-attributes-summary .items {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 8px;
  row-gap: 4px;
  align-items: baseline;
  margin: 8px 0;
  padding: 0;
}
.product-attributes-summary dt {
  font-weight: 700;
  margin: 0;
}
.product-attributes-summary dd {
  margin: 0;
}

.qst-make-handling .items {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 8px;
  row-gap: 4px;
  align-items: baseline;
  margin: 8px 0;
  padding: 0;
}
.qst-make-handling dt {
  font-weight: 700;
  margin: 0;
}
.qst-make-handling dd {
  margin: 0;
}

/* Other Options button alignment and styling to match Add to Cart */
.catalog-product-view .box-tocart .action.other-options {
    vertical-align: top;
    box-sizing: border-box;
    min-height: 50px;
    padding: 17px 17px;
    font-size: 1.8rem;
}
.catalog-product-view .box-tocart .action.other-options:not(:last-child) {
    margin-bottom: 15px;
    box-sizing: border-box;
    min-height: 50px;
    padding: 17px 17px;
    font-size: 1.8rem;
}
@media (min-width: 768px) {
    .catalog-product-view .box-tocart .action.other-options {
        margin-bottom: 0;
        margin-right: 0;
        width: 36%; /* Smaller width to ensure it fits on the same line */
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .catalog-product-view .box-tocart .action.tocart,
    .catalog-product-view .box-tocart .action.other-options {
        display: block;
        width: 100%;
    }
    .catalog-product-view .box-tocart .action.other-options {
        margin-top: 10px;
    }
}
