/* Rounded white cards with a soft shadow. */
#cart .table,
#cart .cart-chekout-box {
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e3e4e4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Bootstrap 3.0's .table-responsive adds a gray border and an always-visible
   scrollbar on phones; the tables have their own card styling instead. */
#cart .table-responsive {
    border: 0;
    overflow-x: auto;
}

/* border-collapse must be "separate" for border-radius to apply to a table;
   overflow clips the striped row backgrounds at the corners. */
#cart .table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

#cart .table thead th {
    color: #999; /* Bootstrap 3.0's .text-muted gray */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    font-size: 0.8em;
    border-bottom: 0;
}

/* Bootstrap 3's default cell padding is 8px. */
#cart .table th,
#cart .table td {
    padding: 12px 15px;
}

/* cartridge.css right-aligns ".cart-form th" and ".cart-form tbody > tr > td"
   with higher specificity than Bootstrap's .text-center; let it win again. */
#cart .cart-form .text-center {
    text-align: center;
}

/* Totals card, matching the order summary sidebar in checkout.css. */
#cart .cart-totals-panel {
    border: 1px solid #e3e4e4;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

#cart .cart-totals-panel .panel-body {
    padding: 20px;
}

#cart .cart-totals-heading {
    margin: 0 0 12px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* cartridge.css floats .order-totals right; lay each line out as
   label on the left, amount on the right. */
#cart .cart-totals-panel .order-totals {
    float: none;
    margin: 0;
    text-align: left;
}

#cart .cart-totals-panel .order-totals > div {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

#cart .cart-totals-panel .order-totals-label {
    font-weight: normal;
}

#cart .cart-totals-panel .order-totals-amount {
    text-align: right;
}

#cart .cart-totals-panel .order-totals .total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 18px;
    font-weight: 700;
}

#cart .cart-totals-panel .order-totals .total .order-totals-label {
    font-weight: 700;
}

#cart .cart-totals-note {
    margin: 12px 0 0;
    color: #999;
}

/* Outline version of .btn-success (Bootstrap 3.0 has no outline buttons). */
#cart .discount-form .btn {
    color: #5cb85c;
    border-color: #5cb85c;
    padding-left: 20px;
    padding-right: 20px;
}

#cart .cart-chekout-box {
    padding: 20px;
}

#cart .cart-chekout-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical rhythm inside the checkout box. */
#cart .cart-chekout-inner h3 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#cart .cart-chekout-inner h3 + p {
    margin-bottom: 25px;
}

#cart .cart-chekout-inner .btn-block {
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;
}

#cart .cart-chekout-inner .cart-divider {
    margin-bottom: 25px;
}

#cart .cart-next-step h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

#cart .cart-next-step p:last-child {
    margin-bottom: 0;
}

/* Text with a gray line running through it. The span's white background
   (matching .cart-chekout-box) hides the line behind the text. */
#cart .cart-divider {
    position: relative;
}

#cart .cart-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #ddd;
}

#cart .cart-divider span {
    position: relative;
    padding: 0 15px;
    background-color: #fff;
}

#cart .cart-next-steps {
    display: flex;
    gap: 30px;

    .cart-next-step {
        flex: 1;
    }

    @media (max-width: 768px) {
        flex-wrap: wrap;

        .cart-next-step {
            flex-basis: 100%;
        }
    }
}

#cart .cart-next-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 8px;
}

#cart .cart-chekout-box .icon {
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    flex-shrink: 0;

    svg {
        width: 60%;
    }

    &.icon--lock {
        border-color: #d9efed;
        color: #145f5e;
        background-color: #e9f6f4;
        width: 50px;
        height: 50px;    
    }

    &.icon--user {
        border-color: #d2ebe2;
        color: #257c5e;
        background-color: #e8f6f0;
    }

    &.icon--user-plus {
        border-color: #d2e4f6;
        color: #2674be;
        background-color: #e7f1fa;
    }
}

#cart .cart-next-step-success {
    border-color: #d9ece2;
    background-color: #f3fbf6;

    h4 {
        color: #257c5e;
    }
}

#cart .cart-next-step-info {
    border-color: #deebf6;
    background-color: #f2f8fd;

    h4 {
        color: #2674be;
    }
}

/* Quantity stepper: -/+ buttons joined to a narrow centered input. */
#cart .cart-qty {
    width: 120px;
    margin: 0 auto; /* .input-group is display: table, so text-align won't center it */
}

/* cartridge.css fixes ".cart-form .quantity input" at 40px; restore Bootstrap's
   full width so the input fills the group and the buttons sit flush. */
#cart .cart-qty .form-control {
    width: 100%;
    padding-left: 4px;
    padding-right: 4px;
    -moz-appearance: textfield; /* hide Firefox's spinner */
}

#cart .cart-qty .cart-qty-minus {
    border-right: 0;
}

#cart .cart-qty .cart-qty-plus {
    border-left: 0;
}

/* Hide the native spinner arrows in Chrome/Safari; the buttons replace them. */
#cart .cart-qty .form-control::-webkit-outer-spin-button,
#cart .cart-qty .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Brand green for the primary (btn-success) buttons on the cart and
   checkout pages, with a darker shade for hover/focus/pressed. */
#cart .btn-success {
    background-color: #209351;
    border-color: #1c8248;
}

#cart .btn-success:hover,
#cart .btn-success:focus,
#cart .btn-success:active,
#cart .btn-success.active {
    background-color: #1b7d45;
    border-color: #166638;
}
