﻿.form {
    display: flex;
    flex-direction: column;
}

.input-field {
    position: relative;
    margin: 20px;
}

    .input-field label {
        position: absolute;
        color: #8d8d8d;
        pointer-events: none;
        background-color: transparent;
        left: 15px;
        transform: translateY(0.6rem);
        transition: all 0.3s ease;
    }

    .input-field input {
        padding: 10px 15px;
        font-size: 1rem;
        border-radius: 8px;
        border: solid 1px #8d8d8d;
        letter-spacing: 1px;
        width: 100%;
    }

        .input-field input:focus, .input-field input:valid {
            outline: none;
            border: solid 1px #1f2937;
        }

            .input-field input:focus ~ label, .input-field input:not(:placeholder-shown) ~ label {
                transform: translateY(-51%) translateX(-10px) scale(0.8);
                background-color: #fff;
                padding: 0px 5px;
                color: #1f2937;
                font-weight: bold;
                letter-spacing: 1px;
                border: none;
                border-radius: 100px;
            }

.heading {
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.95rem;
}

.error-message {
    display: none;
    align-items: center;
    gap: 6px;
    color: #d93025;
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

    .error-message i {
        font-size: 1rem;
    }

.error-message-val {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #d93025;
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 500;
}

    .error-message-val.show {
        max-height: 50px; /* Suficient pentru o linie de eroare */
        opacity: 1;
        visibility: visible;
    }

    .error-message-val i {
        font-size: 1rem;
    }


/* animație opțională */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fee-card {
    align-items: center;
    width: 90%;
    height: auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 3px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 0 10px;
}

.fee-card-wrapper {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.fee-card-icon {
    width: 20%;
}

    .fee-card-icon .fee-icon-cart-box {
        width: 3em;
        height: 3em;
        text-align: center;
        padding: 15px 0px;
        margin: 0 auto;
    }

.fee-card-content {
    width: 80%;
}

.fee-product-name {
    font-size: 0.8em;
    color: #757575;
    padding: 10px 0 0 10px;
}

    .fee-product-name:hover {
        cursor: pointer;
        text-decoration: underline;
    }

.fee-product-price {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    padding: 0 0 10px 10px;
}

.fee-quantity {
    font-size: 0.7em;
    font-weight: 600;
    margin: 5px 10px 20px;
    transition: 0.4s ease-in-out;
}


/*STYLE CHECKBOX SELECTARE TAXA*/

/* Customize the label (the checkbox-btn) */
.checkbox-btn {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    /* Hide the browser's default checkbox */
    .checkbox-btn input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .checkbox-btn label {
        cursor: pointer;
        font-size: 14px;
    }
/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 15px;
    width: 15px;
    border: 2.5px solid #1f2937;
    transition: .2s linear;
}

.checkbox-btn input:checked ~ .checkmark {
    background-color: transparent;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    visibility: hidden;
    opacity: 0;
    left: 50%;
    top: 40%;
    width: 10px;
    height: 14px;
    border: 2px solid #0ea021;
    filter: drop-shadow(0px 0px 10px #0ea021);
    border-width: 0 2.5px 2.5px 0;
    transition: .2s linear;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.2);
}

/* Show the checkmark when checked */
.checkbox-btn input:checked ~ .checkmark:after {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    animation: pulse 1s ease-in;
}

.checkbox-btn input:checked ~ .checkmark {
    transform: rotate(45deg);
    border: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.6);
    }
}


/*STYLE PENTRU SUMA TOTALA*/

.editable-total {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1.1em;
    width: 120px;
    text-align: right;
    transition: border-color 0.3s ease;
}

    .editable-total:focus {
        border-color: #1f2937;
        outline: none;
        box-shadow: 0 0 5px #1f2937;
    }

.currency {
    margin-left: 6px;
    font-weight: bold;
    font-size: 1.1em;
    user-select: none;
}

.input-field input.touched:invalid ~ .error-message {
    display: block;
}

.hr-margin {
    margin: 10px;
}

.discount-strikethrough {
    color: red;
    text-decoration: line-through;
}

.hidden {
    display: none;
}

.fee-quantity-input {
    width: 50px;
    text-align: center;
}

/* Wrapper general */
.esp-flex-center-gap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Label text */
.esp-label-nowrap {
    white-space: nowrap;
    user-select: none;
    font-weight: 500; /* optional, mai vizibil */
}

/* Input suma finala */
.esp-input-total {
    width: 100px;
    text-align: center;
    font-size: 1em;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Text moneda */
.esp-currency-text {
    white-space: nowrap;
    font-weight: bold;
    color: #333;
}

/* Wrapper pentru mesajul de eroare */
.esp-error-wrapper {
    display: flex;
    justify-content: center;
}

/* Mesajul de eroare */
.esp-sum-error {
    color: red;
    margin-left: 10px;
    display: none; /* inițial ascuns */
    font-weight: 500;
    font-size: 0.95em;
}

/* Wrapper pentru mesajul de eroare */
.esp-no-places-wrapper {
    display: flex;
    justify-content: center;
}

/* Mesajul efectiv */
.esp-no-places-error {
    color: red;
    margin-left: 10px;
    font-size: 0.9rem;
    display: block; /* default block pentru <p> */
}

/* Wrapper text GDPR */
.esp-gdpr-text {
    color: inherit; /* păstrează culoarea implicită a textului */
    font-size: 0.95rem; /* ajustează după preferință */
    line-height: 1.4;
}

/* Link GDPR */
.esp-gdpr-link {
    color: #1f2937;
    text-decoration: underline;
}
/* Wrapper centrare buton */
.esp-pay-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem; /* ajustabil */
}

/* Buton de plată */
.esp-pay-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    background-color: #1f2937;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

    .esp-pay-btn:hover {
        background-color: #1e40af; /* darken on hover */
    }

/* Text în interiorul butonului */
.esp-btn-text {
    white-space: nowrap;
}

/* Container pentru icon-uri */
.esp-icon-container {
    display: flex;
    gap: 5px;
}

/* Icon-uri individuale */
.esp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.esp-gdpr-icon-box {
    /* Păstrăm eventuale alte proprietăți ale containerului deja existente */
}

    .esp-gdpr-icon-box i {
        color: #fff;
        font-size: 1.2rem;
    }

