/*
|--------------------------------------------------------------------------
| Corbin Commerce - Deployable Donkey v0.1
|--------------------------------------------------------------------------
|
| Temporary separate stylesheet while commerce components take shape.
| Merge into the framework stylesheet later if desired.
|
*/

.commerce-wrapper {
    background-color: #fff;
    background-image: none !important;
}

.commerce-main {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 60px;
    box-sizing: border-box;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;

    display: flow-root;
}

.commerce-page-heading {
    margin-bottom: 28px;
    text-align: left;
}

.commerce-page-heading h1 {
    margin: 0;
    color: #494949;
    font-size: 1.35rem;
}

.commerce-page-heading p {
    margin: 6px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.commerce-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    gap: 36px;
    align-items: start;
}

.commerce-cart__items {
    border-top: 2px solid #315b7d;
}

.commerce-cart-item {
    padding: 18px 10px 20px;
    border-bottom: 1px solid #d5d5d5;
}

.commerce-cart-item__fitment {
    margin-bottom: 9px;
    color: #315b7d;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.commerce-cart-item__top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.commerce-cart-item__description {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.3;
}

.commerce-cart-item__part {
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}

.commerce-cart-item__price {
    flex: 0 0 auto;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.commerce-cart-item__configuration {
    margin: 18px 0 0;
    padding: 0;
}

.commerce-cart-item__option {
    display: grid;
    grid-template-columns: minmax(120px, 165px) 1fr;
    gap: 12px;
    margin: 5px 0;
    font-size: 0.84rem;
    line-height: 1.35;
}

.commerce-cart-item__option dt {
    color: #666;
    font-weight: bold;
}

.commerce-cart-item__option dd {
    margin: 0;
    color: #333;
}

.commerce-cart-item__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.commerce-cart-item__quantity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.82rem;
    font-weight: bold;
}

.commerce-cart-item__quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: #f5f5f5;
}

.commerce-cart-item__quantity-value {
    min-width: 20px;
    text-align: center;
}

.commerce-cart-item__remove {
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    font-size: 0.78rem;
    text-decoration: underline;
}

.commerce-summary {
    padding: 20px;
    border: 1px solid #d5d5d5;
    border-top: 3px solid #315b7d;
    background: #fafafa;
}

.commerce-summary__heading {
    margin: 0 0 18px;
    color: #494949;
    font-size: 1rem;
}

.commerce-summary__totals {
    margin: 0;
}

.commerce-summary__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 0;
    font-size: 0.84rem;
}

.commerce-summary__totals dt {
    color: #555;
}

.commerce-summary__totals dd {
    margin: 0;
    text-align: right;
}

.commerce-summary__total {
    margin-top: 8px;
    padding-top: 14px !important;
    border-top: 1px solid #aaa;
    font-size: 0.95rem !important;
    font-weight: bold;
}

.commerce-summary__checkout {
    width: 100%;
    min-height: 42px;
    margin-top: 20px;
    border: 1px solid #3b3b3b;
    border-radius: 4px;
    background: #494949;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.commerce-summary__checkout:disabled,
.commerce-cart-item button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.commerce-summary__note {
    margin: 10px 0 0;
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
}

.commerce-message {
    padding: 24px;
    border: 1px solid #d5d5d5;
    text-align: center;
}

@media (max-width: 760px) {

    .commerce-main {
        width: min(100% - 20px, 700px);
        padding-top: 22px;
    }

    .commerce-cart__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .commerce-cart-item__top {
        gap: 12px;
    }

    .commerce-cart-item__option {
        grid-template-columns: 1fr;
        gap: 2px;
        margin-bottom: 9px;
    }

    .commerce-cart-item__controls {
        align-items: flex-end;
    }
}
.commerce-item__product-link {
    color: inherit;
    text-decoration: none;
}

.commerce-item__product-link:hover,
.commerce-item__product-link:focus {
    color: #315b7d;
    text-decoration: underline;
}
