.delivery-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.delivery-methods legend {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    color: #10233f;
    font-size: 14px;
    font-weight: 800;
}

.delivery-method {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 9px;
    border: 1px solid #d8e4e6;
    border-radius: 11px;
    background: #f8fbfb;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.delivery-method.is-selected {
    border-color: #08a789;
    background: #ebfaf5;
    box-shadow: 0 0 0 2px rgba(8, 167, 137, .1);
}

.delivery-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-method-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: #dff5ef;
    color: #07836f;
    font-size: 17px;
    font-weight: 900;
}

.delivery-method b,
.delivery-method small {
    display: block;
}

.delivery-method b {
    color: #10233f;
    font-size: 12px;
    line-height: 1.2;
}

.delivery-method small {
    margin-top: 2px;
    color: #71818f;
    font-size: 10px;
    line-height: 1.2;
}

.delivery-panel {
    padding: 10px;
    border: 1px solid #dce7e8;
    border-radius: 14px;
    background: #fbfdfd;
}

.delivery-panel[hidden] {
    display: none !important;
}

.pickup-panel p {
    margin: 9px 0 0;
    color: #667b85;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .delivery-methods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .delivery-method {
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 7px 4px;
        text-align: center;
    }

    .delivery-method-icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .delivery-method b {
        font-size: 10px;
        line-height: 1.12;
    }

    .delivery-method small {
        display: none;
    }

    .delivery-methods legend {
        font-size: 12px;
    }
}
