/* ==========================================================================
   Account pages / auth / reusable customer UI
   Файл собран как набор компонентов: layout, cards, lists, forms, tables.
   Часть классов можно позже вынести в общий component.css без привязки к аккаунту.
   ========================================================================== */

/* 01. Tokens */

.login,
.account {
    width: 100%;
}

.account {
    --account-bg: #ffffff;
    --account-soft-bg: #faf7f8;
    --account-card-bg: #ffffff;
    --account-card-hover: #fff7f9;
    --account-border: #eeeef1;
    --account-border-dark: #e1e1e6;
    --account-text: #101014;
    --account-muted: #6f6f78;
    --account-accent: #ca163c;
    --account-accent-hover: #e2284f;
    --account-accent-soft: #fdebf0;
    --account-accent-border: #f5c7d2;
    --account-radius: 0.375rem;
    --account-radius-lg: 0.5rem;
    --account-shadow-hover: 0 12px 34px rgba(202, 22, 60, 0.08);
    --account-shadow-dropdown: 0 14px 38px rgba(16, 16, 20, 0.12);
}

/* 02. Reusable primitives
   ========================================================================== */


.account-content {
    min-width: 0;
}

.account-content.account-form {
    width: 100%;
    max-width: 21.875rem;
}

.account-section {
    padding: 36px 0 80px;
}

.account-container {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    justify-items: stretch;
}

.account-head {
    margin-bottom: 24px;
}

.account-head .h1 {
    margin-bottom: 0;
}

.account-subtitle {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--account-muted);
    line-height: 1.5;
}

.account-list,
.account-orders-list,
.account-address-list,
.account-wishlist-list,
.account-order-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-surface,
.account-card,
.account-address-card,
.account-order-card,
.account-order-item,
.account-order-detail-card,
.account-order-address-card,
.account-order-comment,
.account-wishlist-card,
.account-orders-empty,
.account-order-history-item {
    background: var(--account-card-bg);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
}

.account-card,
.account-address-card,
.account-order-card,
.account-order-item,
.account-wishlist-card {
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.account-card:hover,
.account-address-card:hover,
.account-order-card:hover,
.account-wishlist-card:hover {
    background: var(--account-card-hover);
    border-color: var(--account-accent-border);
    box-shadow: var(--account-shadow-hover);
}

.account-card:hover {
    transform: translateY(-2px);
}

.account-badge,
.account-order-status,
.account-order-card-status,
.account-order-history-status,
.account-compare-status,
.account-wishlist-stock {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: var(--account-radius);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.account-badge-muted,
.account-compare-status,
.account-wishlist-stock {
    background: var(--account-soft-bg);
    border: 1px solid var(--account-border);
    color: var(--account-muted);
    font-weight: 600;
}

.account-badge-accent,
.account-order-status,
.account-order-card-status,
.account-order-history-status {
    background: var(--account-accent-soft);
    border: 1px solid var(--account-accent-border);
    color: var(--account-accent);
    font-weight: 700;
}

.account-price-current,
.account-wishlist-price-current,
.account-compare-price-current {
    color: var(--account-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.account-price-old,
.account-wishlist-price-old,
.account-compare-price-old {
    margin-top: 4px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.3;
    text-decoration: line-through;
    white-space: nowrap;
}

.account-page-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.account-page-actions-right {
    justify-content: flex-end;
}

.account-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.account-block-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--account-text);
}

.account-block-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--account-muted);
}

.account-empty-title,
.account-orders-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--account-text);
}

.account-empty-text,
.account-orders-empty-text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--account-muted);
}

.account-orders-empty {
    padding: 32px;
    background: var(--account-soft-bg);
}

/* 03. Auth pages
   ========================================================================== */

.login-container {
    width: 100%;
    max-width: 21.875rem;
    margin: 4rem auto 10rem;
}

.login-container .h1,
.login-container p {
    text-align: center;
}

.login-container .h1 {
    margin-bottom: 0.75rem;
}

.login-container p {
    margin: 0;
    color: #6f6f78;
    line-height: 1.45;
}

.login-container .btn-wrapper-switch {
    margin: 1rem 0 1.5rem;
}

.login-container .form,
.account-form .form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-container span {
    line-height: 1.125rem;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.login-link {
    display: inline-flex;
    justify-content: center;
    color: var(--account-accent, #ca163c);
    text-align: center;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.login-link:hover {
    color: var(--account-accent-hover, #e2284f);
}

/* 04. Simple module forms
   ========================================================================== */

.simpleregister {
    width: 100%;
}

.simpleregister .form-group,
.account-form .simpleregister .form-group {
    margin: 0;
}

.simpleregister .row {
    margin-left: 0;
    margin-right: 0;
}

.simpleregister [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    flex: 0 0 100%;
}

.simpleregister .control-label {
    display: none !important;
}

.simpleregister fieldset,
.account-form .simpleregister-block-content,
.account-form .simpleregister fieldset,
.account-address-form fieldset {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
}

.simpleregister-button-block,
.account-form .simpleregister-button-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.account-form .simpleregister-button-block {
    margin-top: 1.5rem;
}

.account-form .simpleregister-button-right,
.account-form #simpleregister_button_confirm,
#simpleregister_button_confirm {
    width: 100%;
}

#agreement_checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#agreement_checkbox .checkbox-label {
    margin: 0;
}

.simple-field-title {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--account-text);
}

.simple-field-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.simple-file-name {
    margin-top: 6px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* 05. Sidebar
   ========================================================================== */

.account-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--account-card-bg);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    overflow: hidden;
}

.account-user-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    flex-wrap: wrap;
    padding-top: 5px;
}

.account-user-title {
    font-size: 13px;
    line-height: 1.3;
    color: var(--account-muted);
}

.account-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--account-text);
}

.account-menu {
    display: flex;
    flex-direction: column;
    background: var(--account-card-bg);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    overflow: hidden;
}

.account-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--account-border);
    color: var(--account-text);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.account-menu-item:last-child {
    border-bottom: none;
}

.account-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
    transition: background 0.2s ease;
}

.account-menu-item:hover {
    background: var(--account-card-hover);
    color: var(--account-accent);
    padding-left: 22px;
}

.account-menu-item:hover::before {
    background: var(--account-accent);
}

.account-menu-item.is-active,
.account-menu-item.is-active:hover {
    background: var(--account-card-hover);
    color: var(--account-accent);
    padding-left: 22px;
}

.account-menu-item.is-active::before,
.account-menu-item.is-active:hover::before {
    background: var(--account-accent);
}

/* 06. Account dashboard
   ========================================================================== */

.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.account-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 98px;
    padding: 20px;
    text-decoration: none;
}

.account-card-content {
    min-width: 0;
}

.account-card-title {
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
}

.account-card-text {
    margin-top: 3px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* 07. Dashboard order accordion
   ========================================================================== */

.account-orders {
    margin-top: 42px;
}

.account-order-item.is-open {
    border-color: var(--account-accent-border);
}

.account-order-toggle {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.account-order-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.account-order-number {
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
}

.account-order-date {
    color: var(--account-muted);
    font-size: 13px;
}

.account-order-info {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
}

.account-order-status {
    min-height: auto;
    padding: 6px 10px;
}

.account-order-total {
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.account-order-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--account-muted);
    border-bottom: 2px solid var(--account-muted);
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.2s ease;
}

.account-order-item.is-open .account-order-arrow {
    border-color: var(--account-accent);
    transform: rotate(-135deg);
}

.account-order-content {
    display: none;
    background: #fff;
    border-top: 1px solid var(--account-border);
}

.account-order-item.is-open .account-order-content {
    display: block;
}

.account-order-content-inner {
    padding: 22px;
}

.account-order-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.account-order-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.account-order-table th,
.account-order-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--account-border);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

.account-order-table th {
    color: var(--account-muted);
    font-weight: 600;
}

.account-order-table td {
    color: var(--account-text);
}

.account-order-table td a {
    font-weight: 700;
    text-decoration: none;
    color: var(--account-accent);
}

.account-order-table td a:hover {
    color: var(--account-accent-hover);
}

.account-order-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

/* 08. Address list
   ========================================================================== */

.account-address-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
}

.account-address-content {
    min-width: 0;
}

.account-address-title {
    margin-bottom: 6px;
    color: var(--account-text);
    font-size: 15px;
    font-weight: 700;
}

.account-address-text {
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.55;
}

.account-address-text br {
    display: block;
    content: '';
    margin-bottom: 2px;
}

.account-address-actions {
    display: flex;
    gap: 10px;
}

/* 09. Order list
   ========================================================================== */

.account-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
}

.account-order-card-main {
    min-width: 0;
}

.account-order-card-title {
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
}

.account-order-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.4;
}

.account-order-card-info {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
}

.account-order-card-status {
    min-height: auto;
    padding: 6px 10px;
}

.account-order-card-total {
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.account-order-card-link {
    min-height: 38px;
    padding-left: 16px;
    padding-right: 16px;
    white-space: nowrap;
}

.account-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.account-pagination-links {
    min-width: 0;
}

.account-pagination-results {
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: right;
}

/* 10. Order info
   ========================================================================== */

.account-order-info-page {
    min-width: 0;
}

.account-order-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.account-order-detail-card,
.account-order-address-card,
.account-order-comment {
    padding: 20px;
}

.account-order-detail-title {
    margin-bottom: 14px;
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
}

.account-order-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-order-detail-row,
.account-order-total-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.account-order-detail-row span,
.account-order-total-row span {
    color: var(--account-muted);
}

.account-order-detail-row strong,
.account-order-total-row strong {
    color: var(--account-text);
    font-weight: 700;
    text-align: right;
}

.account-order-address-text,
.account-order-comment-text {
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.55;
}

.account-order-address-text br {
    display: block;
    content: '';
    margin-bottom: 2px;
}

.account-order-products {
    margin-top: 32px;
}

.account-order-info-table th,
.account-order-info-table td {
    white-space: nowrap;
}

.account-order-info-table th:first-child,
.account-order-info-table td:first-child {
    min-width: 260px;
    white-space: normal;
}

.account-order-product-name {
    color: var(--account-text);
    font-weight: 700;
}

.account-order-product-option {
    margin-top: 4px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.35;
}

.account-order-product-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.account-order-icon-btn {
    min-height: 36px;
    padding: 8px 12px;
}

.account-order-totals {
    width: 100%;
    max-width: 360px;
    margin: 20px 0 0 auto;
    padding: 16px;
    background: var(--account-soft-bg);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
}

.account-order-total-row {
    padding: 9px 0;
    border-bottom: 1px solid var(--account-border);
}

.account-order-total-row:first-child {
    padding-top: 0;
}

.account-order-total-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.account-order-comment {
    margin-top: 28px;
}

.account-order-history {
    margin-top: 36px;
}

.account-order-history-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
}

.account-order-history-date {
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.45;
}

.account-order-history-status {
    min-height: 30px;
    padding: 6px 10px;
}

.account-order-history-comment {
    margin-top: 8px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* 11. Wishlist
   ========================================================================== */

.account-wishlist-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    padding: 18px;
}

.account-wishlist-image,
.account-compare-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius);
    text-decoration: none;
}

.account-wishlist-image {
    width: 96px;
    height: 96px;
    padding: 8px;
}

.account-wishlist-image img,
.account-compare-product-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.account-wishlist-content {
    min-width: 0;
}

.account-wishlist-title {
    display: inline-block;
    color: var(--account-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.account-wishlist-title:hover {
    color: var(--account-accent);
}

.account-wishlist-meta {
    margin-top: 6px;
    color: var(--account-muted);
    font-size: 13px;
    line-height: 1.4;
}

.account-wishlist-stock {
    margin-top: 10px;
}

.account-wishlist-price {
    min-width: 120px;
    text-align: right;
}

.account-wishlist-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.account-wishlist-actions .btn {
    min-height: 38px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
}

/* 12. Compare
   ========================================================================== */

.account-compare-page {
    min-width: 0;
}

.account-compare-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.account-compare-table {
    width: 100%;
    min-width: 780px;
    background: var(--account-card-bg);
    border: 1px solid var(--account-border);
    border-spacing: 0;
    border-collapse: separate;
    border-radius: var(--account-radius);
    overflow: hidden;
}

.account-compare-table th,
.account-compare-table td {
    min-width: 210px;
    padding: 16px;
    border-right: 1px solid var(--account-border);
    border-bottom: 1px solid var(--account-border);
    color: var(--account-text);
    font-size: 14px;
    line-height: 1.45;
    vertical-align: top;
}

.account-compare-table th:last-child,
.account-compare-table td:last-child {
    border-right: none;
}

.account-compare-table tr:last-child td {
    border-bottom: none;
}

.account-compare-label {
    width: 190px;
    min-width: 190px !important;
    max-width: 190px;
    background: var(--account-soft-bg);
    color: var(--account-muted) !important;
    font-weight: 700;
}

.account-compare-product-head {
    background: #ffffff;
    text-align: left;
}

.account-compare-product-image {
    width: 100%;
    height: 150px;
    margin-bottom: 14px;
    padding: 10px;
}

.account-compare-product-title {
    display: inline-block;
    min-height: 44px;
    color: var(--account-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.account-compare-product-title:hover {
    color: var(--account-accent);
}

.account-compare-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.account-compare-product-actions .btn {
    width: 100%;
    min-height: 38px;
}

.account-compare-rating {
    display: flex;
    gap: 2px;
    color: var(--account-accent);
    font-size: 14px;
}

.account-compare-reviews {
    margin-top: 6px;
    color: var(--account-muted);
    font-size: 13px;
}

.account-compare-description {
    color: var(--account-muted);
    font-size: 13px;
}

.account-compare-empty {
    color: var(--account-muted);
}

.account-compare-group-row td {
    padding: 14px 16px;
    background: var(--account-accent-soft);
    color: var(--account-accent);
    font-size: 15px;
    font-weight: 700;
}

/* 13. Datetimepicker skin
   ========================================================================== */

.bootstrap-datetimepicker-widget.dropdown-menu {
    width: 320px;
    padding: 14px;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #eeeef1;
    border-radius: var(--account-radius-lg, 0.5rem);
    box-shadow: 0 14px 38px rgba(16, 16, 20, 0.12);
    z-index: 99999 !important;
}

.bootstrap-datetimepicker-widget.bottom:before,
.bootstrap-datetimepicker-widget.bottom:after,
.bootstrap-datetimepicker-widget.top:before,
.bootstrap-datetimepicker-widget.top:after {
    display: none;
}

.bootstrap-datetimepicker-widget table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 3px;
}

.bootstrap-datetimepicker-widget th,
.bootstrap-datetimepicker-widget td {
    width: auto;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    color: #101014;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 34px;
    text-align: center;
    vertical-align: middle;
}

.bootstrap-datetimepicker-widget thead tr:first-child th {
    height: 36px;
    line-height: 36px;
    font-weight: 700;
    cursor: pointer;
}

.bootstrap-datetimepicker-widget th.picker-switch {
    width: auto;
    color: #101014;
    font-size: 15px;
    font-weight: 700;
}

.bootstrap-datetimepicker-widget th.prev,
.bootstrap-datetimepicker-widget th.next {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #101014;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.bootstrap-datetimepicker-widget thead tr:first-child th:hover,
.bootstrap-datetimepicker-widget th.prev:hover,
.bootstrap-datetimepicker-widget th.next:hover,
.bootstrap-datetimepicker-widget td.day:hover,
.bootstrap-datetimepicker-widget td.hour:hover,
.bootstrap-datetimepicker-widget td.minute:hover,
.bootstrap-datetimepicker-widget td.second:hover,
.bootstrap-datetimepicker-widget td span:hover {
    background: #fff7f9;
    color: #ca163c;
}

.bootstrap-datetimepicker-widget thead tr:first-child th:hover,
.bootstrap-datetimepicker-widget th.prev:hover,
.bootstrap-datetimepicker-widget th.next:hover {
    background: #fdebf0;
}

.bootstrap-datetimepicker-widget .dow {
    height: 28px;
    color: #6f6f78;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    text-transform: lowercase;
}

.bootstrap-datetimepicker-widget td.day {
    width: 34px;
    height: 34px;
    font-size: 14px;
    line-height: 34px;
    cursor: pointer;
}

.bootstrap-datetimepicker-widget td.old,
.bootstrap-datetimepicker-widget td.new,
.bootstrap-datetimepicker-widget td span.old {
    color: #b0b0b8;
}

.bootstrap-datetimepicker-widget td.active,
.bootstrap-datetimepicker-widget td.active:hover,
.bootstrap-datetimepicker-widget td span.active {
    background: #ca163c;
    color: #ffffff;
    font-weight: 700;
    text-shadow: none;
}

.bootstrap-datetimepicker-widget td.today {
    position: relative;
    color: #ca163c;
    font-weight: 700;
}

.bootstrap-datetimepicker-widget td.today:before {
    display: none;
}

.bootstrap-datetimepicker-widget td.today:not(.active)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 4px;
    height: 4px;
    background: #ca163c;
    border-radius: 50%;
    transform: translateX(-50%);
}

.bootstrap-datetimepicker-widget td.active.today::after {
    background: #ffffff;
}

.bootstrap-datetimepicker-widget td.disabled,
.bootstrap-datetimepicker-widget td.disabled:hover,
.bootstrap-datetimepicker-widget td span.disabled,
.bootstrap-datetimepicker-widget td span.disabled:hover {
    background: transparent;
    color: #c8c8ce;
    cursor: not-allowed;
}

.bootstrap-datetimepicker-widget td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(33.333% - 6px);
    height: 38px;
    margin: 3px;
    border-radius: 0.375rem;
    color: #101014;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.bootstrap-datetimepicker-widget .timepicker-hour,
.bootstrap-datetimepicker-widget .timepicker-minute,
.bootstrap-datetimepicker-widget .timepicker-second {
    width: auto;
    height: 38px;
    color: #101014;
    font-size: 18px;
    font-weight: 700;
    line-height: 38px;
}

.bootstrap-datetimepicker-widget button[data-action],
.bootstrap-datetimepicker-widget a[data-action] {
    padding: 8px;
    background: transparent;
    border: none;
    color: #ca163c;
}

.bootstrap-datetimepicker-widget button[data-action]:hover,
.bootstrap-datetimepicker-widget a[data-action]:hover {
    background: #fdebf0;
    border-radius: 0.375rem;
}

/* 14. Adaptive
   ========================================================================== */

@media (max-width: 991px) {
    .account-section {
        padding: 32px 0 64px;
    }

    .account-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .account-content.account-form {
        margin: auto;
    }

    .account-sidebar {
        position: static;
    }

    .account-user {
        display: none;
    }

    .account-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-menu-item {
        justify-content: center;
        border-bottom: 1px solid var(--account-border);
    }

    .account-menu-item:nth-child(3n + 1),
    .account-menu-item:nth-child(3n + 2) {
        border-right: 1px solid var(--account-border);
    }

    .account-menu-item:hover {
        padding-left: 18px;
    }

    .account-menu-item::before {
        display: none;
    }

    .account-menu-item.is-active,
    .account-menu-item.is-active:hover {
        padding-left: 18px;
        background: var(--account-accent-soft);
        color: var(--account-accent);
    }

    .account-order-details-grid
    {
        grid-template-columns: 1fr;
    }

    .account-wishlist-card {
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: flex-start;
    }

    .account-wishlist-image {
        width: 84px;
        height: 84px;
    }

    .account-wishlist-price,
    .account-wishlist-actions {
        grid-column: 2;
    }

    .account-wishlist-price {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .login-container {
        max-width: none;
        padding: 0 1rem;
        margin: 3rem auto 6rem;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-card {
        min-height: auto;
    }

    .account-orders {
        margin-top: 36px;
    }

    .account-block-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .account-order-toggle,
    .account-order-card,
    .account-address-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .account-order-toggle {
        gap: 14px;
    }

    .account-order-info,
    .account-order-card-info {
        width: 100%;
        gap: 12px;
    }

    .account-order-info {
        justify-content: space-between;
    }

    .account-order-card-info,
    .account-address-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .account-order-card-status,
    .account-order-card-total,
    .account-order-card-link,
    .account-address-actions,
    .account-address-actions .btn {
        width: 100%;
    }

    .account-order-content-inner,
    .account-order-detail-card,
    .account-order-address-card,
    .account-order-comment,
    .account-order-history-item {
        padding: 18px;
    }

    .account-order-detail-row,
    .account-order-total-row {
        flex-direction: column;
        gap: 3px;
    }

    .account-order-detail-row strong,
    .account-order-total-row strong {
        text-align: left;
    }

    .account-order-totals {
        max-width: none;
    }

    .account-order-history-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .account-order-product-actions {
        justify-content: flex-start;
    }

    .account-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-pagination-results {
        text-align: left;
    }

    .account-page-actions,
    .account-page-actions-right {
        flex-direction: column-reverse;
        justify-content: stretch;
    }

    .account-page-actions .btn,
    .account-page-actions input[type="submit"] {
        width: 100%;
    }

    .account-compare-table {
        min-width: 720px;
    }

    .account-compare-table th,
    .account-compare-table td {
        min-width: 190px;
        padding: 14px;
    }

    .account-compare-label {
        width: 155px;
        min-width: 155px !important;
        max-width: 155px;
    }

    .account-compare-product-image {
        height: 130px;
    }
}

@media (max-width: 575px) {
    .account-section {
        padding: 24px 0 48px;
    }

    .account-menu {
        grid-template-columns: 1fr;
    }

    .account-menu-item {
        justify-content: flex-start;
    }

    .account-menu-item:nth-child(3n + 1),
    .account-menu-item:nth-child(3n + 2) {
        border-right: none;
    }

    .account-card,
    .account-wishlist-card {
        padding: 18px;
    }

    .account-order-status {
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .account-wishlist-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .account-wishlist-image {
        width: 100%;
        height: 150px;
    }

    .account-wishlist-price,
    .account-wishlist-actions {
        grid-column: auto;
    }

    .account-wishlist-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-wishlist-actions .btn {
        width: 100%;
    }

    .bootstrap-datetimepicker-widget.dropdown-menu {
        width: 290px;
        padding: 12px;
    }

    .bootstrap-datetimepicker-widget table {
        border-spacing: 2px;
    }

    .bootstrap-datetimepicker-widget th,
    .bootstrap-datetimepicker-widget td,
    .bootstrap-datetimepicker-widget td.day {
        height: 32px;
        font-size: 13px;
        line-height: 32px;
    }

    .bootstrap-datetimepicker-widget th.prev,
    .bootstrap-datetimepicker-widget th.next {
        width: 32px;
        height: 32px;
        line-height: 28px;
    }
}
