.lg-auth-form,
.lg-sf-orders {
    max-width: 40rem;
}

.lg-address-form {
    max-width: none;
    display: block;
    float: none;
    width: 100%;
}

.lg-address-form .lg-form-section {
    display: block;
    margin: 0 0 2em;
}

.lg-address-form .lg-form-section > h2 {
    margin: 0 0 0.4em;
}

.lg-address-form .lg-form-intro {
    margin: 0 0 1.25em;
}

.lg-address-form .lg-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1em 1.5em;
    margin: 0 0 1em;
}

.lg-address-form .lg-form-grid:last-child {
    margin-bottom: 0;
}

.lg-address-form .lg-field-span,
.lg-address-form .lg-address-update > .form-row {
    grid-column: 1 / -1;
}

.lg-address-form .form-row {
    float: none;
    width: auto;
    max-width: none;
    margin: 0 0 1rem;
    min-width: 0;
    padding: 0;
}

.lg-address-form .lg-form-grid > .form-row {
    margin-bottom: 0;
}

.lg-address-form .form-row input[type='text'],
.lg-address-form .form-row input[type='email'],
.lg-address-form .form-row select,
.lg-address-form .form-row .select2-container {
    width: 100%;
    max-width: none;
}

.lg-auth-form .form-row,
.lg-address-block .form-row {
    margin-bottom: 1rem;
}

.lg-auth-form label,
.lg-address-form label,
.lg-address-block label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35em;
}

.lg-malta-post-info {
    margin: 0 0 2em;
}

.lg-malta-post-info p {
    margin: 0 0 0.5em;
}

.lg-address-form .lg-form-actions {
    margin: 0;
    clear: both;
}

@media screen and (max-width: 48em) {
    .lg-address-form .lg-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.lg-phone-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.lg-phone-row select,
.lg-phone-row .select2-container {
    flex: 0 0 11rem;
    width: 11rem !important;
    max-width: 11rem;
}

.lg-address-form .lg-phone-row input[type='text'],
.lg-phone-row input[type='text'] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.lg-hint,
.lg-notice {
    margin: 0.75rem 0;
}

.lg-notice-error {
    color: #8a1f11;
}

.lg-notice-success {
    color: #1d5a2b;
}

.lg-address-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.lg-address-string {
    margin: 0.5rem 0 1rem;
}

.lg-field-error {
    display: none;
    color: #8a1f11;
}

.lg-address-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.lg-third-address {
    margin: 1rem 0;
}

.lg-sf-orders {
    width: 100%;
    border-collapse: collapse;
}

.lg-sf-orders th,
.lg-sf-orders td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.lg-sf-orders thead {
    background: #d3df84;
}

.lg-is-busy {
    pointer-events: none;
}

button.lg-busy-label,
.button.lg-busy-label,
input[type='submit'].lg-busy-label {
    cursor: wait;
    opacity: 0.75;
}

.lg-busy-label::after {
    content: '';
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-left: 0.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: lg-spin 0.6s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .lg-busy-label::after {
        animation: none;
        border-right-color: currentColor;
        opacity: 0.5;
    }
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields {
    display: none;
}

.lg-checkout-section-title {
    margin: 0 0 0.5em;
    color: #182f5b;
}

.lg-checkout-contact {
    margin: 0 0 1.25em;
    color: #182f5b;
}

.lg-checkout-addresses,
.lg-delivery {
    margin: 0 0 2em;
}

.lg-address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.lg-address-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.lg-address-card__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.lg-address-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 7.5rem;
    padding: 1em 1.15em 1em 2.75em;
    border: 1px solid #00427f;
    border-radius: 1rem;
    background: #ffffff;
    color: #00427f;
    transition:
        0.15s border-color ease,
        0.15s background-color ease,
        0.15s box-shadow ease;
}

.lg-address-card__body::before {
    content: '';
    position: absolute;
    top: 1.15em;
    left: 1em;
    width: 1em;
    height: 1em;
    border: 2px solid #00427f;
    border-radius: 50%;
    background: #ffffff;
}

.lg-address-card:has(.lg-address-card__input:checked) .lg-address-card__body,
.lg-address-card.is-selected .lg-address-card__body,
.lg-address-search.is-selected {
    background: #f7f9ec;
    box-shadow: 0 0 0 2px #d3df84;
}

.lg-address-card:has(.lg-address-card__input:checked) .lg-address-card__body::before,
.lg-address-card.is-selected .lg-address-card__body::before {
    background: #00427f;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.lg-address-card__input:focus-visible + .lg-address-card__body {
    outline: 2px solid #00427f;
    outline-offset: 2px;
}

.lg-address-card__tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lg-address-card__line {
    font-weight: 600;
    line-height: 1.3;
}

.lg-address-card__line--muted {
    font-weight: 400;
    color: #182f5b;
}

.lg-address-card__slots {
    margin-top: auto;
    padding-top: 0.5em;
    font-size: 0.85em;
    color: #182f5b;
}

.lg-address-search {
    padding: 1em 1.15em;
    border: 1px dashed #00427f;
    border-radius: 1rem;
    background: #ffffff;
    margin: 0 0 1rem;
}

.lg-address-search__label {
    display: block;
    font-weight: 700;
    margin: 0 0 0.5em;
    color: #00427f;
}

.lg-address-search .select2-container {
    width: 100% !important;
}

.lg-checkout-callout {
    margin: 0 0 0.75em;
    padding: 0.9em 1.1em;
    background: #00427f;
    color: #ffffff;
    border-radius: 0.75rem;
}

.lg-checkout-edit-link {
    margin: 0;
}

.lg-checkout-edit-link a {
    color: #00427f;
    text-decoration: underline;
}

.lg-delivery-intro {
    margin: 0 0 1em;
}

.lg-delivery-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em 0.6em;
    align-items: baseline;
    margin: 0 0 1em;
    padding: 0.75em 1em;
    background: #d3df84;
    color: #00427f;
    border-radius: 0.75rem;
}

.lg-delivery-selected[hidden] {
    display: none;
}

.lg-delivery-calendar {
    max-width: 22rem;
}

.lg-delivery-calendar .ui-datepicker {
    width: 100%;
    background: #ffffff;
    border: 1px solid #00427f;
    border-radius: 1rem;
    padding: 0.9rem;
    display: block;
}

.lg-delivery-calendar .ui-datepicker-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    margin: 0 0 0.75rem;
    background: transparent;
    color: #00427f;
}

.lg-delivery-calendar .ui-datepicker-title {
    font-weight: 700;
    text-align: center;
}

.lg-delivery-calendar .ui-datepicker-prev,
.lg-delivery-calendar .ui-datepicker-next {
    position: absolute;
    top: 50%;
    width: 2rem;
    height: 2rem;
    margin-top: -1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #00427f;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.lg-delivery-calendar .ui-datepicker-prev {
    left: 0;
}

.lg-delivery-calendar .ui-datepicker-next {
    right: 0;
}

.lg-delivery-calendar .ui-datepicker-prev span,
.lg-delivery-calendar .ui-datepicker-next span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.lg-delivery-calendar .ui-datepicker-prev::before,
.lg-delivery-calendar .ui-datepicker-next::before {
    font-size: 1.35rem;
    line-height: 1;
}

.lg-delivery-calendar .ui-datepicker-prev::before {
    content: '‹';
}

.lg-delivery-calendar .ui-datepicker-next::before {
    content: '›';
}

.lg-delivery-calendar table,
.lg-delivery-calendar table.ui-datepicker-calendar {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    overflow: visible;
    margin: 0;
}

.lg-delivery-calendar table.ui-datepicker-calendar thead th,
.lg-delivery-calendar table.ui-datepicker-calendar tbody tr:nth-child(n) td {
    background: transparent;
    color: #00427f;
    border: 0;
    padding: 0.15rem;
    text-align: center;
    font-weight: 700;
    width: auto;
}

.lg-delivery-calendar table.ui-datepicker-calendar tbody tr:nth-child(n) td {
    font-weight: 600;
}

.lg-delivery-calendar td a,
.lg-delivery-calendar td span {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0 auto;
    border-radius: 50%;
    text-decoration: none;
}

.lg-delivery-calendar td.lg-cal-available a,
.lg-delivery-calendar td a.ui-state-default {
    background: #f5f5f5;
    color: #00427f;
}

.lg-delivery-calendar td a.ui-state-default:hover {
    background: #d3df84;
    color: #00427f;
}

.lg-delivery-calendar td a.ui-state-active {
    background: #00427f;
    color: #ffffff;
}

.lg-delivery-calendar td.ui-datepicker-today a.ui-state-default:not(.ui-state-active) {
    box-shadow: inset 0 0 0 2px #d3df84;
}

.lg-delivery-calendar td.ui-datepicker-other-month span,
.lg-delivery-calendar td.lg-cal-disabled span,
.lg-delivery-calendar td.ui-datepicker-unselectable span {
    color: #b5b5b5;
    background: transparent;
    font-weight: 400;
}

.lg-notes-required .woocommerce-additional-fields__field-wrapper {
    padding: 1em;
    border: 2px solid #d3df84;
    border-radius: 0.75rem;
}

.woocommerce-checkout .select2-container .select2-selection--single {
    height: 2.2em;
    border: 1px solid #00427f;
    border-radius: 0.7em;
    background: #f5f5f5;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.3em;
    padding-left: 0.8em;
    color: #000000;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 2.2em;
}
