/* ================================================================
   Gender Donations — styles
   Colors match theme: --gid-blue:#3b3bff  --gid-orange:#f05023
   ================================================================ */

.gd-wrap {
    --gd-blue:       #3b3bff;
    --gd-orange:     #f05023;
    --gd-dark-grey:  #737373;
    --gd-black:      #000;
    --gd-white:      #fff;
    --gd-border:     2px solid #737373;
    --gd-radius-btn: 100px;
    --gd-radius-inp: 50px;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* ── Title ── */
.gd-title {
    font-family: 'Core Rhino 65 Bold', sans-serif;
    font-size: 48px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    color: var(--gd-black);
    margin: 0 0 32px;
    padding: 0;
}

/* ── Payment method cards ── */
.gd-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* PayPal — 3rd card: on mobile centered below 2 top cards */
.gd-method-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    justify-self: center;
}

@media (min-width: 1024px) {
    .gd-methods {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .gd-method-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
}

.gd-method-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: var(--gd-border);
    background: var(--gd-white);
    padding: 16px 18px 14px;
    aspect-ratio: 16 / 9;
    text-decoration: none;
    color: var(--gd-black);
    transition: transform 0.2s ease;
}

.gd-method-card:hover {
    transform: translate(-2px, -2px);
    text-decoration: none;
    border-color: var(--gd-orange);
}

.gd-method-card * {
    background-color: transparent !important;
}

.gd-method-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--gd-black);
    line-height: 1;
}

.gd-method-arrow svg {
    display: block;
    transition: transform 0.2s ease;
}

.gd-method-card:hover .gd-method-arrow svg {
    transform: translate(0, 0) scale(1.5);
}

.gd-method-logo {
    display: block;
    object-fit: contain;
    object-position: left center;
}

.gd-method-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--gd-black);
    display: block;
    margin-top: 8px;
}

/* ── Donation forms ── */
.gd-forms {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .gd-forms {
        flex-direction: row;
    }
    .gd-form-card {
        flex: 1;
    }
}

.gd-form-card {
    border: var(--gd-border);
    background: var(--gd-white);
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s ease;
}

.gd-form-card:hover {
    border-color: var(--gd-orange);
}

.gd-form-logo {
    display: block;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Monobank: 188×27, LiqPay: 197×41 — exact sizes from design */
.gd-form-card:first-child .gd-form-logo {
    width: 188px;
    max-height: 27px;
}

.gd-form-card:last-child .gd-form-logo {
    width: 197px;
    max-height: 41px;
}

/* ── Currency selector ── */
.gd-currency-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-currency-btn {
    font-family: 'Core Rhino 65 Bold', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.25;
    text-transform: uppercase;
    padding: 9px 24px;
    border-radius: var(--gd-radius-btn);
    border: var(--gd-border);
    background: transparent;
    color: var(--gd-dark-grey);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gd-currency-btn.active {
    background: var(--gd-orange);
    color: var(--gd-white);
    border-color: var(--gd-orange);
}

.gd-currency-btn:not(.active):hover {
    border-color: var(--gd-black);
    color: var(--gd-black);
}

/* ── Inputs ── */
.gd-input {
    display: block;
    width: 100%;
    height: 40px;
    border: 2px solid var(--gd-black);
    border-radius: var(--gd-radius-inp);
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--gd-black);
    background: var(--gd-white);
    box-shadow: none;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.gd-input::placeholder {
    color: var(--gd-black);
    opacity: 1;
}

.gd-input:focus {
    border-color: var(--gd-blue);
}

/* ── Buttons ── */
.gd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: var(--gd-radius-btn);
    border: none;
    font-family: 'Core Rhino 65 Bold', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.25;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gd-btn:hover {
    text-decoration: none;
}

.gd-btn--blue {
    background: var(--gd-blue);
    color: var(--gd-white);
}

.gd-btn--blue:hover {
    background: var(--gd-orange);
    color: var(--gd-white);
}

/* ── Bank transfer ── */
.gd-bank {
    border: var(--gd-border);
    background: var(--gd-white);
    padding: 0;
    position: relative;
    transition: border-color 0.2s ease;
}

.gd-bank:hover {
    border-color: var(--gd-orange);
}

.gd-bank-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.1;
    color: var(--gd-orange);
    padding: 12px 24px 0;
}

.gd-bank-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
}

@media (min-width: 1024px) {
    .gd-bank-body {
        flex-direction: row;
        gap: 48px;
    }
    .gd-bank-col {
        flex: 1;
    }
}

.gd-bank-org {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gd-black);
    margin: 0 0 12px;
}

.gd-bank-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.gd-bank-key {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gd-black);
    white-space: nowrap;
}

.gd-bank-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--gd-black);
    word-break: break-all;
}

.gd-bank-row--stacked {
    flex-direction: column;
    align-items: flex-start;
}

.gd-bank-val-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Copy button ── */
.gd-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--gd-orange);
    flex-shrink: 0;
    position: relative;
    transition: opacity 0.15s;
}

.gd-copy-btn:hover {
    opacity: 0.7;
}

.gd-copy-btn svg {
    display: block;
}

/* Tooltip (translated via data-tooltip attribute) */
.gd-copy-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gd-black);
    color: var(--gd-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.gd-copy-btn.copied::after {
    opacity: 1;
}
