@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.cps-wrapper { max-width: 100%; margin-bottom: 30px; font-family: "Inter", sans-serif; }
.cps-wrapper.cps-addon-layout { margin-bottom: 24px; }

/* GŁÓWNY BOX - STYLIZACJA KONTENERA */
.cps-list {
    background: #fff;
    border: 2px solid #000; /* Gruby czarny border jak na screenie */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cps-addon-layout .cps-list {
    border: none;
    box-shadow: none;
    padding: 0;
}

.cps-list-header {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 15px;
    color: #000;
}
.cps-list-note{
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #555;
}

/* WIERSZ PRODUKTU - CZYSTY */
.cps-row { 
    display: flex; 
    align-items: flex-start; /* Wyrównanie do góry */
    padding: 10px 0; 
    margin-bottom: 10px; 
    cursor: pointer; 
    transition: all 0.2s; 
    background: transparent;
    border: none;
}
/* Separator między produktami, opcjonalny */
/* .cps-product-container:not(:last-child) .cps-row { border-bottom: 1px solid #eee; } */

.cps-row:hover { background: transparent; }
.cps-row.active { background: transparent; border-color: transparent; }

/* CHECKBOX - DUŻY KWADRAT */
.cps-checkbox-wrap { 
    margin-right: 15px; 
    position: relative; 
    width: 24px; /* Większy */
    height: 24px; 
    flex-shrink: 0; 
    margin-top: 2px; /* Drobna korekta wyrównania */
}
.cps-checkbox { opacity: 0; position: absolute; z-index: -1; }
.cps-custom-check { 
    position: absolute; top:0; left:0; 
    width: 24px; height: 24px; 
    border: 2px solid #ccc; /* Szary border */
    border-radius: 6px; 
    background: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
/* Ukryj ewentualne svg wstawione z PHP, aby nie dublować ptaszka */
.cps-custom-check svg { display: none; }

.cps-checkbox:checked + .cps-custom-check { 
    background: #000; /* Czarny środek */
    border-color: #000; 
}
/* Stały znacznik "ptaszka" dla głównych pozycji */
.cps-checkbox:checked + .cps-custom-check:after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.cps-modules-only-toggle.cps-custom-check {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.2s;
}
.cps-modules-only-toggle.cps-custom-check:checked {
    background: #000;
    border-color: #000;
}
.cps-modules-only-toggle.cps-custom-check:checked:after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Checkbox zgody marketingowej – wygląd jak reszta custom-check */
.cps-consent-check,
input#billing_cps_marketing_consent.cps-consent-check {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    box-sizing: border-box;
    width: 24px !important;
    height: 24px !important;
	border: 2px solid #ccc !important;
	border-radius: 6px !important;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px !important;
    vertical-align: middle;
    transition: all 0.2s;
}
.cps-consent-check:checked,
input#billing_cps_marketing_consent.cps-consent-check:checked {
    background: #000 !important;
    border-color: #000!important;
}
.cps-consent-check:checked:after,
input#billing_cps_marketing_consent.cps-consent-check:checked:after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Ustawienia etykiety dla checkboxa zgody */
.woocommerce-billing-fields .form-row .woocommerce-form__label-for-checkbox.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
.woocommerce-billing-fields .form-row .woocommerce-form__label-for-checkbox.checkbox .cps-consent-check {
    margin-top: 2px !important;
}

/* Dostosowanie wyglądu pola zgody marketingowej (renderowane przez WC) */
#cps_marketing_consent_field label.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
#cps_marketing_consent_field input.cps-consent-check {
    margin-top: 2px !important;
}
/* Ikonka checkmark w SVG wstawiona w HTML */

.cps-img { display: none; } /* Ukrywamy obrazek */

.cps-details { flex: 1; margin-right: 10px; display: flex; align-items: center; flex-wrap: wrap; }
.cps-tooltip-wrapper {
    position: relative;
    display: inline-block;
}
.cps-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #aaa;
    border-radius: 50%;
    font-size: 11px;
    color: #555;
    cursor: pointer; /* hover + tap */
    margin-left: 6px;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cps-tooltip-icon:hover { border-color: #000; color: #000; }
.cps-tooltip-box {
    position: absolute;
    z-index: 20;
    width: 300px;
    max-width: 90vw;
    background: #1f1f1f;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-align: left;
}
.cps-tooltip-box:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1f1f1f transparent transparent transparent;
}
/* Pokazuj na hover (desktop) lub gdy .active (mobile click) */
.cps-tooltip-wrapper:hover .cps-tooltip-box,
.cps-tooltip-wrapper.active .cps-tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

.cps-price-container {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.cps-price { font-weight: bold; white-space: nowrap; font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px; color: #6EBF3D; }
.cps-price-suffix { font-size: 0.7em; text-transform: uppercase; color: #555; margin-top: 2px; }
.cps-price-old { color: #000; font-weight: 300 !important;  margin-right: 6px; text-decoration: line-through; }
.cps-price-new { color: #81BD51; font-weight: 700; }

.cps-sections-box .cps-item-price {
	text-align: right;
    display: flex;
  flex-direction: column;
}

.cps-sections-box .cps-price-old {
	margin: 0;
}

.cps-section.cps-section-addons .cps-addon-price-old {
	display: none;
}


.cps-order-review .cps-list-note {
	border-top: 1px solid #c3c3c3;

}


.woocommerce-form-coupon-toggle { display: none !important; }
.woocommerce .checkout_coupon { display: none !important; }
.cps-coupon-block .checkout_coupon { display: block !important; }
.cps-coupon-block .woocommerce-form-coupon-toggle { display: none !important; }
.cps-addons-note { display: none; }
.woocommerce-terms-and-conditions-wrapper { display: none !important; }
.woocommerce-shipping-fields, .woocommerce-additional-fields { display: none !important; }
.opc-disabled-btn { opacity: 0.5 !important; pointer-events: none !important; cursor: not-allowed !important; }

.cart-subtotal { display: none !important; }


#cps-pay-now-wrapper label { cursor: pointer; display: flex; align-items: flex-start; }
#cps-pay-now-wrapper input { cursor: pointer; }
/* Pay-now korzysta z tego samego "custom checkbox" co reszta */
#cps-pay-now-wrapper .cps-checkbox-wrap { margin-right: 10px; }
.cps-forced-checked { opacity: 0.6; pointer-events: none; }
.cps-forced-info { font-size: 11px; color: #d63638; display: block; margin-left: 34px; }

.cps-modules-only-wrapper { margin-top: 15px;}
.cps-modules-only-wrapper label { 
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    cursor: pointer; 
    display: flex; 
    align-items: center; }
    .cps-modules-only-wrapper input {
        margin-right: 10px;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

.cps-disabled-list { opacity: 0.4; pointer-events: none; filter: grayscale(100%); transition: all 0.3s; }

/* Bez animacji przy odświeżaniu podsumowania */
.woocommerce-checkout-review-order-table { transition: none; }

/* Styles for variations */
.cps-variations { 
    margin-left: 47px; /* Wcięcie pod checkboxem */
    margin-bottom: 20px; 
    padding-left: 0;
    border-left: none; /* Usuwamy linię pionową */
}
.cps-variations-header {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #333;
}
.cps-variation-row { 
    display: flex; align-items: center; 
    padding: 5px 0; 
    margin-bottom: 5px; 
    cursor: pointer; 
    background: transparent;
    border: none;
}
.cps-variation-row:hover { background: transparent; }
.cps-variation-row.active { background: transparent; border: none; }

.cps-variation-row .cps-checkbox-wrap { 
    width: 24px; height: 24px; /* Mniejsze checkboxy dla wariantów */
    margin-right: 12px; 
}
.cps-variation-row .cps-custom-check { 
    width: 24px; height: 24px; 
    border-radius: 4px;
}

.cps-variation-row .cps-variation-checkbox:checked + .cps-custom-check { 
    background: #ccc; /* Szary środek dla wariantów - lub inny kolor */
    border-color: #ccc; 
}
/* Ikonka dla wariantów - opcjonalnie */
.cps-variation-row .cps-variation-checkbox:checked + .cps-custom-check:after {
     /* Prosty "ptaszek" css */
     content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Jeśli wariant jest jedyny (domyślnie zaznaczony), pokazuj go jak główny checkbox (czarny) */
.cps-variations-single .cps-variation-checkbox:checked + .cps-custom-check {
    background: #000;
    border-color: #000;
}
.cps-variations-single .cps-variation-checkbox:checked + .cps-custom-check:after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Zmiana kolejności: Tabela -> Dane Klienta -> Płatność */
form.checkout { display: flex !important; flex-direction: column; }
#order_review {
	display: flex;
	flex-direction: column;
}

/* Grupa 1: Góra */
#order_review_heading { display: block; }
.woocommerce-checkout-review-order-table {  margin-bottom:80px !important; }

/* Box podsumowania + tabela */

#order_review_heading {
    font-size: 24px;
    font-weight: 500;
    color: #1f1f1f;
    margin: 0 0 18px 0;
    font-family: "Inter", sans-serif;
}

@media (max-width: 768px) {
    #order_review_heading {
        font-size: 20px;
    }

    
.cps-list .cps-price {
    display: flex;
    flex-direction: column;
  }
  .cps-list  .cps-price-old {
    margin: 0 !important;
  }

  .cps-price-suffix {
	max-width: 86px;
}


#billing_company_field label, #billing_nip_field label {
	font-size: 12px;
}

.cps-item-price {
    display: block !important;
  }
  .cps-row.cps-pay-now-row {
    padding: 0;
    margin: 0;
  }

}
.cps-order-review {
    width: 100%;
    transition: none;
    order: 1;
    background: #F0F0F0;
  padding: 24px;
  border-radius: 10px;
}

/* Zamiana "białej ramki/boxa": teraz box jest przy sekcji głównej, a nie przy kursach specjalistycznych */
/* Jeden wspólny box dla sekcji (wpisowe + kursy specjalistyczne) */
.cps-sections-box {
    background: #fff;
    border-radius: 20px;
    padding: 20px 16px;
}
/* Sekcje w środku boxa nie mają osobnych teł */
.cps-sections-box .cps-section.cps-section-primary,
.cps-sections-box .cps-section.cps-section-addons {
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
}
/* Delikatna linia oddzielająca kursy specjalistyczne */
.cps-sections-box .cps-section.cps-section-addons {
    border-top: 1px solid #ececec;
    margin-top: 16px;
    padding-top: 16px;
}
.cps-section { margin-bottom: 24px; }
.cps-section:last-child { margin-bottom: 0; }
.cps-section-title {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 16px;
}

/* Wyróżnienia nagłówków sekcji w podsumowaniu */
.cps-section-primary .cps-section-title {
    font-weight: 600; /* bardziej wyróżnij "Opłata wpisowa na:" */
    color: #111;
    margin-bottom: 14px;
}
.cps-section-primary .cps-section-title:after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: #81BD51;
    border-radius: 2px;
    margin-top: 8px;
}

.cps-variation-name {
	font-size: 14px;
	padding-left: 17px;
	display: block;
}
.cps-section-addons .cps-section-title {
    font-weight: 500; /* delikatnie wyróżnij "Kursy specjalistyczne:" */
    font-size: 16px;
    line-height: 22px;
    color: #1f1f1f;
}

.cps-variation-value {
	text-transform: lowercase;
}
.cps-section-addons .cps-section-title:after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: #81BD51;
    border-radius: 2px;
    margin-top: 8px;
}


@media (max-width: 768px) {
    .cps-section-title{
        font-size: 16px;
    }
    .cps-section-addons .cps-section-title {
        font-size: 16px;
        line-height: 20px;
    }
}
.cps-item,
.cps-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}




.cps-item:last-child { 
    border-bottom: 0;  }
.cps-item-name {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
}

@media (max-width: 768px) {
    .cps-item-name {
        font-size: 14px;
    }
}







.cps-item-name .product-quantity { display: none; }
.cps-item-price { 
     color: #81BD51; 
     font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
     }

.cps-addon-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cps-addons-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
    margin-bottom: 16px;
}

.cps-addon-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.cps-addon-name { font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px; 
    display: flex; 
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
}
.cps-addon-name svg {
    flex: 0 0 auto;
    display: block;
    margin-top: 2px; /* lekkie wyrównanie do pierwszej linii tekstu */
}
.cps-addon-title {
    flex: 1 1 auto;
    min-width: 0;
}
.cps-addon-name .product-quantity { display: none; }
.cps-addon-price { 
    font-weight: 800; 
    color: #81BD51; 
    text-align: right; 
    white-space: nowrap; 
    display: flex;

    align-items: flex-end;
    gap: 8px;
}
.cps-addon-price-old {
    color: #000;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    text-decoration: line-through;
   
}
.cps-addon-price-current {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #81BD51;
}
.cps-price-free {
    text-transform: uppercase;
}

.cps-total-price-old {
	color: #000;
	font-weight: 500;
	text-decoration: line-through;
	margin-right: 8px;
	font-size: 16px;
}
.cps-total-price-current {
    color: #81BD51;

}
.cps-addons-note {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 19px;
}

@media (max-width: 768px) {
    .cps-addons-note {
        font-size: 14px;
    }
}

.cps-row:last-child { border-bottom: 0; padding-bottom: 6px; }
.cps-pay-now-row {
    border-bottom: 1px solid #e6e6e6;
}
.cps-pay-now-row #cps-pay-now-wrapper {
    margin: 0;
    border: none;
    padding: 0;
}
.cps-pay-now-row .cps-value {
    width: 100%;
    display: block;
    min-width: 0;
}
.cps-pay-now-row label {
	font-family: "Inter", sans-serif;
	font-style: normal;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 19px;
	display: flex;
	gap: 10px;
	text-align: left;
	align-items: center;
	color: #000 !important;
}

@media (max-width: 768px) {
    .cps-pay-now-row label {
        font-size: 12px;
    }
}

.cps-pay-now-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}
.cps-pay-now-row,
.cps-pay-now-row * {
    transition: none !important;
    animation: none !important;
}
.cps-label {
    font-weight: 800;
    color: #1f1f1f;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.cps-value {
    font-weight: 800;
    color: #81BD51;
    text-align: right;

}
.cps-row.order-total .cps-label { font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px; color: #000; }


@media (max-width: 768px) {
    .cps-row.order-total .cps-label {
        font-size: 16px;
    }
}
.cps-row.order-total .cps-value {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #81BD51;
}

@media (max-width: 768px) {
    .cps-row.order-total .cps-value {
        font-size: 16px;
    }
}

.cps-item del, .cps-item ins,
.cps-addon-item del, .cps-addon-item ins { font-weight: 800; }


.cps-coupon-toggle {
    color: #000000;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-decoration-line: underline;
}

.cps-coupon-form {
    margin-top: 12px;
}
.cps-coupon-form form.checkout_coupon {
    display: flex !important;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    max-width: 100%;
  }

.cps-coupon-form form.checkout_coupon .form-row {
    margin: 0;
    padding: 0;
    float: none !important;
}
.cps-coupon-form .form-row-first,
.cps-coupon-form .form-row-last {
    width: auto;
}
.cps-coupon-form .form-row-first {
    flex: 1 1 320px;
}
.cps-coupon-form .form-row-last {
    flex: 0 1 220px;
    min-width: 160px;
}
.cps-coupon-form .input-text {
    width: 100%;
    height: 44px;
    border: 1px solid #C0C0C0;
    border-radius: 10px;
    padding: 0 12px;
    font-family: "Inter", sans-serif;
}
.cps-coupon-form .button {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
   
    font-weight: 700;
    border-radius: 10px;
    border: 0;
    background: #202D4D;
    color: #fff;
  
    padding: 0 16px;
}
.cps-coupon-block {
	margin-top: 20px;
}
@media (max-width: 768px) {
    .cps-coupon-form form.checkout_coupon {
        flex-direction: column;
    }
    .cps-coupon-form .button {
        width: 100%;
        min-width: 0;
    }
}

/* Grupa 2: Środek */
#customer_details {  margin-bottom: 20px !important; order: 2;}

/* Grupa 3: Dół */
#payment {
	
	background: none !important;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	margin-top: 0 !important;
	order: 3;
}
#payment .wc_payment_methods {
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
#payment .wc_payment_methods li { 
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}
#payment .wc_payment_methods li:last-child { border-bottom: 0; }
#payment .payment_box {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
}
#payment .cps-payment-loader {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid #ededed;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    font-weight: 600;
}
#payment .cps-payment-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    border-top-color: #2b7bb9;
    display: inline-block;
    animation: cps-spin 0.8s linear infinite;
}
#payment.cps-payment-loading .cps-payment-loader { display: flex; }
#payment.cps-payment-loading .wc_payment_methods { opacity: 0; pointer-events: none; }

#payment .place-order {
    margin-top: 6px;
}

#customer_details .col-1 {
    width: 100%;
}

/* --- Layout kartowy dla modułów dodatkowych (kategoria 17) --- */
.cps-addon-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 18px 18px 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}
.cps-addon-row {
    align-items: center;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
}
.cps-addon-main { flex: 1; margin-right: 14px; }
.cps-addon-row .cps-addon-main { width: 100%; margin-right: 0; }
.cps-addon-heading { 
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; 
    justify-content: space-between;
    gap: 10px; 
}
.cps-addon-heading .cps-name { font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px; margin-right: 0; }
.cps-addon-desc { margin-top: 8px; color: #333; font-size: 0.95em; line-height: 1.5; }
.cps-addon-desc p { margin: 0 0 6px 0; }
.cps-addon-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
.cps-addon-desc.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
    overflow: visible;
}
.cps-desc-toggle {
    display: none;
    color: #2b7bb9;
    padding: 4px 0;
    font-size: 0.92em;
    cursor: pointer;
    text-decoration: underline;
}
.cps-desc-toggle:focus-visible {
    outline: 2px solid #2b7bb9;
    outline-offset: 2px;
}
.cps-addon-status { margin-top: 0; font-weight: 600; font-size: 0.95em; }
.cps-addon-status-added { display: none; color: #5ca64d; }
.cps-addon-status-add { display: inline-block; color: #000000; }
.cps-addon-row.active .cps-addon-status-added { display: inline-block; }
.cps-addon-row.active .cps-addon-status-add { display: none; }
.cps-addon-row .cps-price-container { 
    align-items: flex-end; 
    width: 100%;
    text-align: right;
    margin-top: 4px;
}
.cps-addon-heading .cps-price-container {
    width: auto;
    margin-top: 0;
}

.cps-addon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}
.cps-addon-toggle { 
    margin-right: 0; 
    width: 52px; 
    height: 28px; 
    flex-shrink: 0;
}
.cps-addon-toggle .cps-custom-check {
    width: 52px;
    height: 28px;
    border-radius: 40px;
    border: 1px solid #bfc2c7;
    background: #c6c9cf;
    position: relative;
    overflow: hidden;
}
.cps-addon-toggle .cps-custom-check:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    top: 1px;
    left: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: none;
}
.cps-addon-toggle .cps-custom-check:before {
    content: '';
    display: none;
}
.cps-addon-toggle .cps-checkbox:checked + .cps-custom-check {
    background: #8bc34a;
    border-color: #8bc34a;
}
.cps-addon-toggle .cps-checkbox:checked + .cps-custom-check:after {
    width: 24px;
    height: 24px;
    left: 2px;
    top: 1px;
    background: #fff;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transform: translateX(22px) rotate(0deg);
}
.cps-addon-toggle .cps-checkbox:checked + .cps-custom-check:before {
    content: '';
}
.cps-addon-card .cps-tooltip-wrapper,
.cps-addon-card .cps-tooltip-icon,
.cps-addon-card .cps-tooltip-box { display: none; }

@keyframes cps-spin {
    to { transform: rotate(360deg); }
}


.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
	border: none;
	padding: 0;
	margin: 0;
	text-align: left;
	border-radius: 5px;
}


.cps-row.order-total {
	padding: 0;
	margin-top: 24px;
}

.woocommerce-input-wrapper input.input-text  {
	border: 1px solid #C0C0C0 !important;
	border-radius: 10px !important;
}

.cps-order-review-empty {
	padding: 24px;
	background: #f5f5f5;
	border-radius: 12px;
	font-family: "Inter", sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #000;
	text-align: center;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
	border: 1px solid #C0C0C0;
	border-radius: 10px;
}

#billing_country_field {
	display: none;
}

.required_field {
	font-family: "Inter", sans-serif !important;
	font-style: normal;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 19px !important;
	color: #000 !important;
	margin-bottom: 12px;
}

.woocommerce form .form-row {
	padding: 0;
	margin: 0 0 40px;
}


#place_order {
	width: 100%;
    padding: 19px 40px;
background: #202D4D;
border-radius: 10px;
font-family: "Inter", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 22px;
}

#add_payment_method #payment div.form-row, .woocommerce-cart #payment div.form-row, .woocommerce-checkout #payment div.form-row {
	padding: 0;
}


@media (max-width: 768px) {
    #add_payment_method #payment ul.payment_methods, .woocommerce-cart #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods {
        text-align: left;
        padding: 0;
        border-bottom: none;
        margin: 0;
        list-style: none outside;
        border: none;
    }

    .tpay-blik0 .tpay_blik-payment-form {
        min-width: auto;
    }

    .tpay_blik-payment-form .spacer {
        display: none;
    }

    .tpay-blik0 .tpay_blik-payment-form.active .bottom {
        display: block;
        margin-left: 24px;
    }

    .blik-label {
        width: 100%;
    }

    .tpay-blik0 .tpay_blik-payment-form .top label {
        width: auto;
    }

    .woocommerce form .form-row {
        padding: 0;
        margin: 0 0 16px;
    }
 
    .woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
        margin-bottom: 0;
    }

    .form-row.place-order {
        margin-bottom: 0 !important;
    }
}

.zielony {
	color: #81BD51;
	font-weight: 700;
}

#wc-stripe-express-checkout-button-separator {
    order: 4;
}

#wc-stripe-express-checkout-element {
    order: 5;
}

/* --- Poprawki układu pól w formularzu (Imię i Nazwisko w jednej linii) --- */
@media (min-width: 768px) {
    .woocommerce-billing-fields__field-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .woocommerce-billing-fields__field-wrapper .form-row {
        width: 100%;
        margin-bottom: 0 !important;
    }
    
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last {
        width: calc(50% - 10px) !important;
    }
}

/* --- Dostosowanie czcionki w inputach --- */
.woocommerce-input-wrapper input.input-text,
.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="tel"] {
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    color: #000 !important;
}

/* Dostosowanie czcionki placeholderów */
::placeholder {
    font-family: "Inter", sans-serif !important;
    opacity: 0.6;
}

:-ms-input-placeholder {
    font-family: "Inter", sans-serif !important;
}

::-ms-input-placeholder {
    font-family: "Inter", sans-serif !important;
}

/* Style dla checkboxa akceptacji regulaminu i polityki prywatności (takie same jak cps_marketing_consent) */
#cps_privacy_policy_acceptance_field label.checkbox,
#cps_marketing_consent_field label.checkbox {
    display: block !important;
    position: relative;
    padding-left: 34px; /* Miejsce na checkbox */
    line-height: 1.4;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1f1f1f;
}

#cps_privacy_policy_acceptance_field input.cps-consent-check,
#cps_marketing_consent_field input.cps-consent-check {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0 !important;
}

/* Stylowanie linków w checkboxie akceptacji */
#cps_privacy_policy_acceptance_field label.checkbox a {
    color: inherit; /* Taki sam kolor jak treść */
    text-decoration: underline;
    transition: color 0.2s ease;
    white-space: nowrap; /* Nie łam linków */
}

#cps_privacy_policy_acceptance_field label.checkbox a:hover {
    color: #555;
    text-decoration: none;
}


.cps-row.cart-discount {
	font-family: "Inter", sans-serif;
}


.cart-discount .cps-label {
	font-weight: 500;
    font-family: "Inter", sans-serif;
}

.cart-discount  .cps-value {
	font-weight: 500;
    font-family: "Inter", sans-serif;
}

.cps-row.cart-discount-info {
	padding: 0 0 10px;
	margin-top: -6px;
}

.cart-discount-info .cps-label {
	flex: 0 0 0;
}

.cart-discount-info .cps-value {
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: #555;
}

.cps-row.cart-discount {
	padding-top: 20px;
}

.woocommerce-remove-coupon {
	color: #808080;
	font-size: 11px;
}


.cps-addon-desc.expanded a {
	color: #8bc34a;
	text-decoration: ;
}

#billing_company_field {
	font-family: "Inter", sans-serif !important;
	font-style: normal;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 19px !important;
	color: #000 !important;
	margin-bottom: 12px;
}

/* Nowe style dla toggle faktury */
.cps-company-toggle-label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #2374ff !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    cursor: pointer;
    font-weight: 300;
}
.cps-company-toggle-label span {
    text-decoration: underline;
}
.cps-company-toggle-label:hover span {
    text-decoration: none;
}
.cps-company-toggle-label input {
    display: none !important;
}

#cps-company-toggle-row {
	width: 100%;
}

@media (max-width: 330px) {
    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}
@media (max-width: 400px) {

    .cps-item.cart_item {
        flex-direction: column;
      }
      .cps-item-price {
        width: 100%;
      }
      .cps-addon-item.cart_item {
        flex-direction: column;
        gap: 0;
      }
      .cps-addon-price {
        width: 100%;
        justify-content: end;
      }
      .cps-addon-price-current {
      }
      .cps-item-price {
        flex-direction: row !important;
        align-items: end;
      }

      
.cps-item-price {
    display: block !important;
  }
  .cps-row.cps-pay-now-row {
    padding: 0;
    margin: 0;
  }
}