/* Reliable shipping selection for iPhone / Safari */

.eh-shipping-list {
    border: 1px solid #d8dde6;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.eh-ship-btn {
    position: relative;
    width: 100%;
    min-height: 74px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;

    padding: 17px 18px 17px 54px;

    margin: 0;

    border: 0;
    border-bottom: 1px solid #e5e8ee;

    background: #fff;

    color: #172033;

    font: inherit;

    text-align: left;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    -webkit-tap-highlight-color: transparent;
}

.eh-ship-btn:last-child {
    border-bottom: 0;
}

.eh-ship-btn span {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.eh-ship-btn strong {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}


/* Empty radio circle */

.eh-ship-btn::before {
    content: "";

    position: absolute;

    left: 18px;
    top: 50%;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    border: 2px solid #adb5c2;
    border-radius: 50%;

    background: #fff;
}


/* Selected shipping row */

.eh-ship-btn.selected {
    background: #f7f8fb;

    box-shadow:
        inset 0 0 0 1px #343d63;
}


/* Selected radio circle */

.eh-ship-btn.selected::before {
    border: 6px solid #343d63;
}


/* Press feedback on phone */

.eh-ship-btn:active {
    background: #f1f3f7;
}


@media (max-width: 600px) {

    .eh-ship-btn {
        min-height: 78px;

        padding:
            16px
            16px
            16px
            50px;
    }

    .eh-ship-btn::before {
        left: 16px;
    }

    .eh-ship-btn span {
        font-size: 14px;
    }

    .eh-ship-btn strong {
        font-size: 15px;
    }
}
/* FINAL SHIPPING METHOD DESIGN
   Keeps button functionality but makes it look like a professional checkout */

#ehShippingMethods .eh-shipping-list {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;

    border: 1px solid #d8dde6 !important;
    border-radius: 14px !important;

    background: #fff !important;
    overflow: hidden !important;

    box-shadow: none !important;
}


/* Reset WordPress/Astra button styling */

#ehShippingMethods .eh-ship-btn {
    position: relative !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    min-height: 68px !important;

    margin: 0 !important;
    padding: 15px 18px 15px 54px !important;

    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e5e8ee !important;

    background: #fff !important;
    background-image: none !important;

    color: #172033 !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;

    text-align: left !important;
    text-transform: none !important;

    box-shadow: none !important;

    cursor: pointer !important;

    -webkit-appearance: none !important;
    appearance: none !important;

    -webkit-tap-highlight-color: transparent !important;
}


#ehShippingMethods .eh-ship-btn:last-child {
    border-bottom: 0 !important;
}


/* Shipping method name */

#ehShippingMethods .eh-ship-btn span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #172033 !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    background: transparent !important;
}


/* Price */

#ehShippingMethods .eh-ship-btn strong {
    display: block !important;

    margin: 0 !important;
    padding-left: 15px !important;

    color: #111827 !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    background: transparent !important;
}


/* Radio-style empty circle */

#ehShippingMethods .eh-ship-btn::before {
    content: "" !important;

    position: absolute !important;

    left: 18px !important;
    top: 50% !important;

    width: 20px !important;
    height: 20px !important;

    margin: 0 !important;

    transform: translateY(-50%) !important;

    border: 2px solid #aab2bf !important;
    border-radius: 50% !important;

    background: #fff !important;

    box-sizing: border-box !important;
}


/* Selected row */

#ehShippingMethods .eh-ship-btn.selected {
    background: #f6f7fa !important;

    color: #172033 !important;

    box-shadow:
        inset 0 0 0 1px #343d63 !important;
}


/* Selected circle */

#ehShippingMethods .eh-ship-btn.selected::before {
    border: 6px solid #343d63 !important;

    background: #fff !important;
}


/* Hover */

#ehShippingMethods .eh-ship-btn:hover {
    background: #f8f9fb !important;
}


/* Mobile */

@media (max-width: 600px) {

    #ehShippingMethods .eh-ship-btn {
        min-height: 72px !important;

        padding:
            15px
            15px
            15px
            50px !important;
    }

    #ehShippingMethods .eh-ship-btn::before {
        left: 16px !important;
    }

    #ehShippingMethods .eh-ship-btn span {
        font-size: 14px !important;
    }

    #ehShippingMethods .eh-ship-btn strong {
        font-size: 15px !important;
    }
}

