#CustPref .alert {
    margin: 15px 15px 25px;
    text-align: center;
}

.custPrefFinancialTxt {
    margin: 10px 0 25px;
    padding: 12px 15px;
    border-bottom: 1px solid #999;
    background: #f4f4f4;
    color: #333;
    font-size: 14px;
    line-height: 25px;
}

.custPrefFinancialTxt .header {
    margin-bottom: 8px;
    font-size: 18px;
    text-align: center;
}

.custPrefFinancialItems {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 20px;
}

.custPrefMessage {
    display: flex;
    align-items: center;
    min-height: 55px;
    margin: 10px 0 25px;
    padding: 10px 15px;
    border-bottom: 1px solid #999;
    background: #f4f4f4;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    line-height: 25px;
}

.custPrefMessage img {
    width: 36px;
    margin-right: 12px;
}

.custPrefList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.custPrefItem {
    color: #333;
    text-decoration: none;
}

.custPrefTxt {
    display: block;
    height: 120px;
    padding: 8px;
    overflow: hidden;
    border-bottom: 1px solid #999;
    background: #f4f4f4 url('/images/layout/icon_next.gif') no-repeat 95% 85%;
    color: #333;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

.custPrefTxt img {
    display: block;
    width: 48px;
    height: 48px;
    margin: 12px auto 8px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .custPrefFinancialItems,
    .custPrefList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .custPrefFinancialItems,
    .custPrefList {
        grid-template-columns: 1fr;
    }
}

#passwordReminderPage > section {
    display: flex;
    justify-content: center;
}

.passwordResetFormBox {
    max-width: 520px;
}

.passwordResetForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #f4f4f4;
}

.passwordResetForm .btn {
    margin-top: 10px;
}

.accountOrdersBox {
    max-width: 900px;
    margin-bottom: 40px;
}

.accountOrdersBox .rcPageTitle {
    margin-bottom: 20px;
}

.ordersList {
    border-top: 1px solid #999;
}

.accountOrderItem {
    display: grid;
    grid-template-columns: minmax(100px, auto) minmax(120px, 1fr) auto auto minmax(110px, auto);
    gap: 12px 20px;
    align-items: center;
    background: #f4f4f4;
    color: #333;
}

.accountOrderNumber {
    font-weight: 700;
}

.accountOrderName {
    overflow-wrap: anywhere;
}

.accountOrderStatus {
    text-align: right;
}

@media (max-width: 767.98px) {
    .accountOrderItem {
        grid-template-columns: 1fr 1fr;
    }

    .accountOrderName,
    .accountOrderStatus {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .accountOrderItem {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.orderDetailsBox {
    max-width: 1000px;
    margin-bottom: 40px;
}

.orderDetailsActions {
    margin: 15px 0;
    text-align: right;
}

.orderDetailsSummary,
.orderShipmentInfo,
.orderDetailsNote {
    margin: 15px 0;
    padding: 14px 16px;
    border-bottom: 1px solid #999;
    background: #f4f4f4;
    line-height: 1.7;
}

.orderAddressGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.orderAddress {
    padding: 16px;
    border-bottom: 1px solid #999;
    background: #f4f4f4;
}

.orderAddress h2,
.orderShipmentInfo h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.orderItemsTable {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.orderItemsTable th,
.orderItemsTable td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    vertical-align: top;
}

.orderItemsTable thead th {
    background: #333;
    color: #fff;
}

.orderItemsTable tfoot th,
.orderItemsTable tfoot td {
    background: #f4f4f4;
}

.orderItemOption {
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}

.orderDiscountRow td {
    color: #555;
    font-size: 13px;
}

.orderVatText {
    font-size: 12px;
}

.orderStatusMessage {
    margin-top: 20px;
}

@media (max-width: 767.98px) {
    .orderAddressGrid {
        grid-template-columns: 1fr;
    }
}

.validationSummary:empty {
    display: none;
}

.validationSummary {
    margin-top: 18px;
}

.accountShippingAddressesBox {
    max-width: 1000px;
    margin-bottom: 40px;
}

.shippingAddressList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 30px;
}

.shippingAddressCard,
.shippingAddressEmpty,
.mainContainer section.shippingAddressFormSection {
    padding: 16px;
    border-bottom: 1px solid #999;
    background: #f4f4f4;
}

.shippingAddressCard {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.shippingAddressCard h2,
.shippingAddressFormSection h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.shippingAddressActions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.shippingAddressActions form,
.shippingAddressActions .btn {
    width: 100%;
}

.shippingAddressFormGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.shippingAddressWideField {
    grid-column: 1 / -1;
}

.shippingAddressFormActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 767.98px) {
    .shippingAddressList,
    .shippingAddressFormGrid {
        grid-template-columns: 1fr;
    }

    .shippingAddressWideField {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {

}

.accountStatementsBox,
.accountInvoicesBox,
.accountCreditNotesBox,
.accountServicesBox,
.accountItemsOnOrderBox,
.accountWarrantiesBox,
.accountDownloadsBox,
.accountStockReportBox {
    max-width: 1100px;
    margin-bottom: 40px;
}

.accountStatementsBox .rcPageTitle,
.accountInvoicesBox .rcPageTitle,
.accountCreditNotesBox .rcPageTitle,
.accountServicesBox .rcPageTitle,
.accountItemsOnOrderBox .rcPageTitle,
.accountWarrantiesBox .rcPageTitle,
.accountDownloadsBox .rcPageTitle,
.accountStockReportBox .rcPageTitle {
    margin-bottom: 20px;
}

.accountStockReportBox h2 {
    margin: 24px 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.stockReportForm {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.stockReportForm label {
    margin: 0;
    font-weight: 700;
}

.stockReportForm select {
    width: 260px;
}

.accountFinanceTable {
    width: 100%;
    border-collapse: collapse;
}

.accountFinanceTable th,
.accountFinanceTable td {
    padding: 9px 8px;
    border-bottom: 1px solid #ccc;
    vertical-align: top;
    white-space: nowrap;
}

.accountFinanceTable th {
    background: #333;
    color: #fff;
}

.accountFinanceTable tbody tr:nth-child(even) {
    background: #f4f4f4;
}

.statementOutstanding {
    margin-top: 15px;
    font-weight: 700;
}

.statementDownloadForm {
    display: flex;
    gap: 20px;
    align-items: end;
    margin: 12px 0 20px;
}

.statementDownloadForm label {
    display: block;
    margin-bottom: 5px;
}

.statementDateRange {
    display: flex;
    gap: 8px;
    align-items: center;
}

.statementDateRange input {
    width: 165px;
}

.statementBackButton {
    margin-top: 5px;
}

.accountFinanceBackButton {
    margin-top: 20px;
}

.accountServicesTable .serviceDetails {
    padding: 10px 14px 14px;
    background: #f4f4f4;
    line-height: 1.55;
    white-space: normal;
}

.downloadsFilter {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f4f4f4;
}

.downloadsFilter label {
    margin: 0;
    font-weight: 700;
}

.downloadsFilter select {
    width: 230px;
}

.downloadsList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.downloadsList li {
    padding: 11px 12px;
    border-bottom: 1px solid #ccc;
}

.downloadsList li:nth-child(even) {
    background: #f4f4f4;
}

@media (max-width: 575.98px) {
    .downloadsFilter {
        align-items: stretch;
        flex-direction: column;
    }

    .downloadsFilter select {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .statementDownloadForm,
    .statementDateRange {
        align-items: stretch;
        flex-direction: column;
    }

    .statementDateRange input {
        width: 100%;
    }
}

.warrantyListActions {
    margin-bottom: 12px;
}

.warrantyFormBox,
.warrantyDetailsBox {
    max-width: 1100px;
    margin-bottom: 40px;
}

.warrantyIntro {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-bottom: 1px solid #999;
    background: #f4f4f4;
    font-size: 14px;
}

.warrantyIntro p:last-child {
    margin-bottom: 0;
}

.warrantyForm fieldset {
    margin: 0 0 24px;
}

.warrantyForm legend,
.warrantySectionTitle {
    width: 100%;
    margin: 0 0 10px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--cara-green);
    background: #f4f4f4;
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.warrantyFormRow {
    display: grid;
    grid-template-columns: 250px minmax(250px, 420px);
    gap: 12px;
    align-items: start;
    margin-top: 12px;
}

.warrantyFormRow > label {
    padding-top: 7px;
    font-weight: 600;
    text-align: right;
}

.warrantyFileRow input[type="file"] {
    height: auto;
    padding: 5px;
}

.warrantyFormActions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding-left: 262px;
}

.warrantyDetailsGrid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 8px 15px;
    margin: 0 0 22px;
}

.warrantyDetailsGrid dt {
    text-align: right;
}

.warrantyDetailsGrid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.warrantyNotes {
    margin-bottom: 20px;
}

.warrantyNote {
    margin: 5px;
    padding: 8px 10px;
    background: #f4f4f4;
}

.warrantyNote .noteTitle {
    font-weight: 700;
}

.uploadedImagesContainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.uploadedImage {
    display: flex;
    min-width: 0;
    min-height: 360px;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    border: 1px solid #ddd;
}

.uploadedImage img {
    width: 100%;
    height: 320px;
    object-fit: contain;
}

.uploadedImage figcaption {
    padding-top: 8px;
    font-weight: 600;
    text-align: center;
}

.warrantyFaultDescription {
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .uploadedImagesContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .warrantyFormRow {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .warrantyFormRow > label,
    .warrantyDetailsGrid dt {
        text-align: left;
    }

    .warrantyFormActions {
        padding-left: 0;
    }

    .warrantyDetailsGrid {
        grid-template-columns: 1fr;
        gap: 2px;
    } 

    .uploadedImagesContainer {
        grid-template-columns: 1fr;
    }

    .uploadedImage {
        min-height: 0;
    }

    .uploadedImage img {
        height: auto;
        max-height: 420px;
    }
}
