.speedy_user_address, #speedy_edit_user_address {
    padding:24px;
    border-style: solid;
    border-width: 1px;
    border-color: #ecefec;
    border-radius:8px;
    margin-top:24px;
}

#speedy-title-text {
    font-weight:bold;
    font-size:21px;
}


:is(#speedy_custom_checkout_field, #speedy_edit_user_address) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

#speedy-description {
    display:none;
}

#speedy_edit_user_address form {
    grid-column: span 12 / span 12;
}

.speedy_save_receiver_address {
    border-radius: 12px;
    padding: 8px;
    display: inline-flex
;
    border: 1px solid #000;
    text-align: center;
    display: flex
;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 0;
    color: #fff;
    background: #3E5D40;
    height: 52px;
}
/* Common span helpers 

    grid-column: span 12 / span 12;

    grid-column: span 6 / span 6;

    grid-column: span 4 / span 4;

    grid-column: span 3 / span 3;

*/
/* Optional responsive example */
@media (max-width: 1024px) {
    .lg-col-span-6 {
        grid-column: span 12 / span 12;
    }
}
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #333;
    grid-column: span 12 / span 12;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to span label {
    padding:16px;
    display:flex;
    gap:12px;
    width:100%;
    border-radius:12px;
    background-color:#fff;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to span input {
    display:none !important;
}


:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to .woocommerce-input-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

@media only screen and (max-width:480px) {
    :is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to .woocommerce-input-wrapper {
        flex-direction: column;
        gap:16px;
    }
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) h3 {
    font-size:19px;
    font-weight:bold;
    margin-bottom:8px;
    color:#000;
    grid-column: span 12 / span 12;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy-description {
    margin-bottom:12px;
    grid-column: span 12 / span 12;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row {
    width:100%;
    margin-bottom:16px;
    display:flex;
    flex-direction: column;
    gap:8px;
    grid-column: span 12 / span 12;
}
@media only screen and (max-width:480px) {
    :is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row {
        margin-bottom:4px;
    }
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row label {
    font-size:14px;
    font-weight: bold;

}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_services_errors {
    grid-column: span 12 / span 12;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_services_errors p {
    padding:12px;
    background-color:rgba(255, 0, 0, 0.137);
    border:1px solid red;
    margin-bottom:24px;
    border-radius:12px;
    font-size:14px;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row select,
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row input,
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row .select2-selection.select2-selection--single {
    padding:16px;
    font-size:14px;
    background-color: #fff;
    border:1px solid #E6E6E6;
    border-radius: 8px;
    width:100%;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row .select2-selection__rendered {
    line-height:21px !important;
    white-space: nowrap !important;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row .select2-selection__arrow {
    width: 40px !important;
    height:52px !important;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .form-row .select2-selection__clear {
    display:none;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_street_no_field,
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_block_no_field {
    grid-column: span 3 / span 3;
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_entrance_no_field,
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_floor_no_field,
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_apartment_no_field {
    grid-column: span 4 / span 4;
}

@media only screen and (max-width:480px) {
    :is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_entrance_no_field {
        grid-column: span 6 / span 6;
    } 
    
    :is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_floor_no_field {
        grid-column: span 6 / span 6;
    } 
    
    :is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_apartment_no_field {
        grid-column: span 12 / span 12;
    }
}

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_street_id_field,
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_complex_id_field {
    grid-column: span 9 / span 9;
}


:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_address_note_field {
    grid-column: span 12 / span 12;
}

/*#speedy_custom_checkout_field #speedy_address_note_field, #speedy_custom_checkout_field #speedy_destination_services_id_field {
    display:none !important;
}*/

:is(#speedy_custom_checkout_field, #speedy_edit_user_address) #speedy_shipping_to_field {
    padding: 20px;
    border-radius: 12px;
    background: #ecefec;
}

.woocommerce-additional-fields h3 {
    margin-top:16px;
    margin-bottom:12px;
    font-weight:Bold;
}

/* Hide default radio */
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to_input {
    display: none !important;
}

/* Style labels like cards/buttons */
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to_input + label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    outline: 1px solid #fff;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-right: 12px;
}

/* Hover */
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to_input + label:hover {
    outline: 2px solid #3E5D40;
}

/* Active state */
:is(#speedy_custom_checkout_field, #speedy_edit_user_address) .speedy_shipping_to_input:checked + label {
    outline: 2px solid #3E5D40;
    background: #DAF2DA;
}

/* Icons */
#speedy_shipping_to_ADDRESS + label::before,
#speedy_shipping_to_OFFICE + label::before,
#speedy_shipping_to_APT + label::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Address icon */
#speedy_shipping_to_ADDRESS + label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10L12 3l9 7v11a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V10z'/%3E%3C/svg%3E");
}

/* Office icon */
#speedy_shipping_to_OFFICE + label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath d='M4 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16M9 21V9h6v12M2 21h20'/%3E%3C/svg%3E");
}

/* APT / Locker icon */
#speedy_shipping_to_APT + label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h18v13H3z'/%3E%3Cpath d='M8 7V4h8v3'/%3E%3C/svg%3E");
}


/*select options customization*/
.select2-results__options {
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:8px;
}


.select2-results__options li {
    padding: 12px;
    border-radius: 8px;
    background: #ececec;
}


.select2-dropdown {
    border:1px solid #E6E6E6;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color:#3e5d40;
}

.speedy_save_receiver_address {
    border-radius:12px;
    padding:8px;
    display:inline-flex;
    border:1px solid #000;
    text-align:center;
}

#speedyLoader {
    border-top: 16px solid #3e5d40 !important;
}


/*field validation*/

.woocommerce-invalid .select2-selection, .woocommerce-invalid input, .woocommerce-invalid select {
    border-color: red !important;
    background-color:rgba(255, 0, 0, 0.075);
}

.checkout-inline-error-message {
    color:red;
}