/**
 * Copyright (c) Storetown Media. All rights reserved.
 * See LICENSE for license details.
 *
 * What STM Shipping shows in the shop: the shipping line of a product, the free-shipping line of the cart, the note
 * under a method in the checkout and the table of shipping costs. It takes font and colour from the theme and adds
 * spacing and hairlines only, so it sits in Luma and in Hyvä without looking brought in.
 */
.stm-shipping-line { font-size: .9375em; line-height: 1.5; margin: .6em 0 1em; }
.stm-shipping-line__lead { font-weight: 600; }
.stm-shipping-line__part::before { content: "\00b7\00a0"; opacity: .6; }
.stm-shipping-line__link { display: block; margin-top: .15em; text-decoration: underline; text-underline-offset: .15em; }

.stm-shipping-progress { border-bottom: 1px solid rgba(128, 128, 128, .35); border-top: 1px solid rgba(128, 128, 128, .35); font-size: 1em; line-height: 1.5; margin: 0 0 1.25em; padding: .7em 0; }
.stm-shipping-progress.is-reached { font-weight: 600; }

.stm-shipping-calc { border-bottom: 1px solid rgba(128, 128, 128, .35); border-top: 1px solid rgba(128, 128, 128, .35); font-size: .9375em; line-height: 1.5; margin: 0 0 1.25em; padding: .6em 0; }
.stm-shipping-calc > summary { cursor: pointer; font-weight: 600; }
.stm-shipping-calc__form { align-items: flex-end; display: flex; flex-wrap: wrap; gap: .6em 1em; margin: .8em 0 0; }
.stm-shipping-calc__form label { display: flex; flex-direction: column; gap: .2em; }
.stm-shipping-calc__form label span { font-size: .875em; opacity: .8; }
.stm-shipping-calc__form select, .stm-shipping-calc__form input { max-width: 14em; }
/* Hyva resets buttons to plain text; the border makes this one a button in every theme */
.stm-shipping-calc__form button { border: 1px solid currentColor; border-radius: 2px; cursor: pointer; font: inherit; line-height: 1.4; padding: .45em 1em; }
.stm-shipping-calc__result { margin-top: .8em; }
.stm-shipping-calc__list { list-style: none; margin: 0; padding: 0; }
.stm-shipping-calc__list li { border-top: 1px solid rgba(128, 128, 128, .25); display: grid; gap: 0 1.5em; grid-template-columns: minmax(0, 1fr) auto; margin: 0; padding: .5em 0; }
.stm-shipping-calc__title { font-weight: 600; }
.stm-shipping-calc__price { font-variant-numeric: tabular-nums; text-align: right; }
.stm-shipping-calc__note { font-size: .875em; grid-column: 1 / -1; opacity: .8; }
.stm-shipping-calc__none { margin: 0; }

.stm-shipping-note { font-size: .9375em; line-height: 1.5; margin: .75em 0 0; opacity: .85; }

.stm-shipping-rates { margin: 1.25em 0; }
.stm-shipping-table { border-collapse: collapse; margin: 0 0 2em; width: 100%; }
.stm-shipping-rates__zone { font-size: 1.125em; font-weight: 600; line-height: 1.3; margin: 0 0 .4em; }
.stm-shipping-table th, .stm-shipping-table td { border-bottom: 1px solid rgba(128, 128, 128, .3); padding: .7em 1.5em .7em 0; text-align: left; vertical-align: top; }
.stm-shipping-table thead th { border-bottom-color: rgba(128, 128, 128, .7); font-size: .8125em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.stm-shipping-table tbody th { font-weight: 600; width: 40%; }
.stm-shipping-table__sub { display: block; font-size: .875em; font-weight: 400; opacity: .8; }
.stm-shipping-table__line { display: block; font-variant-numeric: tabular-nums; }
.stm-shipping-rates__note { font-size: .875em; opacity: .8; }

@media (max-width: 600px) {
    .stm-shipping-table, .stm-shipping-table tbody, .stm-shipping-table tr, .stm-shipping-table th, .stm-shipping-table td { display: block; width: auto; }
    .stm-shipping-table thead { display: none; }
    .stm-shipping-table tbody th { border-bottom: 0; padding: .7em 0 0; width: auto; }
    .stm-shipping-table td { padding: .2em 0 .7em; }
}
