
/* FD_COFFEE_UI_POLISH_V2
   Only affects the Coffee payment page.
*/

/* -----------------------------------------
   1. SELECT WITH VISIBLE ARROW
   ----------------------------------------- */

.fdpt.fdpt--coffee
#fdpt-coffee-live-form select#fdpt-coffee-count {
    appearance:none !important;
    -webkit-appearance:none !important;
    -moz-appearance:none !important;

    padding-right:48px !important;
    cursor:pointer !important;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23905B30' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    background-position:right 16px center !important;
    background-repeat:no-repeat !important;
    background-size:18px 18px !important;
}

.dt-is-active .fdpt.fdpt--coffee
#fdpt-coffee-live-form select#fdpt-coffee-count {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23F7D8A5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* -----------------------------------------
   2. ORANGE BUY ME A COFFEE BUTTON
   ----------------------------------------- */

.fdpt.fdpt--coffee a.fdpt-buy-coffee,
.fdpt.fdpt--coffee a[href*="buymeacoffee.com"],
.fdpt.fdpt--coffee a[href*="tinurlz.com/coffee"] {
    background:linear-gradient(
        110deg,
        #FFB64D 0%,
        #F79332 48%,
        #EA7625 100%
    ) !important;

    color:#FFFFFF !important;
    border:1px solid #E18A37 !important;

    box-shadow:0 9px 21px rgba(209,112,29,.20) !important;

    cursor:pointer !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

/* -----------------------------------------
   3. ORANGE SUBMIT BUTTON
   ----------------------------------------- */

.fdpt.fdpt--coffee
.fdpt-card-confirm
button.fdpt-coffee-submit:not(:disabled) {
    background:linear-gradient(
        110deg,
        #FFBA57,
        #F79635,
        #EA7828
    ) !important;

    color:#FFFFFF !important;
    border:1px solid #E38C37 !important;
    opacity:1 !important;
    cursor:pointer !important;

    box-shadow:0 9px 21px rgba(209,112,29,.20) !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

/* Disabled state remains disabled. */
.fdpt.fdpt--coffee
button.fdpt-coffee-submit:disabled {
    opacity:.55 !important;
    cursor:not-allowed !important;
}

/* -----------------------------------------
   4. BUTTON HOVER EFFECTS
   ----------------------------------------- */

.fdpt.fdpt--coffee a.fdpt-buy-coffee,
.fdpt.fdpt--coffee a[href*="buymeacoffee.com"],
.fdpt.fdpt--coffee a[href*="tinurlz.com/coffee"],
.fdpt.fdpt--coffee .fdpt-help-actions a {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

@media(hover:hover) {
    .fdpt.fdpt--coffee a.fdpt-buy-coffee:hover,
    .fdpt.fdpt--coffee a[href*="buymeacoffee.com"]:hover,
    .fdpt.fdpt--coffee a[href*="tinurlz.com/coffee"]:hover,
    .fdpt.fdpt--coffee
    button.fdpt-coffee-submit:not(:disabled):hover,
    .fdpt.fdpt--coffee .fdpt-help-actions a:hover {
        transform:translateY(-3px) !important;
        filter:brightness(1.045) !important;

        box-shadow:
            0 14px 26px rgba(105,70,38,.19) !important;
    }
}

.fdpt.fdpt--coffee a.fdpt-buy-coffee:active,
.fdpt.fdpt--coffee
button.fdpt-coffee-submit:not(:disabled):active,
.fdpt.fdpt--coffee .fdpt-help-actions a:active {
    transform:translateY(0) !important;
}

.fdpt.fdpt--coffee a:focus-visible,
.fdpt.fdpt--coffee
button.fdpt-coffee-submit:focus-visible {
    outline:3px solid #FFD18F !important;
    outline-offset:3px !important;
}

/* -----------------------------------------
   5. THANK YOU AS A MESSAGE, NOT A BUTTON
   ----------------------------------------- */

.fdpt.fdpt--coffee .fdc-thankyou-message {
    display:block !important;
    width:100% !important;
    box-sizing:border-box !important;

    margin-top:10px !important;
    padding:13px 16px !important;

    background:rgba(255,249,237,.68) !important;
    color:#795938 !important;

    border:1px solid rgba(197,154,96,.30) !important;
    border-left:3px solid #D6A058 !important;
    border-radius:9px !important;

    box-shadow:none !important;
    font-size:12px !important;
    font-weight:500 !important;
    line-height:1.7 !important;
    text-align:left !important;

    cursor:default !important;
    pointer-events:none !important;
    transform:none !important;
    transition:none !important;
}

.fdpt.fdpt--coffee
.fdc-thankyou-message::before {
    content:"♥";
    display:inline-block;
    margin-right:9px;
    color:#C48A43;
    font-size:13px;
}

/* -----------------------------------------
   6. NATIVE DARK MODE
   ----------------------------------------- */

.dt-is-active .fdpt.fdpt--coffee
.fdc-thankyou-message {
    background:rgba(239,199,139,.07) !important;
    color:#F0D9B7 !important;
    border-color:rgba(239,199,139,.24) !important;
    border-left-color:#D6A058 !important;
}

.dt-is-active .fdpt.fdpt--coffee
.fdc-thankyou-message::before {
    color:#E7B46C !important;
}

.dt-is-active .fdpt.fdpt--coffee
button.fdpt-coffee-submit:not(:disabled) {
    background:linear-gradient(
        110deg,#F7B14D,#E9892B
    ) !important;
    color:#FFFFFF !important;
    border-color:#D4822D !important;
}

/* Accessibility: respect reduced-motion setting. */

@media(prefers-reduced-motion:reduce) {
    .fdpt.fdpt--coffee a,
    .fdpt.fdpt--coffee button {
        transition:none !important;
    }

    .fdpt.fdpt--coffee a:hover,
    .fdpt.fdpt--coffee button:hover {
        transform:none !important;
    }
}


/* ===================================================
   FD_COFFEE_UPLOAD_HOVER_V1
   Champagne Gold upload interaction
   Coffee only — no payment logic changes
   =================================================== */

.fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload {
    transition:
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease !important;

    cursor:pointer !important;
    will-change:transform;
}

.fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload > span,
.fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload > strong {
    transition:
        color .2s ease,
        transform .2s ease !important;
}

/* Desktop hover */

@media (hover:hover) {
    .fdpt.fdpt--coffee
    .fdpt-card-confirm .fdpt-coffee-upload:hover {
        background:#FFE8BF !important;
        border-color:#E49A3D !important;

        box-shadow:
            0 12px 26px rgba(194,120,41,.19),
            0 0 0 3px rgba(230,168,83,.10)
            !important;

        transform:translateY(-3px) !important;
    }

    .fdpt.fdpt--coffee
    .fdpt-card-confirm
    .fdpt-coffee-upload:hover > span:first-child {
        color:#C87821 !important;
        transform:translateY(-4px);
    }

    .fdpt.fdpt--coffee
    .fdpt-card-confirm .fdpt-coffee-upload:hover > strong {
        color:#85501F !important;
    }
}

/* Keyboard accessibility */

.fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload:focus-within {
    background:#FFE8BF !important;
    border-color:#D9933B !important;
    box-shadow:
        0 0 0 3px rgba(224,159,68,.24)
        !important;
}

/* Preserve full-area file input clicks */

.fdpt.fdpt--coffee
.fdpt-card-confirm
.fdpt-coffee-upload input[type="file"] {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:0;
    cursor:pointer !important;
}

/* Selected file state */

.fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload.has-file {
    border-color:#D99B43 !important;
    background:#FFF1D8 !important;
}

/* Dark mode */

.dt-is-active .fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload:hover,
.dt-is-active .fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload:focus-within {
    background:#3B5367 !important;
    border-color:#E7B46C !important;

    box-shadow:
        0 12px 26px rgba(0,0,0,.24),
        0 0 0 3px rgba(231,180,108,.12)
        !important;
}

.dt-is-active .fdpt.fdpt--coffee
.fdpt-card-confirm
.fdpt-coffee-upload:hover > span:first-child {
    color:#FFD38C !important;
}

.dt-is-active .fdpt.fdpt--coffee
.fdpt-card-confirm .fdpt-coffee-upload.has-file {
    background:#314A60 !important;
    border-color:#DCA862 !important;
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion:reduce) {
    .fdpt.fdpt--coffee
    .fdpt-card-confirm .fdpt-coffee-upload,
    .fdpt.fdpt--coffee
    .fdpt-card-confirm .fdpt-coffee-upload > span,
    .fdpt.fdpt--coffee
    .fdpt-card-confirm .fdpt-coffee-upload > strong {
        transition:none !important;
        transform:none !important;
    }

    .fdpt.fdpt--coffee
    .fdpt-card-confirm .fdpt-coffee-upload:hover {
        transform:none !important;
    }
}


/* FD_COFFEE_GUIDE_FONT_PLUS2_V1
   Increase Coffee "How it works" typography by 2px.
   Scoped only to the Coffee guide.
*/

.fdpt.fdpt--coffee .fdpt-guide h3 {
    font-size:calc(1em + 1px) !important;
}

.fdpt.fdpt--coffee .fdpt-guide li strong {
    font-size:calc(1em + 1px) !important;
}

.fdpt.fdpt--coffee .fdpt-guide li p {
    font-size:calc(1em + 1px) !important;
}

.fdpt.fdpt--coffee .fdpt-step-number {
    font-size:calc(1em + 1px) !important;
}

/* FD_COFFEE_HOW_IT_WORKS_TITLE_PLUS2_V1
   Increase only the "How it works" title by 2px.
*/
.fd-coffee-how-title{
    font-size:calc(1em + 2px) !important;
    line-height:1.25 !important;
}


/* FD_COFFEE_HOW_TITLE_SPECIFICITY_FIX_V2
   Existing guide heading baseline: +1px.
   New heading target: +3px.
   Net increase from current size: +2px.
   Other guide text remains unchanged.
*/

.fdpt.fdpt--coffee
.fdpt-guide h3.fd-coffee-how-title {
    font-size:calc(1em + 3px) !important;
}

