.prontoz-po-wrapper {
    --ppo-surface: linear-gradient(180deg, #ffffff 0%, #fcf8ff 100%);
    --ppo-surface-alt: #fbf7ff;
    --ppo-shadow: 0 18px 36px rgba(33, 0, 58, 0.08);
    --ppo-muted: #6d5b80;
    --ppo-divider: rgba(33, 0, 58, 0.1);
    margin: 22px 0;
    border: 1px solid var(--ppo-border, #d7c6ef);
    border-radius: calc(var(--ppo-radius, 18px) + 4px);
    padding: 20px;
    background: var(--ppo-surface);
    box-shadow: var(--ppo-shadow);
    color: var(--ppo-text, #21003a);
    font-family: var(--ppo-font, 'Heuvel Grotesk, system-ui, sans-serif');
    font-size: calc(16px * var(--ppo-text-scale, 1));
}

.prontoz-order-tracking {
    --pto-track-primary: #a53eed;
    --pto-track-dark: #21003a;
    --pto-track-muted: #6f6380;
    --pto-track-success: #16a34a;
    font-family: "Heuvel Grotesk", system-ui, sans-serif;
    color: var(--pto-track-dark);
    width: 100%;
    max-width: var(--pto-track-max-width, 1320px);
    margin: 0 auto;
}

.prontoz-order-tracking-disabled,
.prontoz-order-tracking-hero,
.prontoz-order-tracking-form,
.prontoz-order-tracking-result {
    border: 1px solid rgba(165, 62, 237, 0.18);
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #fbf7ff 100%);
    box-shadow: 0 18px 55px rgba(33, 0, 58, 0.08);
}

.prontoz-order-tracking-disabled {
    padding: 20px;
}

.prontoz-order-tracking-hero {
    padding: 34px;
    margin-bottom: 18px;
}

.prontoz-order-tracking-kicker {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(165, 62, 237, 0.1);
    color: var(--pto-track-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prontoz-order-tracking-hero h2 {
    margin: 0 0 10px;
    color: var(--pto-track-dark);
    font-size: clamp(30px, 5vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.prontoz-order-tracking-hero p:not(.prontoz-order-tracking-kicker) {
    max-width: 720px;
    margin: 0;
    color: var(--pto-track-muted);
    font-size: 16px;
    line-height: 1.5;
}

.prontoz-order-tracking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 18px;
}

.prontoz-order-tracking-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--pto-track-dark);
    font-size: 13px;
    font-weight: 700;
}

.prontoz-order-tracking-form input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(33, 0, 58, 0.12);
    border-radius: var(--pto-track-field-radius, 999px) !important;
    padding: 0 18px;
    background: #fff;
    color: var(--pto-track-dark);
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.prontoz-order-tracking-form input:focus {
    border-color: var(--pto-track-primary);
    box-shadow: 0 0 0 4px rgba(165, 62, 237, 0.13);
}

.prontoz-order-tracking-form .prontoz-order-tracking-submit {
    min-height: 52px;
    border: 0;
    border-radius: var(--pto-track-field-radius, 999px) !important;
    padding: 0 24px;
    background: var(--pto-track-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(165, 62, 237, 0.24);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.prontoz-order-tracking-form .prontoz-order-tracking-submit:hover {
    background: var(--pto-track-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(33, 0, 58, 0.24);
}

.prontoz-order-tracking-form .prontoz-order-tracking-submit:focus,
.prontoz-order-tracking-form .prontoz-order-tracking-submit:active {
    background: var(--pto-track-dark) !important;
    color: #fff !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(165, 62, 237, 0.18), 0 16px 34px rgba(33, 0, 58, 0.24);
}

.prontoz-order-tracking-message {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(165, 62, 237, 0.1);
    color: var(--pto-track-dark);
    font-weight: 700;
}

.prontoz-order-tracking-result {
    padding: 24px;
}

.prontoz-order-tracking-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.prontoz-order-tracking-summary div {
    padding: 15px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(33, 0, 58, 0.08);
}

.prontoz-order-tracking-summary span {
    display: block;
    margin-bottom: 5px;
    color: var(--pto-track-muted);
    font-size: 12px;
    font-weight: 700;
}

.prontoz-order-tracking-summary strong {
    color: var(--pto-track-dark);
    font-size: 18px;
}

.prontoz-order-tracking-steps-wrap {
    position: relative;
    padding-top: 34px;
}

.prontoz-order-tracking-bridge-label {
    position: absolute;
    top: 42px;
    left: calc(100% / var(--pto-track-steps, 4));
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(165, 62, 237, 0.1);
    color: var(--pto-track-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
    isolation: isolate;
    box-shadow: 0 6px 18px rgba(165, 62, 237, 0.08);
}

.prontoz-order-tracking-bridge-label::before {
    content: "";
    position: absolute;
    inset: -5px -16px;
    border-radius: 999px;
    background: #fbf7ff;
    z-index: -1;
}

.prontoz-order-tracking-bridge-label.is-active {
    animation: prontozOrderTrackingBridgePulse 1.9s ease-in-out infinite;
}

.prontoz-order-tracking-steps {
    display: grid;
    grid-template-columns: repeat(var(--pto-track-steps, 4), minmax(0, 1fr));
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: pto-track;
}

.prontoz-order-tracking-steps li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    color: var(--pto-track-muted);
    font-size: 13px;
    font-weight: 800;
    counter-increment: pto-track;
}

.prontoz-order-tracking-step-label {
    display: block;
}

.prontoz-order-tracking-step-note {
    display: block;
    max-width: 190px;
    margin-top: -4px;
    color: var(--pto-track-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.28;
}

.prontoz-order-tracking-steps .is-complete .prontoz-order-tracking-step-note,
.prontoz-order-tracking-steps .is-current .prontoz-order-tracking-step-note {
    color: color-mix(in srgb, var(--pto-track-dark) 68%, var(--pto-track-muted));
}

.prontoz-order-tracking-steps li::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(33, 0, 58, 0.12);
    z-index: 0;
}

.prontoz-order-tracking-steps li:first-child::before {
    left: 50%;
}

.prontoz-order-tracking-steps li:last-child::before {
    right: 50%;
}

.prontoz-order-tracking-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    border: 3px solid rgba(33, 0, 58, 0.14);
    color: var(--pto-track-muted);
    font-size: 18px;
    font-weight: 900;
}

.prontoz-order-tracking-dot svg {
    width: 22px;
    height: 22px;
}

.prontoz-order-tracking-steps .is-complete,
.prontoz-order-tracking-steps .is-current {
    color: var(--pto-track-dark);
}

.prontoz-order-tracking-steps .is-complete .prontoz-order-tracking-dot {
    background: var(--pto-track-success);
    border-color: var(--pto-track-success);
    color: #fff;
}

.prontoz-order-tracking-steps .is-current .prontoz-order-tracking-dot {
    background: var(--pto-track-primary);
    border-color: var(--pto-track-primary);
    color: #fff;
    box-shadow: 0 0 0 7px rgba(165, 62, 237, 0.14);
    animation: prontozOrderTrackingPulse 1.85s ease-in-out infinite;
}

.prontoz-order-tracking-steps-alert .is-current .prontoz-order-tracking-dot {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.12);
}

.prontoz-order-tracking-note {
    margin: 24px 0 0;
    padding: 15px 18px;
    border-radius: 18px;
    background: rgba(33, 0, 58, 0.05);
    color: var(--pto-track-muted);
    font-size: 14px;
}

@keyframes prontozOrderTrackingPulse {
    0%,
    100% {
        box-shadow: 0 0 0 7px rgba(165, 62, 237, 0.14);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(165, 62, 237, 0.04);
    }
}

@keyframes prontozOrderTrackingBridgePulse {
    0%,
    100% {
        box-shadow: 0 6px 18px rgba(165, 62, 237, 0.08), 0 0 0 0 rgba(165, 62, 237, 0.18);
    }
    50% {
        box-shadow: 0 8px 22px rgba(165, 62, 237, 0.14), 0 0 0 8px rgba(165, 62, 237, 0.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .prontoz-order-tracking-steps .is-current .prontoz-order-tracking-dot,
    .prontoz-order-tracking-bridge-label.is-active {
        animation: none;
    }
}

@media (max-width: 760px) {
    .prontoz-order-tracking-hero,
    .prontoz-order-tracking-result {
        padding: 22px;
        border-radius: 24px;
    }

    .prontoz-order-tracking-form,
    .prontoz-order-tracking-summary {
        grid-template-columns: 1fr;
    }

    .prontoz-order-tracking-form .prontoz-order-tracking-submit {
        width: 100%;
    }

    .prontoz-order-tracking-steps-wrap {
        padding-top: 0;
    }

    .prontoz-order-tracking-bridge-label {
        position: static;
        transform: none;
        margin-bottom: 14px;
    }

    .prontoz-order-tracking-steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .prontoz-order-tracking-steps li {
        grid-template-columns: 44px 1fr;
        justify-items: start;
        align-items: center;
        text-align: left;
    }

    .prontoz-order-tracking-step-note {
        max-width: none;
        margin-top: -8px;
        grid-column: 2;
    }

    .prontoz-order-tracking-steps li::before {
        top: 0;
        bottom: 0;
        left: 21px !important;
        right: auto !important;
        width: 3px;
        height: auto;
    }
}

.prontoz-po-wrapper * {
    box-sizing: border-box;
}

.prontoz-po-group {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(165, 62, 237, 0.12);
    border-radius: calc(var(--ppo-radius, 18px) + 2px);
    background: rgba(255, 255, 255, 0.88);
}

.prontoz-po-group:last-of-type {
    margin-bottom: 8px;
}

.prontoz-po-group-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ppo-text, #21003a);
}

.prontoz-po-field {
    margin-bottom: 16px;
}

.prontoz-po-field.prontoz-po-invalid-field {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.5);
}

.prontoz-po-field:last-child {
    margin-bottom: 0;
}

.prontoz-po-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ppo-text, #21003a);
}

.prontoz-po-label .required {
    color: var(--ppo-primary, #a53eed);
}

.prontoz-po-help {
    display: block;
    margin: -1px 0 9px;
    color: var(--ppo-muted);
    font-size: 12px;
    line-height: 1.45;
}

.prontoz-po-field input[type='text'],
.prontoz-po-field input[type='number'],
.prontoz-po-field input[type='email'],
.prontoz-po-field input[type='url'],
.prontoz-po-field input[type='tel'],
.prontoz-po-field input[type='date'],
.prontoz-po-field input[type='time'],
.prontoz-po-field input[type='datetime-local'],
.prontoz-po-field input[type='password'],
.prontoz-po-field input[type='color'],
.prontoz-po-field input[type='file'],
.prontoz-po-field select,
.prontoz-po-field textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid rgba(33, 0, 58, 0.14);
    border-radius: 14px;
    background: #fff;
    color: var(--ppo-text, #21003a);
    font: inherit;
    line-height: 1.4;
    padding: 11px 14px;
    box-shadow: inset 0 1px 1px rgba(33, 0, 58, 0.02);
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.prontoz-po-field input[type='color'] {
    padding: 6px;
    min-width: 56px;
}

.prontoz-po-field input:focus,
.prontoz-po-field select:focus,
.prontoz-po-field textarea:focus {
    outline: none;
    border-color: rgba(165, 62, 237, 0.8);
    box-shadow: 0 0 0 4px rgba(165, 62, 237, 0.12);
}

.prontoz-po-field textarea {
    min-height: 120px;
    resize: vertical;
}

.prontoz-po-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ppo-swatch-gap, 10px);
}

.prontoz-po-choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 14px;
    border: 1px solid rgba(33, 0, 58, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--ppo-text, #21003a);
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.prontoz-po-choice-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.prontoz-po-choice-text {
    line-height: 1.2;
}

.prontoz-po-choice-price {
    color: var(--ppo-muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

.prontoz-po-choice-mark {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid rgba(33, 0, 58, 0.22);
    background: #fff;
    box-shadow: inset 0 0 0 0 rgba(165, 62, 237, 0.95);
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.prontoz-po-choice:hover {
    border-color: rgba(165, 62, 237, 0.45);
    box-shadow: 0 10px 20px rgba(33, 0, 58, 0.08);
    transform: translateY(-1px);
}

.prontoz-po-choice:has(input:checked) {
    border-color: var(--ppo-primary, #a53eed);
    background: rgba(165, 62, 237, 0.06);
    box-shadow: 0 0 0 4px rgba(165, 62, 237, 0.1);
}

.prontoz-po-choice.is-selected {
    border-color: var(--ppo-primary, #a53eed);
    background: rgba(165, 62, 237, 0.06);
    box-shadow: 0 0 0 4px rgba(165, 62, 237, 0.1);
}

.prontoz-po-choice:has(input:checked) .prontoz-po-choice-mark,
.prontoz-po-choice.is-selected .prontoz-po-choice-mark {
    border-color: var(--ppo-primary, #a53eed);
    box-shadow: inset 0 0 0 4px rgba(165, 62, 237, 0.95);
}

.prontoz-po-choice:focus-within {
    border-color: rgba(33, 0, 58, 0.28);
    box-shadow: 0 0 0 3px rgba(33, 0, 58, 0.08);
}

.prontoz-po-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    top: 0;
    left: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.prontoz-po-type-multi_checkbox .prontoz-po-choice-mark {
    border-radius: 6px;
}

.prontoz-po-choice img {
    width: var(--ppo-option-image-size-local, var(--ppo-option-image-size, 56px));
    height: var(--ppo-option-image-size-local, var(--ppo-option-image-size, 56px));
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(33, 0, 58, 0.08);
}

.prontoz-po-choice-image_swatch {
    border-radius: var(--ppo-image-card-radius, 18px);
    padding: 12px 14px 10px 20px;
    min-height: 120px;
    min-width: min(220px, 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prontoz-po-choice-image_swatch .prontoz-po-choice-mark {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.prontoz-po-choice-image_swatch .prontoz-po-choice-copy {
    width: 100%;
    align-items: center;
    text-align: center;
}

.prontoz-po-choice-image_swatch .prontoz-po-choice-text {
    display: block;
    width: 100%;
    text-align: center;
}

.prontoz-po-color {
    width: var(--ppo-swatch-size, 24px);
    height: var(--ppo-swatch-size, 24px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(33, 0, 58, 0.12);
}

.prontoz-po-measurements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
}

.prontoz-po-qty-grid {
    border: 1px solid rgba(33, 0, 58, 0.12);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.prontoz-po-qty-grid-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(165, 62, 237, 0.88) rgba(33, 0, 58, 0.14);
}

.prontoz-po-qty-grid-scroll::-webkit-scrollbar {
    height: 8px;
}

.prontoz-po-qty-grid-scroll::-webkit-scrollbar-track {
    background: rgba(33, 0, 58, 0.14);
    border-radius: 999px;
}

.prontoz-po-qty-grid-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8f2fd0 0%, #a53eed 100%);
    border-radius: 999px;
}

.prontoz-po-qty-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.prontoz-po-qty-grid-table th,
.prontoz-po-qty-grid-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(33, 0, 58, 0.08);
    border-right: 1px solid rgba(33, 0, 58, 0.06);
    text-align: center;
    vertical-align: middle;
}

.prontoz-po-qty-grid-table th:first-child,
.prontoz-po-qty-grid-table tbody th {
    text-align: left;
    background: rgba(165, 62, 237, 0.04);
    font-weight: 600;
}

.prontoz-po-qty-grid-table thead th small,
.prontoz-po-qty-grid-table tbody th small {
    display: block;
    margin-top: 3px;
    color: var(--ppo-muted);
    font-size: 11px;
    font-weight: 500;
}

.prontoz-po-qty-grid-table th:last-child,
.prontoz-po-qty-grid-table td:last-child {
    border-right: 0;
}

.prontoz-po-qty-grid-table tr:last-child th,
.prontoz-po-qty-grid-table tr:last-child td {
    border-bottom: 0;
}

.prontoz-po-qty-grid-input {
    min-width: 86px;
    text-align: center;
}

.prontoz-po-qty-grid-input.is-invalid {
    border-color: #d43c6b !important;
    box-shadow: 0 0 0 3px rgba(212, 60, 107, 0.12) !important;
}

.prontoz-po-grid-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border-radius: 999px;
    vertical-align: middle;
    border: 1px solid rgba(33, 0, 58, 0.14);
}

.prontoz-po-grid-cell-price {
    display: block;
    margin-top: 4px;
    color: var(--ppo-muted);
    font-size: 10px;
    line-height: 1.2;
}

.prontoz-po-qty-grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(165, 62, 237, 0.05);
    border-top: 1px solid rgba(33, 0, 58, 0.08);
    font-weight: 600;
}

.prontoz-po-grid-meta-line {
    display: block;
    margin: 0 !important;
    padding: 10px 12px 0;
    color: var(--ppo-muted);
    font-size: 12px;
    line-height: 1.45;
    font-family: var(--ppo-font, 'Heuvel Grotesk', system-ui, sans-serif);
}

.prontoz-po-grid-hint:empty {
    display: none;
}

.prontoz-po-grid-scroll-hint {
    display: none;
    font-weight: 700;
    color: var(--ppo-primary, #a53eed);
}

.prontoz-po-grid-scroll-hint.is-visible {
    display: block;
}

.prontoz-po-grid-scroll-hint::before {
    content: '↔ ';
    font-weight: 800;
}

.prontoz-po-grid-meta-important {
    font-weight: 700;
    color: var(--ppo-text, #21003a);
}

.prontoz-po-grid-validation {
    min-height: 18px;
    padding: 8px 14px 0;
    color: #c03a69;
    font-size: 12px;
    font-weight: 600;
}

.prontoz-po-unit-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(33, 0, 58, 0.14);
    border-radius: 14px;
    padding: 0 14px;
    background: linear-gradient(180deg, #f7efff 0%, #f2e8ff 100%);
    color: var(--ppo-text, #21003a);
    font-weight: 600;
    text-transform: uppercase;
}

.prontoz-po-summary {
    position: sticky;
    bottom: 12px;
    margin-top: 8px;
    padding: 18px;
    border: 1px solid rgba(165, 62, 237, 0.16);
    border-radius: calc(var(--ppo-radius, 18px) + 6px);
    background: linear-gradient(180deg, #ffffff 0%, #f9f3ff 100%);
    box-shadow: 0 18px 36px rgba(33, 0, 58, 0.08);
}

.prontoz-po-summary h4 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.prontoz-po-summary .line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.prontoz-po-summary .line span {
    color: var(--ppo-muted);
}

.prontoz-po-summary .line strong {
    color: var(--ppo-text, #21003a);
    font-weight: 600;
    white-space: nowrap;
}

.prontoz-po-summary .line.total {
    border-top: 1px solid var(--ppo-divider);
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 1.08em;
}

.prontoz-po-summary .line.total span,
.prontoz-po-summary .line.total strong {
    color: var(--ppo-text, #21003a);
    font-weight: 700;
}

.prontoz-po-summary .line.total strong {
    color: var(--ppo-primary, #a53eed);
}

.prontoz-po-summary.is-calculating {
    opacity: 0.88;
}

.prontoz-po-summary.is-calculating::after {
    content: 'A calcular...';
    display: block;
    margin-top: 10px;
    color: var(--ppo-primary, #a53eed);
    font-size: 12px;
    font-weight: 600;
}

.prontoz-po-breakdown {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--ppo-divider);
    display: none;
}

.prontoz-po-breakdown .break-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 5px 0;
    font-size: 12px;
    color: var(--ppo-muted);
}

.prontoz-po-breakdown .break-line strong {
    color: var(--ppo-text, #21003a);
    font-weight: 600;
    white-space: nowrap;
}

.prontoz-po-wrapper .button,
.prontoz-mockup-trigger-wrap .button {
    border-radius: 999px;
}

.prontoz-po-file-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.prontoz-po-file-input-row .prontoz-po-file-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prontoz-po-file-input-row .prontoz-po-file-input::file-selector-button {
    margin-right: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(33, 0, 58, 0.24);
    border-radius: 10px;
    background: #fff;
    color: var(--ppo-text, #21003a);
    font-weight: 500;
    cursor: pointer;
}

.prontoz-po-file-input-row .prontoz-po-file-input::-webkit-file-upload-button {
    margin-right: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(33, 0, 58, 0.24);
    border-radius: 10px;
    background: #fff;
    color: var(--ppo-text, #21003a);
    font-weight: 500;
    cursor: pointer;
}

.prontoz-po-file-input-row .prontoz-po-file-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #21003a;
    border-radius: 999px;
    background: #21003a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.prontoz-po-file-input-row .prontoz-po-file-clear:hover {
    background: var(--ppo-primary, #a53eed);
    border-color: var(--ppo-primary, #a53eed);
    color: #fff;
    transform: translateY(-1px);
}

.prontoz-po-file-input-row .prontoz-po-file-clear:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 62, 237, 0.22);
}

.prontoz-po-file-input-row .prontoz-po-file-clear:active {
    transform: none;
}

.woocommerce-cart .prontoz-po-wrapper,
.woocommerce-checkout .prontoz-po-wrapper,
.woocommerce-order-received .prontoz-po-wrapper {
    margin-top: 10px;
    padding: 14px;
    font-size: 13px;
}

.woocommerce-cart .prontoz-po-group,
.woocommerce-checkout .prontoz-po-group,
.woocommerce-order-received .prontoz-po-group {
    padding: 12px;
}

.woocommerce-cart .prontoz-po-group-title,
.woocommerce-checkout .prontoz-po-group-title,
.woocommerce-order-received .prontoz-po-group-title {
    font-size: 15px;
}

.woocommerce-cart .prontoz-po-summary,
.woocommerce-checkout .prontoz-po-summary,
.woocommerce-order-received .prontoz-po-summary {
    position: static;
    padding: 14px;
}

.woocommerce-cart .prontoz-po-summary h4,
.woocommerce-checkout .prontoz-po-summary h4,
.woocommerce-order-received .prontoz-po-summary h4 {
    font-size: 15px;
    margin-bottom: 10px;
}

.woocommerce-cart .prontoz-po-breakdown .break-line,
.woocommerce-checkout .prontoz-po-breakdown .break-line,
.woocommerce-order-received .prontoz-po-breakdown .break-line {
    font-size: 11px;
}

.woocommerce-cart .wc-item-meta,
.woocommerce-checkout-review-order .wc-item-meta,
.woocommerce-order-details .wc-item-meta,
.woocommerce-table--order-details .wc-item-meta,
.woocommerce-cart .prontoz-cart-item-summary,
.woocommerce-checkout-review-order .prontoz-cart-item-summary,
.woocommerce-order-details .prontoz-cart-item-summary,
.woocommerce-mini-cart .prontoz-cart-item-summary,
.woocommerce-cart .product-name .variation,
.woocommerce-checkout-review-order-table .variation,
.woocommerce-order-details .variation {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
    color: #7c7c8f;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.woocommerce-cart .product-name > a,
.woocommerce-checkout-review-order-table .product-name,
.woocommerce-order-details .product-name,
.woocommerce-mini-cart .woocommerce-mini-cart-item > a:not(.remove) {
    display: inline-block;
    margin-bottom: 4px;
}

.woocommerce-mini-cart .prontoz-cart-item-summary {
    display: block;
    margin-top: 4px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.woocommerce-mini-cart .woocommerce-mini-cart-item .prontoz-cart-item-summary,
.woocommerce-mini-cart .woocommerce-mini-cart-item .wc-item-meta,
.woocommerce-mini-cart .woocommerce-mini-cart-item .variation,
.woocommerce-cart .cart_item .wc-item-meta,
.woocommerce-cart .cart_item .variation,
.woocommerce-checkout-review-order-table .wc-item-meta,
.woocommerce-checkout-review-order-table .variation {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: #7c7c8f !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin-top: 3px !important;
}

.woocommerce-mini-cart .woocommerce-mini-cart-item .wc-item-meta li,
.woocommerce-mini-cart .woocommerce-mini-cart-item .variation dt,
.woocommerce-mini-cart .woocommerce-mini-cart-item .variation dd,
.woocommerce-cart .cart_item .wc-item-meta li,
.woocommerce-cart .cart_item .variation dt,
.woocommerce-cart .cart_item .variation dd,
.woocommerce-checkout-review-order-table .wc-item-meta li,
.woocommerce-checkout-review-order-table .variation dt,
.woocommerce-checkout-review-order-table .variation dd {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #7c7c8f !important;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woocommerce-mini-cart .woocommerce-mini-cart-item .wc-item-meta .wc-item-meta-label,
.woocommerce-mini-cart .woocommerce-mini-cart-item .variation dt,
.woocommerce-cart .cart_item .wc-item-meta .wc-item-meta-label,
.woocommerce-cart .cart_item .variation dt,
.woocommerce-checkout-review-order-table .wc-item-meta .wc-item-meta-label,
.woocommerce-checkout-review-order-table .variation dt {
    font-weight: 500 !important;
}

/* Compatibilidade extra para mini-cart de tema/Elementor: manter extras pequenos e sem overflow */
.widget_shopping_cart_content .woocommerce-mini-cart-item .prontoz-cart-item-summary,
.widget_shopping_cart_content .woocommerce-mini-cart-item .wc-item-meta,
.widget_shopping_cart_content .woocommerce-mini-cart-item .variation,
.elementor-menu-cart__product .prontoz-cart-item-summary,
.elementor-menu-cart__product .wc-item-meta,
.elementor-menu-cart__product .variation,
.elementor-menu-cart__product-name .prontoz-cart-item-summary {
    display: block !important;
    margin-top: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #7c7c8f !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item .prontoz-cart-item-summary a,
.widget_shopping_cart_content .woocommerce-mini-cart-item .wc-item-meta a,
.elementor-menu-cart__product .prontoz-cart-item-summary a,
.elementor-menu-cart__product .wc-item-meta a {
    font-size: 11px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item > a:not(.remove),
.elementor-menu-cart__product-name > a {
    display: inline-block !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.woocommerce-cart .wc-item-meta li,
.woocommerce-checkout-review-order .wc-item-meta li,
.woocommerce-order-details .wc-item-meta li,
.woocommerce-table--order-details .wc-item-meta li,
.woocommerce-cart .product-name .variation dt,
.woocommerce-cart .product-name .variation dd,
.woocommerce-checkout-review-order-table .variation dt,
.woocommerce-checkout-review-order-table .variation dd,
.woocommerce-order-details .variation dt,
.woocommerce-order-details .variation dd {
    margin: 0;
    padding: 0;
    color: #7c7c8f;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woocommerce-cart .wc-item-meta .wc-item-meta-label,
.woocommerce-checkout-review-order .wc-item-meta .wc-item-meta-label,
.woocommerce-order-details .wc-item-meta .wc-item-meta-label,
.woocommerce-table--order-details .wc-item-meta .wc-item-meta-label,
.woocommerce-cart .product-name .variation dt,
.woocommerce-checkout-review-order-table .variation dt,
.woocommerce-order-details .variation dt {
    font-weight: 500;
    color: #7c7c8f;
}

.woocommerce-cart .wc-item-meta p,
.woocommerce-checkout-review-order .wc-item-meta p,
.woocommerce-order-details .wc-item-meta p,
.woocommerce-table--order-details .wc-item-meta p,
.woocommerce-cart .product-name .variation dd p,
.woocommerce-checkout-review-order-table .variation dd p,
.woocommerce-order-details .variation dd p {
    margin: 0;
    color: #7c7c8f;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.woocommerce-cart .wc-item-meta a,
.woocommerce-checkout-review-order .wc-item-meta a,
.woocommerce-order-details .wc-item-meta a,
.woocommerce-table--order-details .wc-item-meta a,
.woocommerce-cart .product-name .variation a,
.woocommerce-checkout-review-order-table .variation a,
.woocommerce-order-details .variation a {
    color: #7e4cb5;
    font-weight: 500;
    text-decoration: none;
}

.woocommerce-cart .wc-item-meta a:hover,
.woocommerce-checkout-review-order .wc-item-meta a:hover,
.woocommerce-order-details .wc-item-meta a:hover,
.woocommerce-table--order-details .wc-item-meta a:hover,
.woocommerce-cart .product-name .variation a:hover,
.woocommerce-checkout-review-order-table .variation a:hover,
.woocommerce-order-details .variation a:hover {
    text-decoration: underline;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.prontoz-po-cart-form .prontoz-po-cart-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    clear: both;
}

.prontoz-po-cart-form .prontoz-po-cart-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.prontoz-po-cart-form .prontoz-po-qty-message-row {
    display: block;
    flex: 0 0 100%;
    order: -1;
    width: 100%;
    margin: 0 0 8px;
}

.prontoz-po-cart-form.prontoz-po-grid-locked-mobile .prontoz-po-qty-message-row {
    display: none !important;
    margin: 0 !important;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap .prontoz-po-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(33, 0, 58, 0.2);
    background: #fff;
    color: var(--ppo-text, #21003a);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 120ms ease;
    padding: 0;
    margin: 0 !important;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap .prontoz-po-qty-btn:hover {
    border-color: var(--ppo-primary, #a53eed);
    color: var(--ppo-primary, #a53eed);
}

.prontoz-po-cart-form .prontoz-po-qty-wrap .prontoz-po-qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap input.qty,
.prontoz-po-cart-form .prontoz-po-qty-wrap input[name='quantity'] {
    text-align: center;
    min-width: 62px;
    margin: 0 !important;
}

.prontoz-po-cart-form .prontoz-po-qty-message {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--ppo-muted, #6d5b80);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-align: left;
    font-family: var(--ppo-font, 'Heuvel Grotesk', system-ui, sans-serif);
}

.prontoz-po-cart-form .prontoz-po-qty-message:empty {
    display: none;
}

.prontoz-po-cart-form .prontoz-po-qty-message .prontoz-po-qty-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    padding: 1px 10px;
    border: 1px solid rgba(165, 62, 237, 0.25);
    border-radius: 999px;
    background: rgba(165, 62, 237, 0.08);
    color: var(--ppo-primary, #a53eed);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--ppo-font, 'Heuvel Grotesk', system-ui, sans-serif);
    cursor: pointer;
    transition: all 140ms ease;
    white-space: nowrap;
}

.prontoz-po-cart-form .prontoz-po-qty-message .prontoz-po-qty-cta:hover {
    background: rgba(165, 62, 237, 0.16);
    border-color: rgba(165, 62, 237, 0.4);
}

.prontoz-po-cart-form .prontoz-po-qty-lock-tip {
    position: absolute !important;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    display: none;
    min-width: 220px;
    max-width: 320px;
    width: min(320px, calc(100vw - 24px));
    padding: 8px 10px;
    border-radius: 10px;
    background: #21003a;
    color: #fff;
    font-size: var(--ppo-grid-lock-size, 10px);
    line-height: 1.25;
    font-weight: 600;
    font-family: var(--ppo-font, 'Heuvel Grotesk', system-ui, sans-serif);
    text-align: center;
    box-shadow: 0 10px 22px rgba(33, 0, 58, 0.35);
    z-index: 25;
    pointer-events: none;
    white-space: normal;
}

.prontoz-po-cart-form .prontoz-po-qty-lock-tip.prontoz-po-qty-lock-tip-has-cta {
    pointer-events: auto;
    flex-direction: column;
    align-items: center;
}

.prontoz-po-cart-form .prontoz-po-qty-lock-tip .prontoz-po-qty-tip-cta {
    all: unset;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 6px auto 0;
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: #a53eed;
    color: #fff;
    font-size: var(--ppo-grid-lock-size, 10px) !important;
    line-height: 1.25;
    font-weight: 700;
    font-family: var(--ppo-font, 'Heuvel Grotesk', system-ui, sans-serif);
    cursor: pointer;
    max-width: 92%;
    width: auto !important;
    min-height: 24px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

.prontoz-po-cart-form .prontoz-po-qty-lock-tip .prontoz-po-qty-tip-cta:hover {
    background: #8d2dde;
}

.prontoz-po-cart-form .prontoz-po-qty-lock-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #21003a transparent transparent transparent;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap.prontoz-po-show-lock-tip .prontoz-po-qty-lock-tip {
    display: block;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap.prontoz-po-show-lock-tip .prontoz-po-qty-lock-tip.prontoz-po-qty-lock-tip-has-cta {
    display: flex;
}

.prontoz-po-cart-form .prontoz-po-qty-wrap.prontoz-po-grid-locked .prontoz-po-qty-btn[aria-disabled='true'] {
    opacity: 0.92;
    cursor: pointer;
}

.prontoz-po-grid-scroll-guide {
    display: none;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(165, 62, 237, 0.28);
    background: rgba(165, 62, 237, 0.08);
    color: var(--ppo-primary, #a53eed);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    font-family: var(--ppo-font, 'Heuvel Grotesk', system-ui, sans-serif);
}

.prontoz-po-grid-scroll-guide.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .prontoz-po-wrapper {
        margin: 16px 0;
        padding: 14px;
        border-radius: calc(var(--ppo-radius, 18px) + 2px);
    }

    .prontoz-po-group {
        padding: 12px;
    }

    .prontoz-po-choice-grid {
        display: grid;
        grid-template-columns: repeat(var(--ppo-mobile-cols, 1), minmax(0, 1fr));
    }

    .prontoz-po-choice {
        width: 100%;
    }

    .prontoz-po-file-input-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }

    .prontoz-po-file-input-row .prontoz-po-file-input {
        min-height: 40px;
        font-size: 12px;
    }

    .prontoz-po-file-input-row .prontoz-po-file-input::file-selector-button {
        margin-right: 6px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .prontoz-po-file-input-row .prontoz-po-file-input::-webkit-file-upload-button {
        margin-right: 6px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .prontoz-po-file-input-row .prontoz-po-file-clear {
        min-height: 40px;
        padding: 0 9px;
        font-size: 11px;
        max-width: 120px;
    }

    .prontoz-po-measurements {
        grid-template-columns: 1fr;
    }

    .prontoz-po-qty-grid-table {
        min-width: 520px;
    }

    .prontoz-po-grid-scroll-hint {
        display: none;
        padding-top: 8px;
    }

    .prontoz-po-qty-grid-table th:first-child,
    .prontoz-po-qty-grid-table tbody th {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 84px;
        background: rgba(165, 62, 237, 0.1);
        box-shadow: 10px 0 16px -16px rgba(33, 0, 58, 0.5);
    }

    .prontoz-po-qty-grid-table thead th:first-child {
        z-index: 3;
    }

    .prontoz-po-summary.prontoz-po-sticky-mobile {
        position: sticky;
        bottom: 8px;
        z-index: 5;
    }

    .prontoz-po-summary .line,
    .prontoz-po-breakdown .break-line {
        align-items: flex-start;
    }

    .single-product .prontoz-mockup-trigger-wrap .button {
        width: 100%;
    }

    .prontoz-po-cart-form .prontoz-po-qty-wrap {
        gap: 4px;
    }

    .prontoz-po-cart-form .prontoz-po-cart-actions-row {
        justify-content: center;
    }

    .prontoz-po-cart-form .prontoz-po-cart-controls-row {
        justify-content: center;
    }

    .prontoz-po-cart-form .prontoz-po-qty-message-row {
        margin: 0 0 6px;
    }

    .prontoz-po-cart-form .prontoz-po-qty-wrap .prontoz-po-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .prontoz-po-cart-form .prontoz-po-qty-lock-tip {
        min-width: 180px;
        max-width: 270px;
        width: min(270px, calc(100vw - 20px));
        font-size: var(--ppo-grid-lock-size, 10px);
    }

    .prontoz-po-cart-form .prontoz-po-qty-lock-tip.prontoz-po-qty-lock-tip-has-cta {
        position: absolute !important;
        left: 50%;
        top: auto;
        bottom: calc(100% + 8px);
        transform: translateX(-50%);
        width: min(270px, calc(100vw - 20px));
        max-width: 270px;
        z-index: 30;
    }

    .prontoz-po-cart-form .prontoz-po-qty-lock-tip.prontoz-po-qty-lock-tip-has-cta::after {
        display: block;
    }

    .prontoz-po-grid-scroll-guide {
        font-size: 11px;
        margin: 0 0 6px;
        padding: 7px 9px;
    }

    .prontoz-po-cart-form .prontoz-po-qty-wrap input.qty,
    .prontoz-po-cart-form .prontoz-po-qty-wrap input[name='quantity'] {
        min-width: 56px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .prontoz-po-cart-form .prontoz-po-qty-message .prontoz-po-qty-cta {
        display: inline-flex;
        width: auto;
        margin-left: 0;
        margin-top: 4px;
    }

    .prontoz-po-cart-form .prontoz-po-qty-message {
        text-align: center;
        font-size: 11px;
    }

}
