.cctp {
    --cctp-bg: #f7f7f5;
    --cctp-card: #ffffff;
    --cctp-text: #3B2800;
    --cctp-muted: #D19571;
    --cctp-border: transparent;
    --cctp-accent: #D19571;
    --cctp-accent-contrast: #ffffff;
    --cctp-radius: 20px;
    --cctp-shadow: none;
    --cctp-image: 150px;

    margin: 0 auto;
    /*padding: 24px;*/
    border-radius: 28px;
    width: 100%;
}

.cctp__header {
    margin-bottom: 20px;
    display: grid;
    grid-template-areas:
        "title logout"
        "intro intro";
    
}

.cctp__eyebrow {
    display: none;
    grid-area: eyebrow;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cctp-muted);
}

.cctp__title {
    grid-area: title;
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.1;
    color: var(--cctp-text);
    display: flex;
    align-items: center;
    column-gap: 15px;
    margin-bottom: 50px;
}

.cctp__title .dashicons{
    font-size: 30px;
    line-height: 30px;
    display: flex;
    align-items: center;
}

.cctp__intro {
    grid-area: intro;
    color: var(--cctp-text);
    font-size: 20px;
    line-height: 1.5;
    width: 100%;
    margin: 0 auto 50px auto;
    display: none;
}

.cctp__logout {
    grid-area: logout;
    text-align: right;
}
.cctp__logout > a:hover {
    text-decoration: none;
}

.cctp__progress {
    display: none;
    gap: 8px;
    margin: 20px 0 24px;
}

.cctp__progress-step {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 220ms ease;
}

.cctp__progress-step.is-active,
.cctp__progress-step.is-done {
    background: #111827;
}

.cctp__viewport {
    position: relative;
    /*min-height: 260px;*/
    overflow: hidden;
    margin-bottom: 80px;
}

.cctp__step {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition:
        transform 420ms cubic-bezier(.22,.61,.36,1),
        opacity 320ms ease;
    display: flex;
    flex-direction: column;
}

.cctp__step.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.cctp__step.is-leaving-up {
    opacity: 0;
    transform: translateY(-42px);
    pointer-events: none;
}

.cctp__step-head {
    margin-bottom: 18px;
}

.cctp__step-index {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cctp-muted);
}

.cctp__step-title {
    margin: 0;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--cctp-muted);
    margin-bottom: 20px;
    text-align: center;
}

.cctp__step-subtitle {
    margin: 8px 0 0;
    color: var(--cctp-muted);
    line-height: 1.5;
}

.cctp__choices {
    /*
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    */
    gap: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cctp__choice {
    appearance: none;

    background:transparent;
    box-shadow: var(--cctp-shadow);
    border-radius: 50px;

    text-align: left;

    cursor: pointer; 
    transition:
        transform 0.2s ease-in-out,
        border-color 0.2s ease-in-out,
        background 0.2s ease-in-out;

    width: auto;
    max-width: calc(100% / 4);
    padding: 1rem 2rem;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 15px;
}

.cctp__choice:not(.cctp__choice-visual) {
    border: 1px solid #D19571;
}
.cctp__choice.cctp__choice-visual {
    border: 0px solid transparent;
}

.cctp__choice:hover {
    transform: translateY(-2px);
}

.cctp__choice.is-selected {
    border-color: var(--cctp-accent);
    background: #f3f4f6;
}

.cctp__choice-title {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #D19571;
    text-align: center;
    transition: all ease-in-out 0.2s;
    font-family: 'GT Walsheim Pro', Arial, Helvetica !important;
}
.cctp__choice:hover .cctp__choice-title {
    color: var(--cctp-muted);
}

.cctp__choice-meta {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--cctp-muted);
}

.cctp__choice-image-wrap{
    width: var(--cctp-image);
    height: var(--cctp-image);
    display: flex;
    justify-content: center;
    border: 1px solid #DDD;
    border-radius: var(--cctp-radius);
    overflow: hidden;
}
.cctp__choice-image-wrap .cctp__choice-image{
    display: flex;
    object-position: center center;
}
.cctp__step.is-active[data-step-id="teinte"] .cctp__choice-image-wrap .cctp__choice-image{
    object-fit: cover;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}
.cctp__step.is-active[data-step-id="profil"] .cctp__choice-image-wrap .cctp__choice-image{
    object-fit: contain;
}

.cctp__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.cctp__results {
    display: grid;
    grid-template-areas:
        "total copy"
        "final final";
    justify-content: space-between;
    grid-template-columns: auto 150px;
    background: #FEEBD3;
    padding: 40px;
    border-radius: 20px;
    margin-top: 30px;
    row-gap: 20px;
}

.cctp__total {
    grid-area: total;
    font-style: italic;
    color: #D19571;
}
.cctp__final-text {
    grid-area: final;
}

.cctp__copy,
.cctp__back,
.cctp__reset,
.cctp__results-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.cctp__copy:hover,
.cctp__back:hover,
.cctp__reset:hover,
.cctp__results-button:hover {
    transform: translateY(-1px);
}

.cctp__back:disabled,
.cctp__back[disabled]{
    visibility: hidden;
}

.cctp__copy-btn {
    grid-area: copy;
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #D19571;
    font-style: italic;
}
.cctp__copy {
    cursor: pointer;
    background: #D19571;
    color: #FEEBD3;
    padding: 0;
    border-radius: 5px;
    width: 30px;
    height: 30px;
}
.cctp__copy svg {
    width: 30px;
    height: 30px;
    padding: 5px;
}

.cctp__summary {
    background: #fff;
    border: 1px solid var(--cctp-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--cctp-shadow);
}

.cctp__summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.cctp__summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.cctp__summary-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cctp__label {
    font-weight: 700;
    color: var(--cctp-text);
}

.cctp__value {
    color: var(--cctp-muted);
    text-align: right;
}

.cctp__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 80px;
    font-weight: 600;
}

.cctp__loader-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cctp-spin 0.8s linear infinite;
}

@keyframes cctp-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .pff {
        padding: 18px;
        border-radius: 20px;
    }

    .cctp__title {
        font-size: 26px;
    }

    .cctp__step-title {
        font-size: 22px;
    }

    .cctp__choices {
        grid-template-columns: 1fr;
    }

    .cctp__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cctp__summary-list li {
        flex-direction: column;
    }

    .cctp__value {
        text-align: left;
    }
}