@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* Área de usuario: Estilos generales */
body .user-page {
    background: linear-gradient(to left, #fff 0%, #fff 70%, #f5f5f5 70%, #f5f5f5 100%);
    color: #373737;
    font-family: 'Roboto', sans-serif;
}
body .dialog-off-canvas-main-canvas > main.user-page > .container-main {
    padding: 0;
    overflow: hidden;
}
.user-page .tabs,
.user-page .content-right {
    padding-top: 50px;
    padding-bottom: 50px;
}
.user-page .tabs {
    background: #f5f5f5;
}
.user-page .content-right {
    background: #fff;
}
.user-page a:hover {
    color:#373737;
}
@media (max-width: 991px) {
    body .user-page {
        background: #fff;
    }
    .user-page .tabs {
        background: #fff;
        padding-bottom: 20px;
        border-bottom: 1px solid #d5d5d5;
    }
    .user-page .content-right {
        padding-top: 30px;
        padding-bottom: 70px;
    }
}
@media (max-width: 767px) {
    .user-page .tabs,
    .user-page .content-right {
        padding-right: 30px;
        padding-left: 30px;
    }
}

/* Estilos de los forms */
.user-page form #edit-field-fecha-de-nacimiento-wrapper h4,
.user-page form {
    font-size: 14px;
    line-height: 22px;
}
.user-page form #edit-field-fecha-de-nacimiento-wrapper h4,
.user-page form p,
.user-page form label {
    margin: 0 0 5px;
}
.user-page form .password-confirm-message,
.user-page form .password-suggestions,
.user-page form .password-strength,
.user-page form .description {
    font-style: italic;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 18px;
}
.user-page form .password-confirm-message,
.user-page form .password-suggestions {
    margin: 0 0 2px;
}
.user-page form .password-suggestions ul {
    margin: 0;
}
.user-page form .password-confirm-message[style="visibility:hidden"] {
    display: none;
}
.user-page form select,
.user-page form .form-number,
.user-page form .form-date,
.user-page form .form-text,
.user-page form .form-email {
    width: 100%;
    margin: 0 0 6px;
    background: #F5F5F5;
    border: none;
    padding: 9px 12px;
}
.user-page form input[type=file] {
    margin: 0 0 6px;
    max-width: 100%;
}
/* botón rojo full width */
.user-page #edit-delete,
.user-page form input[type=submit] {
    width: 100%;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    background: #E43317;
    border: none;
    font-weight: 900;
    font-size: 16px;
    line-height: 18px;
    text-transform: uppercase;
    padding: 14px 10px;
    color: #fff;
    margin-top: 17px;
}
.user-page #edit-delete {
    display: block;
    text-align: center;
}
.user-page .address-container-inline > .form-item {
    margin-right: 0em;
}
/* dos campos en una fila */
.user-page form.profile-customer-address-book-edit-form .address-container-inline,
.user-page form.profile-customer-address-book-add-form .address-container-inline {
    display: flex;
}
.user-page form.profile-customer-address-book-edit-form .address-container-inline > .form-item,
.user-page form.profile-customer-address-book-add-form .address-container-inline > .form-item {
    width: 49%;
}
.user-page form.profile-customer-address-book-edit-form .address-container-inline > .form-item:first-of-type,
.user-page form.profile-customer-address-book-add-form .address-container-inline > .form-item:first-of-type {
    margin: 0 1% 0 0;
}
.user-page form.profile-customer-address-book-edit-form .address-container-inline > .form-item:last-of-type,
.user-page form.profile-customer-address-book-add-form .address-container-inline > .form-item:last-of-type {
    margin: 0 0 0 1%;
}
/* tres campos en una fila */
@media (max-width: 991px) {
    .user-page form.profile-customer-address-book-edit-form .address-container-inline,
    .user-page form.profile-customer-address-book-add-form .address-container-inline {
        flex-wrap: wrap;
    }
    .user-page form.profile-customer-address-book-edit-form .address-container-inline > .form-item,
    .user-page form.profile-customer-address-book-add-form .address-container-inline > .form-item {
        width: 100%;
    }
    .user-page form.profile-customer-address-book-edit-form .address-container-inline > .form-item:first-of-type,
    .user-page form.profile-customer-address-book-edit-form .address-container-inline > .form-item:last-of-type,
    .user-page form.profile-customer-address-book-add-form .address-container-inline > .form-item:first-of-type,
    .user-page form.profile-customer-address-book-add-form .address-container-inline > .form-item:last-of-type {
        margin: 0;
    }
}

/* Sección izquierda (menú vertical) */
.user-page #block-tabs > h2 {
    font-weight: 500;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 25px;
    text-transform: initial;
    color: #373737;
}
.user-page #block-tabs > ul {
    padding: 0 15% 0 0;
}
.user-page #block-tabs > ul li {
    margin: 8px 0;
    list-style: none;
}
.user-page #block-tabs > ul li a {
    width: 100%;
    max-width: 285px;
    border: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    padding: 8px 30px 8px 15px;
    position: relative;
    display: block;
    background: #fff;
    color: #373737;
}
.user-page #block-tabs > ul li a::before {
    content: url("../images/arrow-right-black.svg");
    position: absolute;
    right: 12px;
    top: 7px;
}
.user-page #block-tabs > ul li a.is-active {
    background: #E43317;
    color: #fff;
}
.user-page #block-tabs > ul li a.is-active::before {
    content: url("../images/arrow-right-white.svg");
}
@media (max-width: 991px) {
    .user-page #block-tabs > h2 {
        margin-bottom: 5px;
    }
    .user-page #block-tabs > ul {
        padding: 0;
        margin: 0;
    }
    .user-page #block-tabs > ul li {
        margin: 0;
    }
    .user-page #block-tabs > ul li a {
        max-width: 100%;
        padding: 3px 15px;
    }
    .user-page #block-tabs > ul li a::before,
    .user-page #block-tabs > ul li a.is-active::before {
        display: none;
    }
}

/* Sección derecha estilos generales */
div[data-drupal-messages],
div[data-drupal-messages-fallback] {
    padding: 0 15px;
}
.user-page #block-cssnksubtitlesblock,
.user-page #block-unilabs-content,
#block-unilabs-page-title {
    max-width: 85%;
    /*margin: 0 0 0 auto;*/
    padding: 0 15px;
    font-size: 16px;
    line-height: 22px;
}
.user-page #block-cssnksubtitlesblock .subtitle {
    font-size: 16px;
    line-height: 22px;
    color: #666666;
    margin-bottom: 25px;
}
.user-page #block-unilabs-content .contextual-region .label,
.user-page #block-cssnksubtitlesblock h1 {
    color: #f7a700;
    padding-top: 20px;
    padding-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
    line-height: 31px;
    margin: 0;
    text-transform: uppercase;
}
.user-page #block-cssnksubtitlesblock .goto-back {
    margin-bottom: 40px;
}
.user-page #block-cssnksubtitlesblock .goto-back a {
    position: relative;
    padding-left: 45px;
    color: #373737;
}
.user-page #block-cssnksubtitlesblock .goto-back a::before {
    content: url(../images/arrow-right-black.svg);
    position: absolute;
    left: -1px;
    top: -8px;
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    background: #D5D5D5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 5px 5px 0px;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region {
    display: flex;
    flex-direction: column;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(2) {
    order: 4;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(5) {
    display: flex;
    order: 8;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(6) {
    display: flex;
    order: 9;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(7) {
    order: 6;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(8) {
    order: 5;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(9) {
    order: 7;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(5) > div:first-of-type,
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(6) > div:first-of-type {
    margin-right: 10px;
}
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(2) > div:first-of-type,
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(4) > div:first-of-type,
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(7) > div:first-of-type,
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(8) > div:first-of-type,
.user-page #block-unilabs-content .address-book__profile .contextual-region .quickedit-field:nth-of-type(9) > div:first-of-type {
    display: none;
}
@media (max-width: 991px) {
    .user-page #block-cssnksubtitlesblock,
    .user-page #block-unilabs-content,
    #block-unilabs-page-title {
        max-width: 100%;
    }
    .user-page #block-unilabs-content .contextual-region .label,
    .user-page #block-cssnksubtitlesblock h1 {
        font-size: 22px;
        line-height: 30px;
    }
    .user-page #block-cssnksubtitlesblock .subtitle {
        font-size: 15px;
        line-height: 20px;
    }
    .user-page #block-cssnksubtitlesblock .goto-back {
        margin-top: 12px;
    }
}
@media (max-width: 479px) {
    .user-page #block-unilabs-content .views-element-container.contextual-region {
        margin: 0 -15px;
    }
}

/* Agenda de direcciones */
.user-page #block-unilabs-content .address-book__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.user-page #block-unilabs-content .address-book__container > a {
    border: 1px solid #373737;
    padding: 8px;
    text-align: center;
    color: #373737;
    order: 2;
    margin: 0 0 20px;
}
.user-page #block-unilabs-content .address-book__container .address-book__profiles {
    order: 1;
    flex-wrap: wrap;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile {
    display: flex;
    justify-content: space-between;
    border: 1px solid #D5D5D5;
    padding: 10px;
    flex: auto;
    margin: 0 0 20px;
    width: 100%;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile.address-book__profile--default {
    border: 1px solid #E43317;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile p.address {
    margin: 0;
    color: #373737;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile p.address .given-name,
.user-page #block-unilabs-content .address-book__container .address-book__profile p.address .family-name {
    font-weight: 600;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile.address-book__profile--default p.address .given-name,
.user-page #block-unilabs-content .address-book__container .address-book__profile.address-book__profile--default p.address .family-name {
    color: #E43317;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile.address-book__profile--default p.address .given-name {
    padding-left: 25px;
    position: relative;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile.address-book__profile--default p.address .given-name::before {
    content: url(../images/check-red.svg);
    position: absolute;
    left: -2px;
    top: -3px;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile .address-book__operations {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile .address-book__operations a {
    color: #373737;
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    padding: 8px;
    border: 1px solid #D5D5D5;
    text-align: center;
    min-width: 146px;
}
.user-page #block-unilabs-content .address-book__container .address-book__profile .address-book__operations a:last-of-type {
    margin: 0;
}
@media (max-width: 991px) {
    .user-page #block-unilabs-content .address-book__container .address-book__profile {
        flex-wrap: wrap;
    }
    .user-page #block-unilabs-content .address-book__container .address-book__profile .address-book__operations,
    .user-page #block-unilabs-content .address-book__container .address-book__profile .contextual-region {
        width: 100%;
    }
    .user-page #block-unilabs-content .address-book__container .address-book__profile .address-book__operations {
        margin-top: 10px;
    }
}

/* Editar dirección */
.user-page form.profile-customer-address-book-edit-form .field--name-field-facturacion-como-empresa,
.user-page form.profile-customer-address-book-edit-form .field--name-field-condiciones {
    margin-top: 10px;
}

/* Crear cuenta y Editar cuenta */
.user-page form #edit-contact summary,
.user-page form #edit-timezone summary {
    margin-bottom: 6px;
}
.user-page form #edit-contact div.form-item,
.user-page form #edit-timezone div.form-item {
    padding: 0 0 5px 15px;
}
.user-page form .password-strength__meter {
    margin-bottom: 2px;
}

/* Pedidos */
.user-page .views-row {
    background: #F5F5F5;
    font-size: 14px;
    line-height: 22px;
    color: #373737;
    margin: 5px 0;
    display: flex;
    position: relative;
    padding: 8px 12px;
}
.user-page .views-row a {
    color: #373737;
}
.user-page .views-row .views-field .views-label {
    color: #666666;
}
.user-page .views-row .views-field-order-number {
    position: absolute;
    width: 28%;
    display: flex;
    align-items: flex-start;
}
.user-page .views-row .views-field-order-number .views-label {
    margin-right: 10px;
}
.user-page .views-row .views-field-order-number .field-content::before {
    content: "#";
}
.user-page .views-row .views-field-placed {
    width: 28%;
    margin-right: 10%;
    display: flex;
    align-items: flex-end;
}
.user-page .views-row .views-field-placed .views-label {
    margin-right: 10px;
}
.user-page .views-row .views-field-total-price__number {
    width: 20%;
    display: flex;
    flex-direction: column;
}
.user-page .views-row .views-field-state {
    width: 25%;
    margin-right: 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.user-page .user-order-details .status-reference .col-lg-6:last-of-type span,
.user-page .views-row .views-field-state .field-content span {
    padding: 5px 10px;
    color: #fff;
}
.user-page .user-order-details .status-reference .col-lg-6:last-of-type span.Completado,
.user-page .views-row .views-field-state .field-content span.Completado {
    background: #70CD84;
}
.user-page .user-order-details .status-reference .col-lg-6:last-of-type span.Pendiente,
.user-page .views-row .views-field-state .field-content span.Pendiente  {
    background: #89D3EA;
    color: #225565;
}
.user-page .user-order-details .status-reference .col-lg-6:last-of-type span.Cancelado,
.user-page .views-row .views-field-state .field-content span.Cancelado {
    background: #CD0A28;
}
.user-page .views-row .views-field-view-commerce-order {
    width: 12%;
    display: flex;
    align-items: center;
}
.user-page .views-row .views-field-view-commerce-order .field-content {
    display: flex;
    justify-content: space-around;
    width: 100%;
}
.user-page .views-row .views-field-view-commerce-order .field-content a:not(.right_download,.right_viewbill) {
    display: none;
}
.user-page .views-row .views-field-view-commerce-order a.right_download,
.user-page .views-row .views-field-view-commerce-order a.right_viewbill {
    width: 25px;
    height: 25px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.user-page .views-row .views-field-view-commerce-order a.right_download i,
.user-page .views-row .views-field-view-commerce-order a.right_viewbill i {
    color:#E43317;
}
.user-page .views-row .views-field-total-price__number .field-content,
.user-page .views-row .views-field-placed .field-content {
    font-size: 18px;
    line-height: 27px;
}
.user-page .pager #pagination-heading {
    display: none;
}
.user-page .pager ul {
    display: flex;
    padding: 20px 0 0 10px;
}
.user-page .pager ul li {
    list-style: none;
    padding: 5px;
}
.user-page .pager ul li a {
    color: #666666;
}
.user-page .pager ul li.is-active a {
    color: #E43317;
}
@media (max-width: 1199px) {
    .user-page .views-row .views-field-order-number,
    .user-page .views-row .views-field-placed {
        width: 35%;
        margin-right: 3%;
    }
}
@media (max-width: 479px) {
    .user-page .views-row {
        flex-wrap: wrap;
        padding: 8px 10px;
    }
    .user-page .views-row .views-field-order-number {
        position: static;
        width: 49%;
        align-items: flex-end;
        margin-right: 1%;
    }
    .user-page .views-row .views-field-placed {
        width: 50%;
        margin-right: 0%;
        justify-content: flex-end;
    }
    .user-page .views-row .views-field-order-number,
    .user-page .views-row .views-field-placed {
        margin-bottom: 10px;
    }
    .user-page .views-row .views-field-total-price__number {
        width: 40%;
        flex-direction: row;
        align-items: flex-end;
    }
    .user-page .views-row .views-field-total-price__number .views-label {
        margin-right: 10px;
    }
    .user-page .views-row .views-field-state {
        width: 40%;
        margin-right: 0;
        justify-content: center;
    }
    .user-page .views-row .views-field-view-commerce-order {
        width: 20%;
    }
    .user-page .views-row .views-field-total-price__number .field-content,
    .user-page .views-row .views-field-placed .field-content {
        font-size: 16px;
        line-height: 22px;
    }
}

/* Medios de pago */
.user-page #block-unilabs-content > table.responsive-enabled,
.user-page #block-unilabs-content > table.responsive-enabled > thead,
.user-page #block-unilabs-content > table.responsive-enabled > tbody {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.user-page #block-unilabs-content > table.responsive-enabled tr {
    font-size: 14px;
    line-height: 22px;
    padding: 8px 12px;
}
.user-page #block-unilabs-content > table.responsive-enabled > tbody > tr {
    background: #F5F5F5;
    color: #373737;
    margin: 5px 0;
}
.user-page #block-unilabs-content > table.responsive-enabled tr {
    width: 100%;
    display: flex;
}
.user-page #block-unilabs-content > table.responsive-enabled tr th:first-of-type,
.user-page #block-unilabs-content > table.responsive-enabled tr td:first-of-type {
    width: 50%;
}
.user-page #block-unilabs-content > table.responsive-enabled tr th:nth-of-type(2),
.user-page #block-unilabs-content > table.responsive-enabled tr td:nth-of-type(2) {
    width: 25%;
    display: flex;
    align-items: center;
}
.user-page #block-unilabs-content > table.responsive-enabled tr th:last-of-type,
.user-page #block-unilabs-content > table.responsive-enabled tr td:last-of-type {
    width: 25%;
    display: flex;
    align-items: center;
}
.user-page #block-unilabs-content > table.responsive-enabled ul.links {
    margin: 0;
    padding: 0;
}
.user-page #block-unilabs-content > table.responsive-enabled ul.links li {
    list-style: none;
}
.user-page #block-unilabs-content > table.responsive-enabled ul.links li:last-of-type {
    display: none;
}
.user-page #block-unilabs-content > table.responsive-enabled ul.links li a {
    background: #fff;
    text-align: center;
    padding: 4px 12px;
    text-transform: uppercase;
    font-weight: 600;
}
@media (max-width: 575px) {
    .user-page #block-unilabs-content > table.responsive-enabled tr th:first-of-type, 
    .user-page #block-unilabs-content > table.responsive-enabled tr td:first-of-type {
        display: flex;
        flex-wrap: wrap;
    }
    .user-page #block-unilabs-content > table.responsive-enabled tr th:first-of-type .payment-method-icon--visa, 
    .user-page #block-unilabs-content > table.responsive-enabled tr td:first-of-type .payment-method-icon--visa {
        width: 100%;
        background-repeat: no-repeat;
    }
    .user-page #block-unilabs-content > table.responsive-enabled tr th:nth-of-type(2), 
    .user-page #block-unilabs-content > table.responsive-enabled tr td:nth-of-type(2) {
        width: 20%;
    }
    .user-page #block-unilabs-content > table.responsive-enabled tr th:last-of-type,
    .user-page #block-unilabs-content > table.responsive-enabled tr td:last-of-type {
        width: 30%;
    }
}

/* Detalles de pedido */
.user-page .user-order-details .col-lg-6:last-of-type {
    text-align: right;
}
.user-page .user-order-details label {
    margin-bottom: 0;
}
.user-page .user-order-details .header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d5d5d5;
}
.user-page .user-order-details .header label,
.user-page .user-order-details .header span {
    display: block;
    width: 100%;
}
.user-page .user-order-details .items .item > .price .quantity,
.user-page .user-order-details .order-date label,
.user-page .user-order-details .header label {
    font-size: 14px;
    color: #666666;
}
.user-page .user-order-details .status-reference {
    margin-bottom: 10px;
}
.user-page .user-order-details .status-reference .col-lg-6:first-of-type span {
    font-weight: 500;
    font-size: 24px;
    line-height: 34px;
}
.user-page .user-order-details .status-reference .col-lg-6:last-of-type span {
    background: #70CD84;
    font-size: 14px;
}
.user-page .user-order-details .order-date .date {
    font-size: 18px;
    line-height: 27px;
    margin-left: 10px;
}
.user-page .user-order-details .order-date {
    margin-bottom: 10px;
}

.user-page .user-order-details .items {
    margin-bottom: 140px;
}
.user-page .user-order-details .items .item {
    margin: 10px 0;
    display: flex;
    align-items: center;
}
.user-page .user-order-details .items .item .image,
.user-page .user-order-details .items .item .title,
.user-page .user-order-details .items .item > .price {
    max-width: 100%;
    flex: auto;
    display: flex;
}
.user-page .user-order-details .items .item .image {
    width: 15%;
    justify-content: center;
    align-items: center;
}
.user-page .user-order-details .items .item .title {
    width: 65%;
    margin: 0 0 0 15px;
    align-items: center;
}
.user-page .user-order-details .items .item .title span {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #373737;
    text-transform: initial;
}
.user-page .user-order-details .items .item > .price {
    width: 20%;
    flex-direction: column;
    align-items: flex-end;
}
.user-page .user-order-details .items .item > .price .price {
    font-size: 18px;
}
.user-page .user-order-details .order-total > .col-lg-12 {
    display: flex;
    justify-content: space-between;
}
.user-page .user-order-details .order-total .discount,
.user-page .user-order-details .order-total .subtotal {
    color: #666666;
    margin: 2px 0;
}
.user-page .user-order-details .order-total .total {
    margin-top: 8px;
    padding-top: 17px;
    border-top: 1px solid #d5d5d5;
}
.user-page .user-order-details .order-total .total label {
    font-size: 18px;
}
.user-page .user-order-details .order-total .total .price {
    font-size: 24px;
    line-height: 22px;
    color:#E43317;
}
@media (max-width: 991px) {
    .user-page .user-order-details .header > .col-lg-6,
    .user-page .user-order-details .status-reference > .col-lg-6 {
        width: 50%;
    }
}
@media (max-width: 479px) {
    .user-page .user-order-details {
        margin: 0 -15px;
    }
    .user-page .user-order-details .items .item .title span {
        font-size: 15px;
        line-height: 20px;
    }
    .user-page .user-order-details .items .item > .price .price {
        font-size: 16px;
    }
    .user-page .user-order-details .items .item .title {
        margin: 0 8px;
    }
}