/* Tiered set price table (single product) */
.asp-tiers {
    margin: 0 0 1.5em;
}

.asp-tiers h3.asp-tiers__title {
    margin: 0 0 0.5em;
    font-size: 1.05rem;
    line-height: 1.3;
}

.asp-tiers__table {
    width: 100%;
    border-collapse: collapse;
}

/* Breakdance stacks WooCommerce tables into flex rows below 1024px and hides
   the head. This table is short enough to stay a real table on every screen. */
.asp-tiers .asp-tiers__table {
    display: table !important;
}

.asp-tiers .asp-tiers__table thead {
    display: table-header-group !important;
}

.asp-tiers .asp-tiers__table tbody {
    display: table-row-group !important;
}

.asp-tiers .asp-tiers__table tr {
    display: table-row !important;
}

.asp-tiers .asp-tiers__table th,
.asp-tiers .asp-tiers__table td {
    display: table-cell !important;
    text-align: left !important;
}

.asp-tiers__table th,
.asp-tiers__table td {
    padding: 0.4em 0.6em;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    vertical-align: middle;
}

.asp-tiers__table thead th {
    font-weight: 600;
}

.asp-tiers__table tbody th {
    font-weight: 400;
}

.asp-tiers__row {
    cursor: pointer;
}

.asp-tiers__row--unavailable {
    opacity: 0.5;
}

.asp-tiers__row.is-selected {
    font-weight: 600;
}

@media (max-width: 480px) {
    .asp-tiers__table th,
    .asp-tiers__table td {
        padding: 0.4em 0.3em;
        font-size: 0.85em;
    }
}

/* Checkout recommendations */
.asp-checkout-recs {
    margin: 0 0 2.5em;
}

.asp-checkout-recs h2.asp-checkout-recs__title {
    margin: 0 0 0.25em;
    font-size: 1.5rem;
    line-height: 1.2;
}

.asp-checkout-recs__intro {
    margin: 0 0 1em;
}

.asp-checkout-recs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asp-checkout-recs__item {
    display: flex;
    align-items: center;
    gap: 1em;
    flex: 1 1 260px;
    margin: 0;
}

.asp-checkout-recs__thumb {
    flex: 0 0 90px;
    max-width: 90px;
}

.asp-checkout-recs__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.asp-checkout-recs__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
}

.asp-checkout-recs__name {
    font-weight: 600;
}

.asp-checkout-recs__price .amount {
    white-space: nowrap;
}

/* The theme only styles <button>/<input>, so the link needs its own rules.
   Selectors are kept specific enough to beat the theme's generic link colour. */
.asp-checkout-recs a.asp-checkout-recs__button,
.asp-checkout-recs a.asp-checkout-recs__button:hover,
.asp-checkout-recs a.asp-checkout-recs__button:focus,
.asp-checkout-recs a.asp-checkout-recs__button:visited {
    display: inline-block;
    margin-top: 0.25em;
    padding: 10px 18px;
    border-radius: 3px;
    background: var(--bde-brand-primary-color, #d4af37);
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.asp-checkout-recs a.asp-checkout-recs__button:hover {
    opacity: 0.85;
}
