/* banner */
.points-wrapper .header-page-banner-cards {
    flex-basis: 650px;
}

.points-wrapper .points-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    color: var(--tertiary-contrast-color-dimmed);
    font-size: 14px;
}

.points-wrapper .points-display .points-display-count {
    color: var(--tertiary-contrast-color);
    font-size: 21px;
    font-weight: 500;
}

.points-wrapper .points-display .buy-points-button {
    margin-top: 10px;

    background-color: var(--primary-color);
    height: 24px;
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    gap: 15px;
}

/* options */
.points-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.points-options>*:last-child {
    margin-left: auto;
}

.points-options .points-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-search input {
    border-radius: 5px;
    height: 46px;
    padding: 0 15px;
    border: 0;
    outline: 0;
}

.points-search input::placeholder {
    color: hsla(0, 0%, 13%, 0.35);
    font-size: 13px;
    font-weight: 500;
}

.points-options,
.points-filter {
    margin-bottom: 20px;
}

/* filter */
.points-row.points-search-hide,
.points-row.points-filter-hide {
    display: none;
}

.points-filter {
    display: flex;
    align-items: center;
    gap: 25px;
}

.points-filter .filter-button {
    color: hsla(0, 0%, 13%, 0.5);
    line-height: 30px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: transparent 2px solid;

    display: flex;
    align-items: center;
    gap: 5px;
}

.points-filter .filter-button.active {
    color: #222;
    border-bottom: #222 2px solid;
}

.points-filter .filter-button.employee-toggle {
    margin-left: auto;
}

.points-filter .filter-button span {
    padding: 0 5px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;

    border-radius: 100px;
    background-color: hsla(0, 0%, 13%, 0.25);

    color: #fff;
    font-size: 12px;
    text-align: center;
}

.points-filter .filter-button.active span {
    background-color: hsla(0, 0%, 13%, 0.6);
}

/* table */
.points-table {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 5px;
    align-self: flex-start;
}

.points-row {
    width: 100%;
    display: flex;
    gap: 20px;
    padding: 18px 15px;
    border-bottom: rgba(170, 170, 170, 0.2) 1px solid;
}

.points-row .sort-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;

    span {
        color: #516274;
    }
}

.points-row-body .user_email {
    font-size: 12px;
    color: #838485;
}

.points-row.points-row-head,
.points-row.points-row-foot {
    font-weight: 600;
    background: #f2f5f7;
    color: #516274;
    border-radius: 5px 5px 0px 0px;
}

.points-row.points-row-head {
    border-bottom: none;
}

.points-row.points-row-body.paged {
    display: none !important;
}

.points-row.points-row-body:hover {
    background: hsl(204, 20%, 98%);
}

.points-row:last-child {
    border-bottom: none;
}

.points-row-small {
    padding: 10px 15px;
    color: #555;
    font-size: 11px;
    font-weight: 400;
}

.points-row.points-row-small.points-row-head {
    background: #fff;
}

.points-cell-group {
    flex: 1;
    display: flex;
    gap: 10px;
}

.points-cell {
    align-self: center;
}

/* table content */
.points-last-order-date {
    --_background-color: hsla(8, 94%, 56%, 0.2);
    --_color: hsl(8, 94%, 56%);

    background-color: var(--_background-color);
    color: var(--_color);
    font-size: 10px;
    font-weight: 600;
    text-wrap: nowrap;

    width: fit-content;
    padding: 5px 10px;
    border-radius: 1000px;

    display: flex;
    align-items: center;
    gap: 5px;
}

.points-last-order-date::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: var(--_color);
}

.points-last-order-date.ordered {
    --_background-color: hsla(92, 58%, 42%, 0.2);
    --_color: hsl(92, 58%, 42%);
}

.points-table .points-orders {
    font-weight: 500;
    color: rgba(34, 34, 34, 0.5);
}

.points-table .points-orders a {
    color: #235ed6;
}

@media (max-width: 1550px) {
    .points-table .dropdown .dropdown-content {
        right: calc(100% - 32px);
    }
}

/* .points-table input */
.points-table select {
    min-width: 75px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 15px;
    outline: 0;
}

.points-row .points-cell.points-w-checkbox {
    display: flex;
    justify-content: center;
}

.points-row .points-cell.points-w-checkbox input {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.points-row .points-cell label {
    cursor: pointer;
}

.points-row .points-cell.points-w-actions button {
    height: 32px;
    line-height: 32px;
}

/* table widths */
.points-w-checkbox {
    min-width: 32px;
}

.points-w-user {
    flex: 100px 4;

    label {
        display: flex;
        flex-direction: column;

        span {
            max-width: 195px;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }
}

.points-w-points {
    flex: 100px 3;
    text-align: right;
    margin-right: 20px;
}

.points-w-general {
    flex: 75px 1 0;
}

.points-w-actions {
    min-width: 32px;
}

/* modal */
.points-wrapper .modal .modal-card {
    flex: unset;
    max-width: 750px;
}

.points-wrapper .modal .modal-inner {
    padding: 0;
    gap: 20px;
}

.points-wrapper .modal .modal-close {
    position: unset;
}

.points-wrapper .modal .modal-inner .points-form-header {
    background-color: #f2f2f2;
    padding: 30px 25px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points-wrapper .modal .modal-inner .points-form-content {
    padding: 0 25px;
    flex: 1;
}

.points-wrapper .modal .modal-inner .points-form-footer {
    padding: 20px 25px;
    border-top: #f2f5f7 1px solid;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 20px;

    #points-welcome {
        display: none;
    }
}

.points-wrapper .points-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow: auto;
}

.points-wrapper .points-form-content p {
    padding: 0;
}

.points-wrapper .points-form-content .message-type-selection {
    margin-bottom: 20px;

    label {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    input {
        height: 20px;
        width: 20px;
        accent-color: var(--primary-color);
        margin-top: 0px;
    }
}

.points-wrapper .modal .modal-inner .points-form-content ul {
    list-style: none;
    padding-left: 15px;
    color: #555;
    line-height: 30px;
    max-height: 300px;
    overflow-y: auto;
    min-height: 150px;
}

.points-wrapper .points-form-content label :is(input, select, textarea) {
    margin-top: 15px;
}

.points-wrapper .modal .points-form-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* buy points */

.points-wrapper .points-buy-modal .points-form-content label {
    position: relative;
}

.points-wrapper .points-buy-modal .points-form-content label input {
    padding-right: 75px;
}

.points-wrapper .points-buy-modal .points-form-content label::after {
    content: "pts.";
    position: absolute;
    top: 46px;
    right: 25px;
    font-size: 16px;

    pointer-events: none;
}

.points-wrapper .modal .modal-inner .points-form-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    background-color: #e0eed5;
    border-radius: 5px;
    padding: 25px;

    font-size: 14px;
    font-weight: 400;
}

.points-wrapper .modal .modal-inner .points-form-info span:nth-child(1) {
    font-size: 16px;
    font-weight: 500;
}

.points-wrapper .modal .modal-inner .points-form-info span.points-form-price {
    font-size: 24px;
    font-weight: 600;
}

/* add to cart */
.variation-add-to-cart-footer .order-for-users-btn {
    margin-right: auto;
}

.order-for-users .user-sizes-overivew {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 5px 30px;

    color: hsla(0, 0%, 13%, 0.5);
    margin-right: auto;
    overflow-x: auto;
}

.order-for-users .user-sizes-overivew div[data-size] {
    color: #2567d2;
}

.order-for-users input[type="checkbox"] {
    vertical-align: middle;
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.emphasize {
    font-weight: 600;
}