/* Keep the shared order form independent of each storefront theme's CSS variables. */
#order-standard_cart .btn-primary,
#order-standard_cart .btn-success,
#order-standard_cart .btn-checkout,
#order-standard_cart .view-cart-tabs button.btn,
#order-standard_cart .product .btn-order-now {
    background: var(--ph-cart-primary) !important;
    border-color: var(--ph-cart-primary) !important;
    color: #fff !important;
}
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-primary:focus,
#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-success:focus,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart .view-cart-tabs button.btn:hover,
#order-standard_cart .product .btn-order-now:hover {
    background: var(--ph-cart-dark) !important;
    border-color: var(--ph-cart-dark) !important;
    color: #fff !important;
}
#order-standard_cart .order-summary,
#order-standard_cart .order-summary h2,
#order-standard_cart .order-summary h3,
#order-standard_cart .order-summary h4 {
    background-color: var(--ph-cart-primary) !important;
    border-color: var(--ph-cart-primary) !important;
}
/* Keep the summary title readable over the storefront brand colour. */
#order-standard_cart .order-summary h2 {
    color: #fff !important;
}
#order-standard_cart .view-cart-items-header,
#order-standard_cart .products .product header {
    background-color: var(--ph-cart-primary) !important;
    border-color: var(--ph-cart-primary) !important;
    color: #fff !important;
}
#order-standard_cart .view-cart-items,
#order-standard_cart .products .product,
#order-standard_cart .sub-heading,
#order-standard_cart .panel-addon-selected,
#order-standard_cart .view-cart-tabs .nav-tabs > li.active > a {
    border-color: var(--ph-cart-primary) !important;
}
#order-standard_cart .panel-addon:not(.panel-addon-selected) .panel-add,
#order-standard_cart .panel-addon-selected .panel-price {
    background-color: var(--ph-cart-primary) !important;
    color: #fff !important;
}
#order-standard_cart .btn-link,
#order-standard_cart .view-cart-tabs .nav-tabs > li > a,
#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span {
    color: var(--ph-cart-primary) !important;
}
/* Older storefront footers hide the tax tab and totals even when active. */
#order-standard_cart #calcTaxes.active,
#order-standard_cart #orderSummary .bordered-totals,
#order-standard_cart #orderSummary #recurring,
#order-standard_cart #orderSummary .total-due-today {
    display: block !important;
}

/* The destructive cart control stays readable independently of partner colours. */
#order-standard_cart #btnEmptyCart,
#order-standard_cart #btnEmptyCart:hover,
#order-standard_cart #btnEmptyCart:focus,
#order-standard_cart #btnEmptyCart:active {
    background: #fff !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
    opacity: 1;
}
#order-standard_cart #btnEmptyCart > span,
#order-standard_cart #btnEmptyCart > i {
    background: transparent !important;
    color: inherit !important;
}
#order-standard_cart #btnEmptyCart:focus {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

/* Keep the empty-cart confirmation readable with every partner palette. */
#order-standard_cart #modalEmptyCart .modal-content,
#order-standard_cart #modalEmptyCart .modal-header,
#order-standard_cart #modalEmptyCart .modal-body,
#order-standard_cart #modalEmptyCart .modal-footer {
    background: #fff !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}
#order-standard_cart #modalEmptyCart .modal-title,
#order-standard_cart #modalEmptyCart .modal-title > span,
#order-standard_cart #modalEmptyCart .modal-title > i,
#order-standard_cart #modalEmptyCart .close,
#order-standard_cart #modalEmptyCart .close > span {
    background: transparent !important;
    color: #1f2937 !important;
    text-shadow: none !important;
    opacity: 1;
}
#order-standard_cart #modalEmptyCart .btn-default {
    background: #fff !important;
    color: #1f2937 !important;
    border: 1px solid #6b7280 !important;
    text-shadow: none !important;
}
#order-standard_cart #modalEmptyCart .btn-default:hover,
#order-standard_cart #modalEmptyCart .btn-default:focus,
#order-standard_cart #modalEmptyCart .btn-default:active {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border-color: #4b5563 !important;
}
#order-standard_cart #modalEmptyCart .btn-primary {
    background: #b91c1c !important;
    color: #fff !important;
    border: 1px solid #b91c1c !important;
    text-shadow: none !important;
}
#order-standard_cart #modalEmptyCart .btn-primary:hover,
#order-standard_cart #modalEmptyCart .btn-primary:focus,
#order-standard_cart #modalEmptyCart .btn-primary:active {
    background: #991b1b !important;
    color: #fff !important;
    border-color: #991b1b !important;
}
#order-standard_cart #modalEmptyCart .btn:focus,
#order-standard_cart #modalEmptyCart .close:focus {
    outline: 2px solid #1f2937 !important;
    outline-offset: 2px;
    box-shadow: none !important;
}
