/* Konfigurator produktu - style */

/* Selektor rozmiaru (Size Group Selector) */
.dst-size-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.dst-size-selector-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dst-size-selector-select {
    flex: 1;
    max-width: 300px;
    padding: 10px 35px 10px 15px;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23333" d="M6 8L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.dst-size-selector-select:hover {
    border-color: #007bff;
}

.dst-size-selector-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Panel główny */
.dst-cfg-panel {
   display: flex;
padding: 20px;
flex-direction: column;
align-items: flex-start;
gap: 20px;
border-radius: 4px;
border: 1px solid #EEE;
box-shadow: 0 4px 54px 0 rgba(0, 0, 0, 0.05);
}

/* Ukrywanie pustego konfiguratora (włączony tylko dla dynamicznych cen, ale bez sekcji) */
.dst-cfg-title.is-empty,
.dst-cfg-panel.is-empty {
    display: none !important;
}

.dst-cfg-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 400;
    color: #000;
}

/* Sekcje rozwijalne - nowa struktura */
.dst-cfg-section {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}


.dst-cfg-section-icon {
    flex-shrink: 0;
    width: 48px;
      height: 48px;
  padding: 8px;
  background-color: #F3F1F1;
  border: 1px solid var(--Gray-300, #D5D7DA);
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  border-radius: 5px;
}

.dst-cfg-section-icon .dst-cfg-thumb {
	height: 100% !important;
	width: 100% !important;
	background: transparent !important;
}

.dst-cfg-section-content {
    flex: 1;
    min-width: 0;
}

.dst-cfg-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header bez togglea (np. Druckverfahren - zawsze widoczne) */
.dst-cfg-section-header-no-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.dst-cfg-section-body {
    display: none;
}

.dst-cfg-section-body.active {
    display: block;
}

/* Custom checkbox (toggle główny sekcji) */
.dst-cfg-toggle-checkbox {
    display: none;
}

.dst-cfg-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
}

.dst-cfg-toggle-box {
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dst-cfg-toggle-checkbox:checked + .dst-cfg-toggle-label .dst-cfg-toggle-box {
    background: #000;
    border-color: #000;
}

.dst-cfg-toggle-checkbox:checked + .dst-cfg-toggle-label .dst-cfg-toggle-box::after {
    content: '✓';
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

/* Custom checkbox dla opcji */
.dst-cfg-custom-checkbox {
    display: none;
}

.dst-cfg-custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    padding: 8px 0;
}

.dst-cfg-custom-checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dst-cfg-custom-checkbox:checked + .dst-cfg-custom-checkbox-label .dst-cfg-custom-checkbox-box {
    background: #000;
    border-color: #000;
}

.dst-cfg-custom-checkbox:checked + .dst-cfg-custom-checkbox-label .dst-cfg-custom-checkbox-box::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* Custom radio */
.dst-cfg-custom-radio {
    display: none;
}

.dst-cfg-custom-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    padding: 8px 0;
}

.dst-cfg-custom-radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dst-cfg-custom-radio:checked + .dst-cfg-custom-radio-label .dst-cfg-custom-radio-circle {
    border-color: #000;
    border-width: 2px;
}

.dst-cfg-custom-radio:checked + .dst-cfg-custom-radio-label .dst-cfg-custom-radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
}

/* Radio group */
.dst-cfg-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Ikony/miniatury */
.dst-cfg-thumb {
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dst-cfg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dst-cfg-thumb-placeholder {
    color: #000;
    cursor: default;
}

.dst-cfg-thumb-small {
    width: 32px;
    height: 32px;
    margin-left: auto;
}

/* Ikona pomocy/tooltip */
.dst-cfg-help-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
    position: relative;
}

.dst-cfg-help-icon:hover {
    opacity: 1;
}

/* Tooltip inline - obok selecta */
.dst-cfg-help-icon-inline {
    margin-left: 12px;
    flex-shrink: 0;
}

/* Custom tooltip positioning - od góry zamiast od dołu */
.dst-cfg-help-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    max-width: 200px;
    white-space: normal;
    text-align: center;
    pointer-events: none;
}

.dst-cfg-help-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* Load options - worki/płyty */
.dst-cfg-load-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dst-cfg-load-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
}

.dst-cfg-option-image {
    flex-shrink: 0;
}

.dst-cfg-option-content {
    flex: 1;
    min-width: 0;
}

.dst-cfg-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dst-cfg-option-name {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.dst-cfg-option-quantity {
    margin-left: 30px; /* Wcięcie pod radio button */
    display: none; /* Ukryty domyślnie - pokazywany przez JavaScript */
}

.dst-cfg-select-small {
    width: 80px;
    padding: 6px 8px;
    font-size: 14px;
}

/* Select */
.dst-cfg-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin: 8px 0;
    background: #fff;
}

/* Select dla print method (może mieć specyficzne style) */
.dst-cfg-select-print {
    font-weight: 500;
    min-width: 300px;
}

/* Kontener: obrazek + select + tooltip (dla Seitenwände) */
.dst-cfg-select-with-image {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dst-cfg-select-image {
    flex-shrink: 0;
}

.dst-cfg-select-with-image .dst-cfg-select {
    flex: 1;
    margin: 0;
}

/* Split mode dla Seitenwände - dwa rzędy jeden pod drugim */
.dst-cfg-sidewalls-split {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dst-cfg-select-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dst-cfg-sidewalls-split-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
      line-height: 1;
}

.dst-cfg-select-wrapper .dst-cfg-select {
    width: 100%;
    margin: 0;
}

/* Tooltip pod selectem (dynamiczny) */
.dst-cfg-option-tooltip {
    display: none;
    padding: 10px 12px;
    margin: 8px 0 12px 0;
    background: #f8f8f8;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.dst-cfg-option-tooltip.active {
    display: block;
}

/* Tabelka cenowa - 3 kolumny */
.dst-cfg-price-summary {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.dst-cfg-price-table {
    width: 100%;
    border-collapse: collapse;
}

.dst-cfg-price-row {
    border-bottom: 1px solid #ddd;
}

.dst-cfg-price-row:last-child {
    border-bottom: none;
}

.dst-cfg-price-cell {
    padding: 12px 8px;
    vertical-align: top;
    font-size: 15px;
}

.dst-cfg-price-cell.label {
    text-align: left;
    width: 40%;
    color: #000;
}

.dst-cfg-price-cell.gross {
    text-align: right;
    width: 30%;
    color: #000;
}

.dst-cfg-price-cell.net {
    text-align: right;
    width: 30%;
    color: #000;
}

.dst-cfg-price-sign {
    display: inline-block;
    margin-right: 4px;
    font-weight: 600;
}

.dst-cfg-total-row {
    border-top: 1px solid #CCC;
}

.dst-cfg-total-row .dst-cfg-price-cell {
    padding-top: 16px;
    padding-bottom: 16px;
    font-weight: 700;
    font-size: 18px;
}

.dst-cfg-tax-note {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}


.dst-cfg-toggle-label {
  margin: 0;
}

.dst-cfg-price-cell.label {
  width: 30%;
}

.dst-cfg-price-cell {
  padding: 9px 4px;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.dst-cfg-tax-note {
  font-weight: 500;
}

.dst-cfg-total-row {
  border-bottom: 0;
}

.dst-cfg-total-row .dst-cfg-price-cell {
  padding-bottom: 0;
}


/* configurator.css | https://jsl.ddev.site/wp-content/themes/dstdesign-theme/dstdesign-woocommerce/css/configurator.css?ver=1.0.0 */

.dst-cfg-load-option {
  /* padding: 12px; */
  /* border: 1px solid #e5e5e5; */
  /* border-radius: 6px; */
  /* background: #fafafa; */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: 0;
}

.dst-cfg-custom-radio-label {
  /* padding: 8px 0; */
  padding: 0;
  margin: 0;
}

.dst-cfg-select {
  /* margin: 8px 0; */
  margin: 0;
  max-width: none;
}

.dst-cfg-option-header {
  /* gap: 8px; */
  /* margin-bottom: 8px; */
  gap: 0;
  margin-bottom: 0;
}

.dst-cfg-thumb-small {
  /* width: 32px; */
  /* height: 32px; */
  width: 42px;
  height: 42px;
}

/* Stylizacja przycisku formularza zapytania - identyczna jak przycisk "Dodaj do koszyka" */
.dst-inquiry-dialog .button[type="submit"] {
    display: flex;
    max-width: 380px;
    width: 100%;
    height: 56px;
    padding: 13px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px !important;
    background: #CF142B !important;
    border-color: #CF142B !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.dst-inquiry-dialog .button[type="submit"]:hover {
    background: #b5121f !important;
    border-color: #b5121f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(207, 20, 43, 0.3);
}

.dst-cfg-load-options {
  margin-top: 1rem;
}

.dst-cfg-section {
  width: 100%;
}







.legal-price-info {
	display: none;
}





.dst-inquiry-btn {
  padding: 1.2rem 2rem !important;
}

.woocommerce div.product form.cart button, .woocommerce div.product form.cart .dst-inquiry-btn {
  flex: 1 1 auto !important;
  text-align: center;
  max-width: none;
}

.woocommerce div.product form.cart .quantity {
  flex: 0 0 auto;
}

.woocommerce div.product form.cart .dst-inquiry-btn {
  height: 54px;
  border-radius: 100px;
  line-height: 1;
  padding: 10px !important;
  background: #000 !important;
}

.woocommerce div.product form.cart, .woocommerce-page div.product form.cart, .woocommerce #content div.product form.cart, .woocommerce-page #content div.product form.cart {
  display: flex;
}
/* RWD */
@media (max-width: 768px) {



.dst-cfg-price-summary {
  padding: 10px;
}

.dst-cfg-total-row .dst-cfg-price-cell {
  font-size: 14px;
}

.dst-cfg-tax-note {
  font-size: 10px;
}

.dst-cfg-price-cell {
  font-size: 11px;
}

.dst-cfg-section-icon {
  width: 38px;
  height: 38px;
}

.dst-cfg-panel {
  padding: 10px;
  gap: 10px;
}

.dst-cfg-toggle-box {
  width: 15px;
  height: 15px;
}

.dst-cfg-help-icon {
  width: 15px;
  margin-left: 0;
}




/* custom-product-card.css | https://jsl.dstdesign.website/wp-content/themes/dstdesign-theme/dstdesign-woocommerce/css/custom-product-card.css?ver=1.0.0 */

@media (max-width: 768px) {
  .cz-heart.wishlist-toggle.card {
    /* margin-bottom: -3rem; */
    margin-bottom: 0;
  }
}


.dst-cfg-title {
  font-size: 14px !important;
  margin: 0;
}

.dst-cfg-section-header {
  gap: 4px;
}

.dst-cfg-section-icon {
  padding: 5px;
}

.dst-cfg-select-print {
  min-width: auto;
}

.dst-cfg-select {
  padding: 8px 10px;
  font-size: 12px;
}

.dst-cfg-custom-radio-circle {
  width: 15px;
  height: 15px;
}

.dst-cfg-custom-radio:checked + .dst-cfg-custom-radio-label .dst-cfg-custom-radio-circle::after {
  width: 7px;
  height: 7px;
  margin-left: 0px;
}

.dst-cfg-load-option {
  gap: 6px;
}

.dst-cfg-load-options {
  margin-top: 0.5rem;
}

.dst-cfg-thumb-small {
  width: 35px;
  height: 35px;
}

.dst-cfg-option-quantity {
  margin-left: 0;
}

.dst-cfg-toggle-checkbox:checked + .dst-cfg-toggle-label .dst-cfg-toggle-box::after {
  font-size: 12px;
}

.woocommerce div.product form.cart button, .woocommerce div.product form.cart .dst-inquiry-btn {
  font-size: 14px !important;
  align-items: center;
  padding: 4px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  height: 44px;
}

}
@media (min-width: 981px) and (min-height: 851px) {
    

.custom-sticky-sticked .dst-cfg-panel {
  transform: scale(0);
  height: 0;
}

.custom-sticky-sticked .dst-cfg-price-summary {
  margin-top: 0;
  margin-top: -70px;
}

.custom-sticky-sticked .dst-cfg-title {
  font-size: 0;
}

.custom-sticky-sticked .ppcp-messages {
  display: none;
}

.custom-sticky-sticked .dst-size-selector {
	transform: scale(0);
	margin-top: -30px;
        height: 0;
}



.dst-cfg-panel {
  transition: transform .2s linear;
  overflow: hidden;
}

.dst-cfg-price-summary {
  transition: all .2s linear;
}

.dst-cfg-title {
  transition: all .2s linear;
}

}
/* Tippy.js light-border theme dla help ikonek */
.tippy-box[data-theme~='light-border'] {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
}

.tippy-box[data-theme~='light-border'] .tippy-arrow {
    color: #fff;
}

.tippy-box[data-theme~='light-border'] .tippy-arrow::before {
    border-top-color: #ddd;
    border-bottom-color: #ddd;
}

/* Cursor pointer dla help ikonek - wskazuje że są klikalne */
.dst-cfg-help-icon {
    cursor: pointer;
    user-select: none;
}
