#office-profile-form .capt {
    margin-left: 0;
    padding-left: 0;
    color: #4f4f4f;
    font-weight: 500;
}
#office-profile-form .form-group > .capt {
    text-align: left;
}

/* Profile field labels */

/* Profile help text */
#office-profile-form small {
    color: #747474;
    font-size: 13px;
    line-height: 1.45;
}

/* Account details labels */
.rightcol .reg-dannie span {
    color: #5b5b5b;
    font-weight: 500;
}

/* Profile navigation as real tabs */
.leftcol > .tabset {
    display: flex;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    border-bottom: 1px solid #d9d9d9;
}

.leftcol > .tabset > li {
    flex: 1 1 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leftcol > .tabset > li > a {
    display: block;
    padding: 16px 12px;
    text-align: center;
    color: #666;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease, border-color .15s ease;
}

@media (hover: hover) {

.leftcol > .tabset > li > a:hover {
    color: #222;
}
}

.leftcol > .tabset > li.active > a,
.leftcol > .tabset > li > a.active {
    color: #222;
    background: transparent;
    border-bottom-color: #df173f;
}

/* Account summary labels */
.rightcol .reg-dannie > div {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.5;
}

.rightcol .reg-dannie > div span {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-right: 4px;
}

/* Account summary heading */
.account-summary-title {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e4e8;
    color: #222;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

/* Full-width account content */
.profile-account-main {
    margin: 0 auto;
    float: none;
    padding-right: 0;
    width: calc(100% - 40px);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Profile: My Orders cards ===== */

.profile-account-main .settlements {
    float: none;
    width: 100%;
}

/* One complete order */
.profile-account-main .settlements .row {
    float: none;
    width: 100%;
    margin: 0 0 26px 0;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

/* Order header */
.profile-account-main .settlements .row .title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 16px 18px;
    background: #eef1f4;
    border-bottom: 2px solid #d81d42;
    color: #222;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

/* Every part of header: order no / date / total */
.profile-account-main .settlements .row .title > div {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.profile-account-main .settlements .row .title .date {
    font-weight: 600;
    color: #555;
}

/* Products area */
.profile-account-main .settlements .row ul {
    margin: 0;
    padding: 8px 18px 10px;
    background: #fff;
}

/* Individual product */
.profile-account-main .settlements .row ul li {
    padding: 13px 0;
    margin: 0;
    border-bottom: 1px solid #e5e8eb;
    font-size: 14px;
    line-height: 1.5;
}

.profile-account-main .settlements .row ul li:last-child {
    border-bottom: 0;
}

/* Product name */
.profile-account-main .settlements .row ul li a {
    color: #164f73;
    font-weight: 600;
    text-decoration: none;
}

@media (hover: hover) {

.profile-account-main .settlements .row ul li a:hover {
    text-decoration: underline;
}
}

/* Product secondary information */
.profile-account-main .settlements .row ul li .minopis {
    color: #666;
}

/* Mobile */
@media (max-width: 767px) {
    .profile-account-main .settlements .row {
        margin-bottom: 18px;
    }

    .profile-account-main .settlements .row .title {
        padding: 13px 14px;
        font-size: 14px;
        gap: 5px 12px;
    }

    .profile-account-main .settlements .row .title > div {
        font-size: 14px;
    }

    .profile-account-main .settlements .row ul {
        padding: 5px 14px 8px;
    }
}

/* ===== My Orders ===== */

/* One complete order */
.profile-account-main .order-card {
    float: none;
    width: 100%;
    margin: 0 0 28px 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d8dde3;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,.07);
    overflow: hidden;
}

/* Order heading */
.profile-account-main .order-card-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 17px 20px;
    background: #e9edf1;
    border-bottom: 3px solid #d81d42;
    color: #222;
    box-sizing: border-box;
    border-bottom-color: #0171bb;
}

/* Order number */
.profile-account-main .order-number {
    margin: 0 24px 0 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: #202020;
}

/* Date */
.profile-account-main .order-date {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Total pushed to the right */
.profile-account-main .order-total {
    margin: 0 0 0 auto;
    padding-left: 20px;
    font-size: 17px;
    font-weight: 800;
    color: #222;
}

/* Products container */
.profile-account-main .order-products {
    margin: 0;
    padding: 8px 20px 10px;
    background: #fff;
}

/* Individual product */
.profile-account-main .order-product {
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid #e3e6e9;
    font-size: 14px;
    line-height: 1.45;
}

.profile-account-main .order-product:last-child {
    border-bottom: 0;
}

.profile-account-main .order-product .caption {
    display: block;
    margin-bottom: 5px;
    color: #164f73;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

@media (hover: hover) {

.profile-account-main .order-product .caption:hover {
    text-decoration: underline;
}
}

.profile-account-main .order-product .minopis {
    color: #777;
    margin: 0 0 5px 0;
}

.profile-account-main .order-product .summa-price {
    color: #555;
}

.profile-account-main .order-product .summa-price span,
.profile-account-main .order-product .summa-price .summa {
    margin-right: 18px;
}

@media (max-width: 767px) {
    .profile-account-main .order-card {
        margin-bottom: 20px;
    }

    .profile-account-main .order-card-header {
        display: block;
        padding: 14px 15px;
    }

    .profile-account-main .order-number {
        margin-bottom: 5px;
        font-size: 17px;
    }

    .profile-account-main .order-date {
        margin-bottom: 5px;
    }

    .profile-account-main .order-total {
        margin: 0;
        padding: 0;
        font-size: 16px;
    }

    .profile-account-main .order-products {
        padding: 6px 15px 8px;
    }
}

/* ===== Profile centered layout ===== */

/* Logout toolbar */
.profile-account-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 12px 0;
}

.profile-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #e5d83f;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    background: #0171bb;
    border-color: #0171bb;
    color: #fff;
}

.profile-logout-btn:not(:disabled):not([aria-disabled="true"]):is(:focus-visible) {
    background-color: var(--action-hover-bg);
    color: var(--action-hover-text);
    border-color: var(--action-hover-bg);
}

@media (hover: hover) {

.profile-logout-btn:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) {
    background-color: var(--action-hover-bg);
    color: var(--action-hover-text);
    border-color: var(--action-hover-bg);
}
}

/* Keep tabs visually compact */
.profile-account-main > .tabset {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Orders should fill the account area, not whole monitor */
.profile-account-main .settlements,
.profile-account-main .order-card {
    max-width: 100%;
}

@media (max-width: 767px) {
    .profile-account-main {
        width: calc(100% - 24px);
    }

    .profile-account-toolbar {
        margin-bottom: 10px;
    }

    .profile-logout-btn {
        height: 36px;
        padding: 0 14px;
    }
}

/* ===== Profile compact width ===== */

@media (max-width: 800px) {
    .profile-account-main {
        width: calc(100% - 24px);
        max-width: none;
    }
}

/* ===== ACCOUNT BLUE THEME FINAL ===== */

/* Tabs */
.profile-account-main .tabset li.active > a,
.profile-account-main .tabset a.active,
.profile-account-main .tabset li.ui-tabs-active > a {
    border-bottom-color: #0171bb;
    color: #222;
}

/* Order header */

/* Account Details */
.account-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    gap: 24px;
    align-items: start;
}

.account-details-form {
    width: 100%;
    min-width: 0;
}

/* Default Address */
.account-default-address {
    padding: 20px;
    background: #fff;
    border: 1px solid #d9e0e5;
    border-top: 3px solid #0171bb;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    box-sizing: border-box;
}

.account-panel-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e6e9;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.ua-summary-row {
    margin-bottom: 14px;
}

.ua-summary-row span {
    display: block;
    margin-bottom: 3px;
    color: #888;
    font-size: 12px;
}

.ua-summary-row strong {
    display: block;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

/* SAVE */
#office-profile-form button[type="submit"],
#office-profile-form input[type="submit"] {
    height: auto;
    min-width: 110px;
    padding: 12px 20px;
    border: 1px solid #0171bb;
    border-radius: 8px;
    box-shadow: none;
    background: #087daf;
    border-color: #0171bb;
    color: #fff;
    margin: 0;
    font: 500 15px/1.6 Rubik,Arial,sans-serif;
}
#office-profile-form button[type="submit"]:not(:disabled):not([aria-disabled="true"]):is(:focus-visible),
#office-profile-form input[type="submit"]:not(:disabled):not([aria-disabled="true"]):is(:focus-visible) {
    background-color: var(--action-hover-bg);
    color: var(--action-hover-text);
    border-color: var(--action-hover-bg);
}
@media (hover: hover) {
#office-profile-form button[type="submit"]:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible),
#office-profile-form input[type="submit"]:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) {
    background-color: var(--action-hover-bg);
    color: var(--action-hover-text);
    border-color: var(--action-hover-bg);
}
}

/* Logout */

@media (max-width: 760px) {
    .account-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FINAL BLUE ACCOUNT ACCENTS ===== */

/* Active account tab */
.profile-account-main > .tabset > li > a {
    border-bottom: 3px solid transparent;
}

.profile-account-main > .tabset > li.active > a,
.profile-account-main > .tabset > li > a.active,
.profile-account-main > .tabset > li.ui-tabs-active > a,
.profile-account-main > .tabset > li.current > a {
    border-bottom-color: #0171bb;
}

/* Kill old red pseudo-elements if theme uses them */
.profile-account-main .tabset li:after,
.profile-account-main .tabset a:after {
    background: #0171bb;
    background-color: #0171bb;
}

/* Order header */

/* Save button */

/* Logout */

/* ===== IRONJUICE ACCOUNT FINAL COLORS ===== */

/* Tabs */

/* In case old theme draws active line with pseudo-element */

/* Orders */
.profile-account-main .order-card-header,
.profile-account-main .settlements .row .title {
    border-bottom-color: #0171bb;
}

/* SAVE */

/* Logout */

/* ===== ACCOUNT DETAILS 2-COLUMN LAYOUT ===== */

/* ===== Profile password validation ===== */

#office-profile-form .profile-field-error {
    border-color: #d9534f;
    box-shadow: 0 0 0 1px rgba(217,83,79,.12);
}

#office-profile-form .profile-validation-error {
    margin-top: 6px;
    color: #d9534f;
    font-size: 12px;
    line-height: 1.35;
}
