body {
    margin: 0;
    font-size: 14px;
    overflow: hidden scroll;
    font-family: var(--font);
    background-color: var(--outer-back);
    color: var(--text);
    background-size: cover;
    background-attachment: fixed;
    transition: 0.3s;
}

.page-wrapper {
    width: 90%;
    max-width: 860px;
    margin: 0 auto;
    transition: 0.3s;
}

body.no-overflow {
    overflow: hidden;
}

.order-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0 30px;
    padding: 30px;
}

main.order-main {
    width: 100%;
}

.order-aside {
    width: 420px;
    flex-shrink: 0;
    flex-grow: 1;
}


/* COMMON */

.sub-head {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--shadow);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.portlet {}

.order-wrapper section {
    margin-bottom: 30px;
    border: 1px solid var(--shadow);
    padding: 20px;
    border-radius: 10px;
}


/* ORDER PLACED */

.order-placed {
    padding: 30px;
    background-color: var(--green-shade);
    margin-bottom: 30px;
}

.order-placed h1 {
    font-family: var(--font);
    color: var(--green);
    font-size: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-placed p {
    color: var(--green-dark);
}

.order-placed .title:before {
    content: "\e931";
    font-family: "icons";
    font-weight: normal;
    font-size: 24px;
}


/* ORDER INFO */

.order-info-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 50px;
}

.order-info-div {
    display: flex;
    flex-direction: column;
}

.order-info-div span {
    color: var(--text);
    font-size: 16px;
}

.order-info-div b {
    color: var(--dark);
    font-size: 16px;
    user-select: text;
}

.order-info-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.print-page,
.cancel-order,
.pay-order {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
    font-weight: 600;
    padding: 15px 15px;
    border-radius: 10px;
    transition: 0.2s;
}

.print-page:before,
.cancel-order:before,
.pay-order:before {
    font-family: icons;
    font-weight: normal;
}

.print-page:before {
    content: "\e967";
}

.cancel-order:before {
    content: "\e969";
}

.pay-order:before {
    content: "\e921";
}

.cancel-order {
    background-color: var(--red-shade);
    color: var(--red-dark);
}

.pay-order {
    background-color: var(--green-shade);
    color: var(--green-dark);
}

.print-page {
    background-color: var(--shadow);
}

.cancel-order:hover {
    opacity: 1;
}


/* ORDER STATUS */

.order-status-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.order-tracking {
    display: flex;
    flex-direction: column;
    background-color: var(--step);
    padding: 10px 15px;
    border-radius: 5px;
    flex-shrink: 0;
    -webkit-print-color-adjust: exact;
}

.order-tracking span {
    color: var(--dark);
    opacity: 0.9;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-tracking output {
    font-weight: 600;
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    word-break: break-all;
    user-select: all;
}

.order-tracking span:before {
    content: "\e944";
    font-family: icons;
    font-size: 16px;
}

.order-status-timeline div {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-inline-start: 30px;
    height: 70px;
    justify-content: flex-end;
}

.order-status-timeline div:before {
    content: "\e95e";
    font-family: icons;
    position: absolute;
    inset-inline-start: 0;
    bottom: 15px;
    font-size: 20px;
    color: var(--text);
}

.order-status-timeline div b {
    line-height: 100%;
}

.order-status-timeline div b {
    color: var(--text);
    margin-bottom: 5px;
}

.order-status-timeline div span {
    line-height: 100%;
    color: var(--text);
}

.order-status-timeline div:after {
    content: "";
    position: absolute;
    inset-inline-start: 8px;
    bottom: 40px;
    width: 3px;
    height: calc(100% - 30px);
    background-color: var(--shadow);
    border-radius: 100px;
    -webkit-print-color-adjust: exact;
}

.order-status-timeline div.done:before {
    content: "\e931";
    color: var(--key);
}

.order-status-timeline div.done b {
    color: var(--dark);
}

.order-status-timeline div:first-of-type:after {
    display: none;
}

.order-status-timeline div:first-of-type {
    height: auto
}

.order-status-timeline div.done+div:after {
    background-color: var(--text);
}

.order-status-timeline div.done:after {
    background-color: var(--key) !important;
}

.item-state {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-state span {
    font-weight: normal;
    line-height: 1.5em;
    padding: 5px 15px;
    border-radius: 2px;
    color: var(--light);
    display: flex;
    align-items: center;
    border-radius: 100px;
}

.item-state [data-status="paid"],
.item-state [data-status="shipped"],
.item-state [data-status="tracked"],
.item-state [data-status="delivered"] {
    background-color: var(--green);
}

.item-state [data-status="unpaid"],
.item-state [data-status="untracked"],
.item-state [data-status="unshipped"],
.item-state [data-status="undelivered"] {
    background-color: var(--shades);
    color: var(--head)
}

.item-state [data-status="cancelled"] {
    background-color: var(--red-dark);
}


/* ORDER SUMMARY */

.order-summary-wrap li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}

.order-summary-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-summary-wrap li b {
    color: var(--head);
}

.order-summary-wrap li:last-of-type {
    border-top: 1px solid var(--shadow);
    padding-top: 20px;
}


/* ORDER ITEMS */

.order-items-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    display: flex;
    gap: 20px;
}

.order-item:not(:last-of-type) {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--shadow);
}

.item-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 10px;
}

.item-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
}

.item-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
    gap: 0 30px;
    color: var(--head);
    font-size: 12px;
}

.item-info b {
    color: var(--key);
}

.item-info b a:hover {
    text-decoration: underline;
}

.item-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 12px;
    background-color: var(--shades);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--shadow);
}

.item-action:hover {
    color: var(--dark);
    border-color: var(--text-light);
}

.item-action:before {
    font-family: "icons";
    color: var(--key);
    font-weight: 600;
}

.item-action.leave-review:before {
    content: "\e93a";
}

.item-action.contact-seller:before {
    content: "\e9a9";
}

.item-action.revise-item:before {
    content: "\e966";
}

.item-action.complain:before {
    content: "\e96a";
}

.item-action.request-shipping:before {
    content: "\e976";
}

.item-action.send-stored:before {
    content: "\e991";
}


/* SHIPPING */

[data-country]:after {
    content: attr(data-country);
}

.order-shipping-wrap li {
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
    color: var(--head);
    gap: 0 10px;
    font-size: 14px;
    justify-content: space-between;
}

.order-shipping-wrap li span {
    min-width: 70px;
    font-weight: normal;
}

.order-shipping-wrap i {
    font-style: normal;
}


/* RESPONSIVE */

@media screen and (max-width: 1280px) {
    .order-wrapper {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 560px) {
    .item-info {
        display: flex;
        flex-wrap: wrap;
    }

    .order-aside {
        width: auto;
        flex-shrink: 1;
    }

    .item-thumb {
        width: 20vw;
        height: 20vw;
    }

    .order-tracking {
        width: 100%;
    }

    .portlet {
        padding: 5vw;
    }

    .order-item {
        gap: 5vw;
    }
}

@media print {
    body {
        background-color: transparent;
    }

    .order-wrapper {
        margin: 0
    }

    .main-header,
    .main-footer,
    .order-placed,
    .item-actions,
    .order-info-actions {
        display: none;
    }

    .order-wrapper {
        flex-wrap: wrap;
    }

    .wrapper {
        width: 100%;
        max-width: 100%;
    }

    .portlet {
        border-radius: 0;
        padding: 10px;
    }

    .item-thumb {
        display: none;
    }

    .sub-head {
        font-size: 20px;
        font-weight: normal;
    }
}

.item-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}


/* ITEM ACTIONS MODAL */

.lightbox .item-wrap {
    padding: 15px;
    border: 1px solid var(--shadow);
    border-radius: 5px;
    margin-bottom: 20px;
    flex-direction: row;
    gap: 20px
}

.lightbox .item-thumb {
    width: 70px;
    height: 70px;
}

.lightbox .item-info {
    display: flex;
    flex-wrap: wrap;
}

.lightbox .item-title {
    font-size: 14px;
}

.lightbox textarea {
    width: 100%;
    height: 100px;
    min-height: 100px;
    border: 1px solid var(--shadow);
    padding: 10px;
    color: var(--dark);
    transition: 0.1s;
    border-radius: 5px;
}

.lightbox textarea:focus {
    border-color: var(--step);
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-footer button {
    background-color: var(--shades);
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    opacity: 0.9;
    transition: 0.1s;
}

.form-footer button:hover {
    opacity: 1;
}

.form-footer .submit-feedback {
    background-color: var(--key);
    color: var(--light);
    padding: 15px 20px;
}

.form-footer .submit-message {
    background-color: var(--key);
    color: var(--light);
    padding: 15px 20px;
}


/* RATING MODAL */

.rate-parts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.rate-parts li {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stars span {
    width: 16px;
    height: 16px;
    color: var(--shadow);
    font-size: 16px;
    transition: 0.1s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stars span:before {
    content: "\e93a";
    font-family: icons;
}

.stars[data-count="1"] span:nth-of-type(1):before,
.stars[data-count="2"] span:nth-of-type(-n+2):before,
.stars[data-count="3"] span:nth-of-type(-n+3):before,
.stars[data-count="4"] span:nth-of-type(-n+4):before,
.stars[data-count="5"] span:nth-of-type(-n+5):before {
    content: "\e939";
    color: var(--key);
}

.rate-parts li b {
    width: 190px;
    font-weight: 500;
}

.review-wrapper .alert {
    padding: 15px;
}

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

.rate-options label span {
    border: 1px solid var(--shadow);
    padding: 8px 17px;
    line-height: 100%;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
}

.rate-options input:checked+span {
    background-color: var(--key);
    color: var(--light);
    border-color: transparent;
}

form.cancel-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lightbox-form-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid var(--shades);
    padding-top: 20px;
}


/* REQUEST SHIPPING */

label.address {
    border: 1px solid var(--text-light);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    /* display: grid; */
    /* grid-template-columns: auto 1fr; */
    gap: 0 30px;
    align-items: center;
    cursor: pointer;
}

label.address h3 {
    font-size: 16px;
    display: flex;
    align-content: center;
}

.edit-address {
    grid-row: 1/3;
    color: var(--blue);
    font-weight: 600;
    margin-inline-start: auto;
    font-size: 14px;
}

label.address.primary:before {
    content: attr(data-label);
    position: absolute;
    top: -12px;
    inset-inline-start: 20px;
    background-color: var(--light);
    padding: 0 10px;
    border-radius: 100px;
    font-weight: 600;
    color: var(--blue);
}

.addresses-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

label.address .address-selector span:before {
    content: "\e95e";
    font-family: icons;
    font-size: 20px;
}

label.address .address-selector {
    grid-row: 1/3;
}

label.address .address-selector input:checked+span:before {
    content: "\e957";
    color: var(--blue);
}

label.address.primary {
    border-color: var(--key);
}

#new-address-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    border-radius: 5px;
    width: 100%;
}

#new-address-form>label {
    flex-grow: 1;
    width: max(45%, 280px);
    position: relative;
}

.phone-wrap {
    display: flex;
    align-items: center;
    max-width: inherit;
    direction: ltr;
    border: 1px solid var(--shadow);
    border-radius: 5px;
}

.phone-wrap #prefix {
    width: 80px;
    color: var(--dark);
    margin-inline-end: -4px;
    order: -1
}

.form-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.addresses-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

[data-country]:after {
    content: attr(data-country);
}


/* DISPUTE MODAL */

form.opendispute-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h2.opendispute-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    margin: 0 auto;
}

h2.opendispute-head:before {
    content: "\e99e";
    font-family: icons;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background-color: var(--step);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    font-size: 18px;
    padding-top: 4px;
}

.opendispute-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.opendispute-feilds {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.az-label {
    display: flex;
    flex-direction: column;
}


/* .az-label>b {
    font-size: 18px;
} */

.az-label>span {
    margin-bottom: 5px;
    opacity: 0.7;
}


/* ITEMS IN DISPUTE */

.dispute-items {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--shadow);
}

.dispute-items>h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.dispute-items ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.ditem {
    position: relative;
    display: grid;
    gap: 5px 15px;
    grid-template: auto 1fr / auto 1fr;
    width: 100%;
    max-width: 420px;
}

.ditem-info {
    display: flex;
    flex-direction: column;
    gap: 5px 15px;
    font-size: 12px;
    margin: 10px 0;
}

.ditem-info span {
    line-height: 1.3em;
}

.ditem-info b {
    color: var(--key-dark);
}

.ditem-info b a:hover {
    text-decoration: underline;
}

a.view-order {
    color: var(--blue);
    font-weight: 600;
    width: max-content;
    display: flex;
    font-size: 12px;
    font-weight: normal;
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ditem-title {
    font-size: 14px;
    line-height: 20px;
    color: var(--text);
}

.ditem-thumb {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    grid-row: 1/3;
    border: 1px solid var(--shadow);
}


/* ATTACHMENTS */

u.attach-button {
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: .8;
    cursor: pointer;
    color: var(--key);
    display: flex;
    gap: 5px;
    font-weight: 600;
    text-decoration: none;
    width: max-content;
}

u.attach-button:hover {
    opacity: 1;
}

u.attach-button:before {
    content: "\e9a6";
    font-family: icons;
    font-size: 16px;
    font-weight: normal;
}

.attach-label.disabled u {
    filter: grayscale(1);
}

.attachs-items {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.attachs-items:empty {
    display: none;
}

.att {
    width: 70px;
    height: 70px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--text);
    position: relative;
    align-items: center;
    justify-content: center;
}

.att img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.att button {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    background-color: var(--red);
    color: #FFF;
    font-weight: normal;
    width: 25px;
    height: 25px;
}

.att button:before {
    content: "\e900";
    font-family: icons;
}

.item-title {
    font-size: 14px;
    line-height: 20px;
    max-width: calc(100% - 90px);
    color: var(--text);
    will-change: color;
}

@media all and (max-width: 480px) {
    .page-wrapper {
        width: 100%;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    inset-inline-end: 30px;
    border-radius: 100px;
    width: 60px;
    height: 60px;
    background: #25D366 url("/assets/images/whatsapp2.svg") no-repeat center / 30px;
    z-index: 99999999999;
    opacity: .95;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    opacity: 1;
}