#mymega-shipping-estimate {
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 100%;
    grid-column: 1 / -1;
    pointer-events: auto;
    min-width: 0;
    margin: 12px 0 14px;
    border: 1px solid #dbc38b;
    border-radius: 12px;
    background: #fff;
    color: #2f271b;
    font: 14px/1.45 system-ui, sans-serif;
    text-align: start;
    box-shadow: 0 2px 6px rgba(67, 47, 11, .06);
}

.buttons-wrapper:has(> #mymega-shipping-estimate) {
    flex-wrap: wrap;
}

#mymega-shipping-estimate [hidden] {
    display: none !important;
}

#mymega-shipping-estimate > summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 14px;
    border-radius: 11px;
    background: linear-gradient(110deg, #fff7e3, #fffdf8 72%);
    cursor: pointer;
    list-style: none;
}

#mymega-shipping-estimate > summary::-webkit-details-marker {
    display: none;
}

#mymega-shipping-estimate > summary:hover {
    background: #fcf0d2;
}

#mymega-shipping-estimate[open] > summary {
    border-bottom: 1px solid #eee1c6;
    border-radius: 11px 11px 0 0;
}

#mymega-shipping-estimate :is(summary, input, select):focus-visible {
    outline: 2px solid #895c0f;
    outline-offset: 2px;
}

#mymega-shipping-estimate .mm-estimate-icon {
    display: grid;
    place-items: center;
    height: 38px;
    border-radius: 9px;
    background: #f6e4b7;
    color: #694705;
    font-size: 17px;
}

#mymega-shipping-estimate .mm-estimate-heading {
    display: grid;
    gap: 2px;
}

#mymega-shipping-estimate .mm-estimate-heading strong {
    font-size: 15px;
    font-weight: 700;
}

#mymega-shipping-estimate .mm-estimate-heading span {
    color: #685944;
    font-size: 12px;
}

#mymega-shipping-estimate .mm-estimate-chevron {
    width: 8px;
    height: 8px;
    border: solid #79510b;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}

#mymega-shipping-estimate[open] .mm-estimate-chevron {
    transform: translateY(2px) rotate(225deg);
}

#mymega-shipping-estimate .mm-estimate-body {
    padding: 14px;
}

#mymega-shipping-estimate .mm-estimate-fields {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
    gap: 10px;
}

#mymega-shipping-estimate label {
    display: block;
    margin: 0 0 5px;
    color: #4d3c21;
    font-size: 12px;
    font-weight: 650;
}

#mymega-shipping-estimate :is(input, select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #cfc1a3;
    border-radius: 7px;
    background: #fff;
    color: #2f271b;
    font: inherit;
    font-size: 16px;
}

#mymega-estimate-zone {
    display: inline-block;
    margin: 12px 0 0;
    padding: 4px 9px;
    border-radius: 6px;
    background: #fbf1d9;
    color: #60430d;
    font-size: 12px;
    font-weight: 650;
}

#mymega-estimate-status {
    margin: 9px 0 0;
    color: #685944;
    font-size: 12px;
}

#mymega-estimate-methods {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

#mymega-estimate-methods:empty {
    display: none;
}

#mymega-estimate-methods > li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #eee4cf;
    border-radius: 7px;
    background: #fffcf6;
    font-size: 13px;
}

#mymega-shipping-estimate .mm-estimate-method {
    min-width: 0;
    overflow-wrap: anywhere;
}

#mymega-shipping-estimate .mm-estimate-price {
    flex: 0 0 auto;
    max-width: 42%;
    color: #684a0f;
    font-variant-numeric: tabular-nums;
    text-align: end;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    #mymega-shipping-estimate .mm-estimate-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}
