/* --- 1. COMPACTARE FORMULAR CHECKOUT --- */
.woocommerce-checkout .form-row {
    margin-bottom: 5px !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* Aliniere Prenume și Nume pe același rând (Desktop) */
@media only screen and (min-width: 769px) {
    .woocommerce-checkout .form-row-first, 
    .woocommerce-checkout .form-row-last {
        width: 49% !important;
        display: inline-block !important;
        float: left !important;
    }
    .woocommerce-checkout .form-row-last {
        float: right !important;
    }
}

/* Stil Etichete (Labels) */
.woocommerce-checkout .form-row label {
    margin-bottom: 2px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    display: block !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
}

/* Stil Câmpuri Text și Select-uri Standard */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select {
    height: 34px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    margin: 0 !important;
    border: 1px solid #e5e5e5 !important;
}

/* --- 2. REZOLVARE FINALĂ ALINIERE JUDEȚ --- */
#billing_state_field {
    display: flex !important;
    flex-direction: column !important;
}

.select2-container--default .select2-selection--single {
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    padding-left: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    display: block !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* --- 3. REZOLVARE LIVRARE GLS (STÂNGA, FĂRĂ SUPRAPUNERE) --- */

/* Resetăm rândul de livrare să ocupe toată lățimea */
.woocommerce-shipping-totals, 
.woocommerce-shipping-totals th, 
.woocommerce-shipping-totals td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 5px 0 !
				
				/* Map button */
#gls-map-button{
	color:#000000;
	text-align:left;
}
		
		/* --- 4. REZOLVARE RADICALĂ ALINIERE LIVRARE --- */

/* Containerul principal al fiecărei metode */
#shipping_method li {
    display: block !important;
    position: relative !important;
    padding: 10px 0 10px 40px !important; /* Spațiu generos în stânga pentru butonul radio */
    margin-bottom: 10px !important;
    border-bottom: 1px solid #f0f0f0; /* Separator subtil între metode */
}

/* Butonul radio (cercul) - fixat absolut în stânga */
#shipping_method li input[type="radio"] {
    position: absolute !important;
    left: 10px !important;
    top: 15px !important;
    margin: 0 !important;
    z-index: 10;
}

/* Eticheta - forțăm textul să ocupe toată lățimea disponibilă */
#shipping_method li label {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* Logo-ul GLS - îl forțăm să stea pe rândul lui sau să nu mai plutească peste text */
#shipping_method li label img {
    display: block !important; /* Îl punem pe rând separat ca să nu mai încurce textul */
    margin: 5px 0 !important;
    max-height: 18px !important;
    width: auto !important
			}