
/*Shop Cart*/

/*CART TABLE*/

.cart_table table {
    margin-bottom: 0;
}

.darkcolor{
    color:var(--text-dark);
    font-weight: normal;
    font-family: Poppins, "sans-serif";
}

.border-radius {
    border-radius: 10px;
}

.border-radius-50 {
    border-radius: 50px;
}
.classic-border{
    border: 2px solid var(--text-light);
}

.cart_table .table-responsive thead {
    background: #f9f9f9;
}

.cart_table .table-responsive thead tr>th {
    padding: 15px 20px;
    border-bottom-width: 1px;
    font-family: Poppins, sans-serif;
    font-weight:bold;
}

.cart_table .table-responsive tbody tr>td {
    vertical-align: middle;
    padding: 20px;
}

.cart_table .product-name {
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    font-weight: bolder;
    background-color: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cart_table .product-des{
    color: var(--text-dark);
    font-size: 14px;
    font-family: Poppins, sans-serif;
    font-weight: normal;
}

.cart_table .amount{
    font-size: 20px;
    font-family: Poppins, sans-serif;
    font-weight: normal;
    color: var(--text-dark);
}

.cart_table .quote input{
    margin: 0;
    width: 140px;
}


.cart_table .btn-close i {
    display: inline-block;
    color: var(--text-dark);
    font-size: 20px;
    -webkit-transition: .8s ease;
    -o-transition: .8s ease;
    transition: .8s ease;
}

.cart_table .btn-close:hover i{
    color: var(--primary-color);
}

.cart_table .shopping-product {
    display: inline-block;
    height: 70px;
    width: 70px;
    margin-right: 10px;
}

.cart_table .shopping-product>img {
    width: 100%;
}

.cart_table .d-table:hover .product-name,
.cart_table .d-table:focus .product-name {
    color: var(--primary-color);
}

.apply_coupon {
    border: .5px solid #dee2e6;
    border-top: none;
    padding: 20px;
}

.apply_coupon .coupon>form input {
    height: 42px;
    margin-bottom: 0;
    margin-right: 5px;
}

.apply_coupon .coupon>form .form-group>input {
    width: 100%;
}


.totals {
    padding: 40px 15px;
    border: 1px solid #d1d1d1;
}

.totals .table-responsive tr>td {
    border: none;
    padding: 17px 10px;
}

.totals form.findus .form-control {
    margin-bottom: 15px;
    padding-left: 15px;
    border-color: #a5a5a5;
}
.cart-total tbody tr td{
    width: 100% !important;
}
.totals form.findus .select:after{
    color: #A5A5A5;
}

form.findus .form-control, form.findus textarea {
    padding: 12px 0;
    margin-bottom: 30px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #a5a5a5;
    border-radius: 0;
    position: relative;
    -webkit-transition: border .9s ease;
    -o-transition: border .9s ease;
    transition: border .9s ease;
}

.findus a{
    background: #862359;
}

.findus a:hover, .findus a:active , .findus a:focus {
    color: var(--text-light);
}

.shop-cart .calculate-shipping{
    padding: 20px;
    border: .5px solid #dee2e6;
}
.shop-cart .calculate-shipping h4{
    font-size: 24px;
    margin-bottom: 16px;
}
.shop-cart .calculate-shipping form input{
    padding: 8px;
}
.shop-cart .calculate-shipping form select{
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 300;
    margin-bottom: 0;
    border: 0;
    padding: 12px 15px;
    -webkit-appearance: none;
}
.shop-cart .calculate-shipping form .form-control {
    width: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding: 1.5rem .75rem;
    position: relative;
    font-size: 16px;
    color: #9c9c9c;
    border: 1px solid #d1d1d1;
    margin-bottom: 0;
    font-family: "Poppins", sans-serif;
}
.shop-cart .calculate-shipping form .select:after {
    content: "\EA45";
    font-family: LineIcons;
    color: #3e3e3e;
    font-size: 14px;
    padding: 9px 8px;
    position: absolute;
    right: 0;
    top: 4px;
    background: transparent;
    z-index: 1;
    text-align: center;
    width: 10%;
    height: 100%;
    pointer-events: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.shop-cart .calculate-shipping form input::-webkit-input-placeholder {
    color: #9c9c9c;
    font-family: Poppins, sans-serif;
    font-weight: 100;
}

.shop-cart .calculate-shipping form input::-moz-placeholder {
    color: #9c9c9c;
    font-family: Poppins, sans-serif;
    font-weight: 100;
}

.shop-cart .calculate-shipping form input:-ms-input-placeholder {
    color: #9c9c9c;
    font-family: Poppins, sans-serif;
    font-weight: 100;
}

.shop-cart .calculate-shipping form input::-ms-input-placeholder {
    color: #9c9c9c;
    font-family: Poppins, sans-serif;
    font-weight: 100;
}

.shop-cart .calculate-shipping form input::placeholder {
    color: #9c9c9c;
    font-family: Poppins, sans-serif;
    font-weight: 100;
}
.shop-cart .card-total{
    padding: 20px;
    border:.5px solid #dee2e6;
}
.shop-cart .card-total h4{
    font-size: 24px;
    margin-bottom: 10px;
    font-family: Poppins, "sans-serif";
    color: var(--text-dark);
}
.shop-cart .card-total table tr{
    margin-bottom: 1rem;
}

.shop-cart .card-total table tr td ul{
    margin-bottom: 0px;
}
.shop-cart .card-total table tr td{
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    border: solid 1px transparent;
    padding-bottom: 17.5px;
    padding-left: 0;
}
.shop-cart .card-total table tr td:first-child{
    font-size: 14px;
    font-weight: 600;
    font-family: Poppins, sans-serif;
    color: var(--text-dark);
}
.shop-cart .card-total table tr td ul li{
    list-style: none;
}

.shop-cart .card-total .custom-control-input:checked~.custom-control-label::before {
    color: var(--text-light);
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}



/* Payment method cards on the order review (issue #32, F17: moved
   here from an inline <style> block in Partials/Cart/PaymentOptions.html) */

.payment-options {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.payment-method-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-card:hover {
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.payment-method-card input:checked + label {
    font-weight: 500;
}

.payment-method-card input:checked ~ .form-check-label {
    color: #0d6efd;
}

.payment-method-card.form-check input:checked + label {
    color: inherit;
}

.payment-method-card:has(input:checked) {
    border-color: #0d6efd;
    background-color: #f0f6ff;
}

.payment-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    color: #495057;
    flex-shrink: 0;
}

.payment-method-card:has(input:checked) .payment-method-icon {
    background-color: #0d6efd;
    color: #ffffff;
}

.payment-method-card label {
    margin-bottom: 0;
    cursor: pointer;
}

.payment-method-card label strong {
    font-size: 1rem;
    color: #212529;
}

.payment-method-card label small {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .payment-options {
        padding: 1rem;
    }

    .payment-method-card {
        padding: 0.875rem;
    }

    .payment-method-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
}

/* Checkout steps (issue #80): one container width for cart, address and
   review; prices stay on one line; buttons right-aligned in one row */
.shop-checkout .amount {
    white-space: nowrap;
}

.shop-checkout .typo3-messages {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.shop-checkout .typo3-messages > li {
    border-radius: 0.375rem;
}

.shop-checkout .required,
.shop-checkout .required-note {
    color: #6c757d;
}

.shop-checkout .required {
    margin-left: 0.15em;
}

.shop-checkout .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.shop-checkout .actions .btn {
    min-width: 8rem;
}

.shop-checkout .actions .btn-primary {
    font-weight: 700;
}

.shop-checkout .actions .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.shop-checkout .actions .btn-outline-primary:hover,
.shop-checkout .actions .btn-outline-primary:focus {
    color: #fff;
    background-color: var(--primary-color);
}

/* the whole tile is the click target: the label covers it */
.payment-method-card .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

.payment-method-card label::after {
    content: "";
    position: absolute;
    inset: 0;
}

.payment-method-card:has(input:focus-visible) {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.checkout-consents .form-check-input:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.legal-guarantee-label img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
}

@media (min-width: 992px) {
    .legal-guarantee-label img {
        margin-left: auto;
    }
}

.shop-checkout .customer-address,
.shop-checkout .payment-options,
.shop-checkout .checkout-consents {
    text-align: start;
}

.payment-method-card.form-check {
    padding: 1rem;
}

.checkout-consents .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding-left: 0;
}

.checkout-consents .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0.3em 0 0;
}

/* Bootstrap pulls .form-check-input out by -1.5em; inside the flex row it
   must stay in flow */
.payment-method-card.form-check .form-check-input,
.checkout-consents .form-check .form-check-input {
    position: relative;
    z-index: 1;
    margin-left: 0;
}

/* Account entry of the checkout (issue #96): log in, create an account or
   go on as a guest — above the address form. */
.shop-checkout .checkout-account {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f9f9f9;
}

.shop-checkout .checkout-account--logged-in {
    padding: 1rem 1.5rem;
}

.shop-checkout .checkout-account__title {
    margin-bottom: 1.25rem;
    padding-top: 0;
    font-size: 1.25rem;
}

.shop-checkout .checkout-account__subtitle {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.shop-checkout .checkout-account__option + .checkout-account__option {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

@media (min-width: 768px) {
    .shop-checkout .checkout-account__option + .checkout-account__option {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        border-left: 1px solid #dee2e6;
    }
}

.shop-checkout .checkout-account__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.shop-checkout .checkout-account__link {
    margin-left: 0.5rem;
    white-space: nowrap;
}

.shop-checkout .checkout-account__guest {
    font-weight: 700;
}

.shop-checkout .checkout-account__register {
    margin-bottom: 0.5rem;
}

/* Issue #97: the Switzerland note of the address form follows the country
   select without a reload; .is-selected keeps it visible where :has() is
   not supported and Switzerland was already chosen. */
.shop-checkout .checkout-tax-free-export-note {
    display: none;
}

.shop-checkout .checkout-tax-free-export-note.is-selected,
.shop-checkout form:has(select[name$="[country]"] option[value="CH"]:checked) .checkout-tax-free-export-note {
    display: block;
}

.shop-checkout form:has(select[name$="[country]"] option[value="AT"]:checked) .checkout-tax-free-export-note.is-selected,
.shop-checkout form:has(select[name$="[country]"] option[value="DE"]:checked) .checkout-tax-free-export-note.is-selected {
    display: none;
}

/* Issue #124: "save the address in my account" only means something while
   "please create an account for me" is ticked. Hidden otherwise — where
   :has() is not supported it simply stays visible, the server ignores it
   without the first box. */
.shop-checkout .checkout-account-request:has(#checkout-create-account:not(:checked)) .checkout-account-request__address {
    display: none;
}
