/* Pedidos by e-Thinking · página de pago y área de cliente */

.etpd {
    --etpd-primary: #2f91ff;
    --etpd-primary-dark: #187ee9;
    --etpd-text: #17202b;
    --etpd-muted: #6d7785;
    --etpd-border: #e6ebf2;
    --etpd-soft: #f7f9fc;
    --etpd-error: #d93025;
    --etpd-ok: #1e8e3e;
    color: var(--etpd-text);
    font-family: var(--e-global-typography-text-font-family, Nunito), system-ui, sans-serif;
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 0;
}

.etpd *,
.etpd *::before,
.etpd *::after {
    box-sizing: border-box;
}

.etpd h2,
.etpd h3 {
    margin: 0 0 12px;
    color: var(--etpd-text);
    line-height: 1.25;
}

.etpd h2 { font-size: 24px; }
.etpd h3 { font-size: 18px; }

.etpd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.etpd-col {
    display: grid;
    gap: 20px;
}

.etpd-card {
    background: #fff;
    border: 1px solid var(--etpd-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.etpd-grid .etpd-card {
    margin-bottom: 0;
}

.etpd-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.etpd-note {
    color: var(--etpd-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.etpd-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.etpd-lines li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--etpd-border);
}

.etpd-lines small {
    display: block;
    color: var(--etpd-muted);
    font-size: 13px;
}

.etpd-lines strong {
    white-space: nowrap;
    text-align: right;
}

.etpd-lines .etpd-link {
    display: block;
    font-size: 13px;
}

.etpd-totals {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--etpd-soft);
    border-radius: 12px;
}

.etpd-totals div {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.etpd-totals div:first-child strong {
    font-size: 20px;
    color: var(--etpd-primary);
}

.etpd-rows {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 15px;
}

.etpd-rows dt {
    color: var(--etpd-muted);
}

.etpd-rows dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.etpd-payment-element {
    margin: 16px 0;
    min-height: 120px;
}

.etpd-loading {
    color: var(--etpd-muted);
}

.etpd-button,
.etpd .etpd-login input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--etpd-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.etpd-button:hover,
.etpd .etpd-login input[type="submit"]:hover {
    background: var(--etpd-primary-dark);
    color: #fff;
}

.etpd-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.etpd-button-block {
    width: 100%;
}

.etpd-button-small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

.etpd-button-secondary {
    background: #fff;
    color: var(--etpd-primary);
    border: 1px solid var(--etpd-primary);
}

.etpd-button-secondary:hover {
    background: var(--etpd-soft);
    color: var(--etpd-primary-dark);
}

.etpd-button-link {
    background: none;
    border: 0;
    padding: 4px 0;
    color: var(--etpd-primary);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.etpd-link {
    color: var(--etpd-primary);
    font-weight: 600;
}

.etpd-danger {
    color: var(--etpd-error);
}

.etpd-error {
    color: var(--etpd-error);
    font-size: 14px;
    margin: 8px 0;
}

.etpd-legal {
    color: var(--etpd-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0 0;
}

.etpd-pay.is-busy {
    opacity: .85;
}

.etpd-thanks h2 {
    color: var(--etpd-ok);
}

/* Área de cliente */

.etpd-account-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.etpd-notice {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #e8f5ec;
    color: var(--etpd-ok);
}

.etpd-notice.is-error {
    background: #fdecea;
    color: var(--etpd-error);
}

.etpd-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--etpd-border);
}

.etpd-item:last-of-type {
    margin-bottom: 12px;
}

.etpd-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.etpd-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--etpd-soft);
    color: var(--etpd-muted);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.etpd-badge-active,
.etpd-badge-trialing {
    background: #e8f5ec;
    color: var(--etpd-ok);
}

.etpd-badge-past_due,
.etpd-badge-unpaid,
.etpd-badge-incomplete {
    background: #fdecea;
    color: var(--etpd-error);
}

.etpd-order {
    border-bottom: 1px solid var(--etpd-border);
    padding: 12px 0;
}

.etpd-order summary {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    cursor: pointer;
    list-style: none;
}

.etpd-order summary::-webkit-details-marker {
    display: none;
}

.etpd-order[open] summary {
    margin-bottom: 12px;
}

.etpd-order .etpd-lines {
    margin-top: 12px;
}

.etpd-form label,
.etpd-login label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.etpd-form input,
.etpd-login input[type="text"],
.etpd-login input[type="password"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid var(--etpd-border);
    border-radius: 12px;
    font: inherit;
    font-weight: 400;
}

.etpd-form input:disabled {
    background: var(--etpd-soft);
    color: var(--etpd-muted);
}

.etpd-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.etpd-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

@media (max-width: 767px) {
    .etpd {
        padding: 16px 0;
    }

    .etpd-grid,
    .etpd-field-row {
        grid-template-columns: 1fr;
    }

    .etpd-card {
        padding: 18px;
    }

    .etpd-item {
        flex-direction: column;
    }
}

/*
 * Página de pago como un paso más del funnel: misma caja, cabecera, títulos y
 * botones que .tibletech-funnel (style.css del tema, bloque FUNNELS).
 */

.etpd-flow {
    max-width: 480px;
    margin: 10px auto 40px;
    padding: clamp(22px, 4vw, 32px);
    background: #fff;
    border: 1px solid var(--etpd-border);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(28, 60, 120, 0.10);
}

.etpd-flow .etpd-card,
.etpd-flow .etpd-grid .etpd-card {
    margin: 0;
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--etpd-border);
    border-radius: 0;
    background: transparent;
}

.etpd-flow .etpd-card + .etpd-card {
    margin-top: 22px;
}

.etpd-flow > .etpd-card:first-child,
.etpd-flow .etpd-flow-subtitle + .etpd-card {
    padding-top: 0;
    border-top: 0;
}

.etpd-flow h2 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}

.etpd-flow h3 {
    font-size: 17px;
    font-weight: 700;
}

.etpd-flow-subtitle {
    margin: 0 0 26px;
    color: var(--etpd-muted);
    font-size: 15px;
    line-height: 1.5;
}

.etpd-steps {
    margin-bottom: 28px;
}

.etpd-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #fff;
    color: #202a36;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.etpd-back:hover {
    border-color: var(--etpd-primary);
    color: var(--etpd-primary-dark);
}

.etpd-steps-label {
    display: block;
    margin-bottom: 8px;
    color: var(--etpd-muted);
    font-size: 13px;
    font-weight: 600;
}

.etpd-progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #edf1f6;
    border-radius: 20px;
}

.etpd-progress span {
    display: block;
    height: 100%;
    background: var(--etpd-primary);
    border-radius: inherit;
}

.etpd-flow .etpd-rows {
    font-size: 14px;
}

.etpd-flow .etpd-button-block {
    margin-top: 6px;
    font-size: 15px;
}

.etpd-flow .etpd-button:not(.etpd-button-secondary):hover {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .etpd-flow {
        border-radius: 16px;
        padding: 22px 18px;
    }

    .etpd-flow h2 {
        font-size: 24px;
    }

    .etpd-flow .etpd-rows {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .etpd-flow .etpd-rows dd {
        margin-bottom: 8px;
    }
}

/* Botones que son enlaces: el tema pinta los enlaces de otro color */
.etpd a.etpd-button,
.etpd a.etpd-button:hover,
.etpd a.etpd-button:visited {
    color: #fff;
    text-decoration: none;
}

/* Acceso al área de cliente (sin sesión) y «Crea tu contraseña» tras comprar */

.etpd-flow .etpd-form label {
    color: #303b49;
}

.etpd-flow .etpd-form input[type="email"],
.etpd-flow .etpd-form input[type="password"],
.etpd-flow .etpd-form input[type="text"] {
    height: 48px;
    margin-top: 8px;
    border: 1.6px solid rgb(213, 222, 233);
    border-radius: 11px;
    font-size: 15px;
}

.etpd-flow .etpd-form input:focus {
    outline: none;
    border-color: var(--etpd-primary);
    box-shadow: 0 0 0 3px rgba(47, 145, 255, .12);
}

.etpd .etpd-form .etpd-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.etpd .etpd-form .etpd-check input {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--etpd-primary);
}

.etpd-flow .etpd-form .etpd-note {
    margin: -4px 0 12px;
}

.etpd-guest-links {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
}

.etpd-flow .etpd-notice {
    margin-bottom: 18px;
    font-size: 14px;
}

.etpd-setup .etpd-flow-subtitle {
    margin-bottom: 18px;
}
