/* ============================================================
   VIVA FITNESS - AREA DA CLIENTE PREMIUM V1
   Escopo isolado. Nao altera vf_store.css.
   ============================================================ */

:root {
    --vfc-ink: #17352f;
    --vfc-soft: #60746f;
    --vfc-green: #245f54;
    --vfc-green-dark: #194a42;
    --vfc-mint: #edf7f4;
    --vfc-mint-strong: #dceee9;
    --vfc-line: #dce7e4;
    --vfc-white: #ffffff;

    --vfc-success: #17633e;
    --vfc-success-bg: #eaf8f0;

    --vfc-warning: #82600c;
    --vfc-warning-bg: #fff8e7;

    --vfc-danger: #9d3434;
    --vfc-danger-bg: #fff3f3;

    --vfc-shadow: 0 18px 48px rgba(26, 73, 64, .08);
}

body.vf-customer-premium {
    background:
        linear-gradient(180deg, #f2f8f6 0, #ffffff 330px);
    color: var(--vfc-ink);
}

.vf-customer-premium *,
.vf-customer-premium *::before,
.vf-customer-premium *::after {
    box-sizing: border-box;
}

.vf-customer-premium a {
    color: var(--vfc-green);
}

.vf-customer-premium a:hover {
    color: var(--vfc-green-dark);
}

.vf-customer-premium h1,
.vf-customer-premium h2,
.vf-customer-premium h3 {
    color: var(--vfc-ink);
}

.vf-customer-premium input:not([type="checkbox"]):not([type="radio"]),
.vf-customer-premium select,
.vf-customer-premium textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbdad6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--vfc-ink) !important;
    padding: 10px 13px !important;
    outline: none;
    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

.vf-customer-premium textarea {
    min-height: 100px;
}

.vf-customer-premium input:focus,
.vf-customer-premium select:focus,
.vf-customer-premium textarea:focus {
    border-color: #79a99f !important;
    box-shadow: 0 0 0 3px rgba(71, 127, 116, .12) !important;
}

.vf-customer-premium form {
    accent-color: var(--vfc-green);
}

.vf-customer-premium button {
    border-radius: 10px;
}

/* Remove cores legadas apenas dentro da area da cliente */

.vf-customer-premium .text-pink-500,
.vf-customer-premium .text-pink-600,
.vf-customer-premium .text-pink-700,
.vf-customer-premium .text-purple-500,
.vf-customer-premium .text-purple-600,
.vf-customer-premium .text-purple-700 {
    color: var(--vfc-green) !important;
}

.vf-customer-premium .bg-pink-500,
.vf-customer-premium .bg-pink-600,
.vf-customer-premium .bg-pink-700,
.vf-customer-premium .bg-purple-500,
.vf-customer-premium .bg-purple-600,
.vf-customer-premium .bg-purple-700 {
    background-color: var(--vfc-green) !important;
}

.vf-customer-premium .hover\:bg-pink-600:hover,
.vf-customer-premium .hover\:bg-pink-700:hover,
.vf-customer-premium .hover\:bg-purple-600:hover,
.vf-customer-premium .hover\:bg-purple-700:hover {
    background-color: var(--vfc-green-dark) !important;
}

/* Superficies */

.vf-customer-premium .shadow,
.vf-customer-premium .shadow-md,
.vf-customer-premium .shadow-lg,
.vf-customer-premium .shadow-xl {
    box-shadow: var(--vfc-shadow) !important;
}

.vf-customer-premium .rounded,
.vf-customer-premium .rounded-md,
.vf-customer-premium .rounded-lg,
.vf-customer-premium .rounded-xl {
    border-radius: 14px !important;
}

.vf-customer-premium .border {
    border-color: var(--vfc-line) !important;
}

.vf-customer-premium .bg-white {
    border-color: var(--vfc-line);
}

/* LOGIN / LOGOUT */

body.vf-customer-premium .min-h-screen {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(206, 235, 227, .55),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #f3f9f7 0%,
            #ffffff 70%
        ) !important;
}

.vf-customer-premium main {
    min-width: 0;
}

/* PEDIDOS */

.vf-customer-orders {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--vfc-line);
    border-radius: 18px;
    background: var(--vfc-white);
    box-shadow: var(--vfc-shadow);
}

.vf-customer-orders .overflow-x-auto {
    overflow-x: auto;
}

.vf-customer-orders table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
}

.vf-customer-orders thead {
    background: #f3f8f6 !important;
}

.vf-customer-orders th {
    padding: 13px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--vfc-line) !important;
    color: #647873 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .075em;
    text-align: left;
    text-transform: uppercase;
}

.vf-customer-orders td {
    padding: 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f0 !important;
    color: #314943;
    font-size: 12px;
    vertical-align: middle;
}

.vf-customer-orders tbody tr {
    transition: background .15s ease;
}

.vf-customer-orders tbody tr:hover {
    background: #f8fbfa !important;
}

.vf-customer-orders tbody tr:last-child td {
    border-bottom: 0 !important;
}

.vf-customer-orders td a {
    color: var(--vfc-green) !important;
    font-weight: 750;
    text-decoration: none;
}

.vf-customer-orders td a:hover {
    color: var(--vfc-green-dark) !important;
    text-decoration: underline;
}

/* Status existentes */

.vf-customer-orders .bg-green-100 {
    background: var(--vfc-success-bg) !important;
    color: var(--vfc-success) !important;
}

.vf-customer-orders .bg-yellow-100 {
    background: var(--vfc-warning-bg) !important;
    color: var(--vfc-warning) !important;
}

.vf-customer-orders .bg-red-100 {
    background: var(--vfc-danger-bg) !important;
    color: var(--vfc-danger) !important;
}

.vf-customer-orders td span[class*="rounded"] {
    display: inline-block;
    border-radius: 999px !important;
    padding: 6px 9px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

/* MOBILE */

@media (max-width: 760px) {

    body.vf-customer-premium {
        overflow-x: hidden;
    }

    .vf-customer-premium input:not([type="checkbox"]):not([type="radio"]),
    .vf-customer-premium select,
    .vf-customer-premium button {
        min-height: 44px;
    }

    .vf-customer-orders {
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(26, 73, 64, .07);
    }

    .vf-customer-orders .overflow-x-auto {
        overflow: visible;
    }

    .vf-customer-orders table,
    .vf-customer-orders tbody,
    .vf-customer-orders tr,
    .vf-customer-orders td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .vf-customer-orders table {
        min-width: 0;
    }

    .vf-customer-orders thead {
        display: none;
    }

    .vf-customer-orders tbody {
        display: block;
        padding: 5px 12px 14px;
    }

    .vf-customer-orders tbody tr {
        display: block;
        margin-top: 10px;
        padding: 13px;
        border: 1px solid var(--vfc-line);
        border-radius: 14px;
        background: #fff;
    }

    .vf-customer-orders td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 38px;
        padding: 8px 0 !important;
        border-bottom: 1px solid #edf2f0 !important;
        text-align: right !important;
    }

    .vf-customer-orders td::before {
        flex: 0 0 auto;
        color: #7b8d89;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .065em;
        text-transform: uppercase;
    }

    .vf-customer-orders td:nth-child(1)::before {
        content: "Pedido";
    }

    .vf-customer-orders td:nth-child(2)::before {
        content: "Data";
    }

    .vf-customer-orders td:nth-child(3)::before {
        content: "Status";
    }

    .vf-customer-orders td:nth-child(4)::before {
        content: "Pagamento";
    }

    .vf-customer-orders td:nth-child(5)::before {
        content: "Total";
    }

    .vf-customer-orders td:nth-child(6) {
        display: block;
        padding-top: 11px !important;
        border-bottom: 0 !important;
        text-align: left !important;
    }

    .vf-customer-orders td:nth-child(6)::before {
        content: "Acoes";
        display: block;
        margin-bottom: 8px;
    }

    .vf-customer-orders td:nth-child(6) > div {
        margin: 5px 0;
    }

    .vf-customer-orders td:nth-child(6) a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
    }
}

@media (max-width: 380px) {

    .vf-customer-orders tbody {
        padding-left: 9px;
        padding-right: 9px;
    }

    .vf-customer-orders tbody tr {
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vf-customer-premium *,
    .vf-customer-premium *::before,
    .vf-customer-premium *::after {
        transition: none !important;
    }
}
/* ============================================================
   VIVA_CUSTOMER_ORDERS_MOBILE_V2
   Meus Pedidos - cards reais no viewport mobile
   ============================================================ */

@media screen and (max-width: 760px) {

    body.vf-customer-premium {
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body.vf-customer-premium .vf-customer-orders {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.vf-customer-premium .vf-customer-orders .overflow-x-auto {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.vf-customer-premium .vf-customer-orders table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.vf-customer-premium .vf-customer-orders thead {
        display: none !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody tr {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 14px !important;
        border: 1px solid #dce7e4 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 22px rgba(26, 73, 64, .055) !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody tr:hover {
        background: #ffffff !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 38px !important;
        padding: 8px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #edf2f0 !important;
        color: #314943 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        text-align: right !important;
        white-space: normal !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td::before {
        display: block !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        color: #71847f !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        letter-spacing: .065em !important;
        text-align: left !important;
        text-transform: uppercase !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(1)::before {
        content: "Pedido" !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(2)::before {
        content: "Data" !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(3)::before {
        content: "Status" !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(4)::before {
        content: "Pagamento" !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(5)::before {
        content: "Total" !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(6) {
        display: block !important;
        padding-top: 12px !important;
        padding-bottom: 0 !important;
        border-bottom: 0 !important;
        text-align: left !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(6)::before {
        content: "Acoes" !important;
        margin-bottom: 9px !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(6) > div {
        display: block !important;
        margin: 0 !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(6) a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 42px !important;
        margin-top: 7px !important;
        padding: 9px 12px !important;
        border: 1px solid #d5e4e0 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #245f54 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td:nth-child(6) a:hover {
        background: #edf7f4 !important;
        color: #194a42 !important;
        text-decoration: none !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td span[class*="rounded"] {
        flex: 0 0 auto !important;
        font-size: 10px !important;
    }
}

@media screen and (max-width: 380px) {

    body.vf-customer-premium .vf-customer-orders tbody tr {
        padding: 12px !important;
    }

    body.vf-customer-premium .vf-customer-orders tbody td {
        gap: 12px !important;
        font-size: 12px !important;
    }
}
