/* A consistent, restrained visual language for project creation and public pages. */
.account-crowd-page,
.account-group-buying-page { color: #354154; }
.account-crowd-page { padding-top: 0; }

.account-crowd-steps,
.account-group-buying-steps {
    border-color: #e7ebf1;
    border-radius: 12px;
    background: #f7f9fc;
    box-shadow: none;
}
.account-crowd-steps li,
.account-group-buying-steps li {
    display: grid;
    min-height: 68px;
    box-sizing: border-box;
    place-items: center;
    padding: 12px 16px;
    border-color: #e7ebf1;
    background: transparent;
    color: #758296;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}
.account-crowd-steps li:nth-child(2) { white-space: nowrap; }
.account-crowd-steps .is-active,
.account-group-buying-steps .is-active {
    background: #fff;
    color: #1469d5;
    box-shadow: inset 0 -3px #1781d0;
    font-weight: 500;
}
.account-group-buying-steps a {
    width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
}
.account-crowd-steps a:hover,
.account-group-buying-steps a:hover { color: #0878c5; text-decoration: none; }

.account-crowd-page > h1,
.account-group-buying-page > h1 {
    color: #344154;
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: -.02em;
}
.account-crowd-field > label,
.account-crowd-choice > legend,
.account-crowd-avatar-section > h2,
.account-crowd-description-field > h2,
.account-crowd-cover-section > h2,
.account-group-buying-field > label,
.account-group-buying-stop-types > legend,
.account-group-buying-condition > label,
.account-group-buying-delivery-section > h2 {
    color: #344154;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}
.account-crowd-hint,
.account-group-buying-hint { color: #718095; }
.account-crowd-page h2,
.account-crowd-page h3,
.account-group-buying-page h2,
.account-group-buying-page h3,
.account-crowd-reward-grid > label > span:first-child,
.account-crowd-reward-grid legend,
.account-crowd-reward-description > span {
    color: #344154;
    font-weight: 500;
}
.account-crowd-field input[type="text"],
.account-crowd-field input[type="url"],
.account-crowd-field select,
.account-crowd-field textarea,
.account-group-buying-field input[type="text"],
.account-group-buying-field select,
.account-group-buying-condition input[type="date"] { border-radius: 8px; border-color: #d8e0ea; }

.project-main-paired-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 22px;
    align-items: start;
}
.account-group-buying-page { max-width: 1160px; }
.account-group-buying-field,
.account-group-buying-stop-types,
.account-group-buying-condition { max-width: none; }
.account-group-buying-currency-field select { max-width: none; }
.account-group-buying-stop-types { width: 100%; }
.project-main-paired-fields > * { min-width: 0; }

.project-currency-picker {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fff;
}
.project-currency-picker [data-currency-symbol] {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    background: #e9f4ff;
    color: #1683ce;
    font-size: 15px;
    font-weight: 600;
}
.project-currency-picker select,
.account-crowd-field .project-currency-picker select,
.account-group-buying-field .project-currency-picker select {
    min-width: 0;
    min-height: 40px;
    width: 100%;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.account-crowd-amount-control { grid-template-columns: minmax(0, 1fr) 130px; }
.account-crowd-main-grid > .account-crowd-fields,
.account-crowd-main-grid > .account-crowd-avatar-section {
    min-width: 0;
    box-sizing: border-box;
    padding: 26px;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgb(27 47 76 / 5%);
}
.account-crowd-main-grid .account-crowd-avatar {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
}
.account-crowd-avatar.is-invalid { border-color: #a33d32; box-shadow: 0 0 0 2px rgb(163 61 50 / 10%); }

#account-crowd-description,
.account-crowd-reward-description textarea { line-height: 1.55; }

.account-crowd-reward-amount strong {
    display: flex;
    align-items: center;
    justify-content: center;
}
.account-crowd-reward-grid {
    grid-template-columns: minmax(180px, .8fr) minmax(0, 300px) minmax(220px, 1fr);
}
.account-crowd-reward-delivery { grid-template-columns: minmax(0, 190px) 100px; }
.account-crowd-reward-limit { display: block; }
.account-crowd-reward-limit-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    align-items: center;
    min-height: 42px;
}
.account-crowd-reward-limit-controls > label {
    display: flex;
    min-width: 0;
    margin: 0;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}
.account-crowd-reward-limit input[type="checkbox"] { flex: 0 0 auto; margin: 0; }
.account-crowd-reward-limit input[type="number"] { min-width: 0; width: 100%; }
.account-crowd-reward-limit input.is-inactive { visibility: hidden; }
.account-crowd-reward-limit small[hidden] { display: none; }

.account-crowd-city-control { position: relative; }
.account-crowd-city-control > input { display: block; width: 100%; }
.account-crowd-city-control > .account-crowd-city-options {
    top: calc(100% + 2px);
    right: 0;
    left: 0;
}

.project-editor-hint {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: baseline;
}
.project-editor-count { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-crowd-editor-toolbar button[hidden],
.account-group-buying-editor-toolbar button[hidden] { display: none; }

.funding-date-field { display: inline-block; position: relative; min-width: 180px; max-width: 100%; }
.account-tickets-page .funding-date-field,
.account-group-buying-condition .funding-date-field { width: 100%; }
.account-tickets-date-row .funding-date-field { flex: 1; min-width: 0; }
.funding-date-field > input[data-date-enhanced] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}
.funding-date-trigger {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fff;
    color: #344154;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.funding-date-trigger::after {
    content: "";
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%231683ce' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='16' height='14' rx='2'/%3E%3Cpath d='M6 2v4M14 2v4M2 8h16'/%3E%3C/svg%3E");
}
.funding-date-trigger:hover { border-color: #1683ce; }
.account-tickets-date-row .funding-date-trigger { border-color: #d8e0ea; border-radius: 8px; color: #344154; }
.funding-date-trigger:focus-visible { outline: 2px solid #1683ce; outline-offset: 2px; }
.funding-date-popup {
    position: fixed;
    z-index: 10020;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgb(30 50 78 / 19%);
    max-height: calc(100vh - 24px);
    overflow: auto;
}
.funding-date-popup[hidden] { display: none; }
.funding-date-popup-header,
.funding-date-popup-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.funding-date-popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.funding-date-popup-header strong { color: #344154; font-size: 15px; font-weight: 600; }
.funding-date-popup button { border: 0; background: none; color: #344154; cursor: pointer; }
.funding-date-popup-header button { width: 34px; height: 34px; font-size: 24px; }
.funding-date-popup-grid span,
.funding-date-popup-grid button { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border-radius: 7px; font-size: 13px; }
.funding-date-popup-grid span { color: #8a97a6; }
.funding-date-popup-grid button:hover { background: #e9f4ff; color: #0878c5; }
.funding-date-popup-grid button.is-selected { background: #0878c5; color: #fff; }
.funding-date-popup-grid button:disabled { color: #bac3cf; cursor: not-allowed; }

.public-project h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; }
.public-project-cover { box-sizing: border-box; aspect-ratio: 24 / 5; max-height: none; object-position: center top; }
.public-project h2 { font-size: clamp(23px, 2.4vw, 29px); font-weight: 500; }
.public-project-identity { padding: 34px 38px; }
.public-project-summary { background: #fff; }
.public-project-summary-media {
    display: grid;
    width: min(230px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 24px;
    overflow: hidden;
    gap: 2px;
    border-radius: 7px;
    background: #eef1f5;
}
.public-project-summary-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
}
.public-project-summary-media--count-1 { grid-template-columns: 1fr; }
.public-project-summary-media--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-project-summary-media--count-3,
.public-project-summary-media--count-4 {
    grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
}
.public-project-summary-media--count-3 img:first-child { grid-row: 1 / span 2; }
.public-project-amount strong { font-size: 22px; font-weight: 600; }
.public-project-summary-row { align-items: start; }
.public-project-summary-row strong { max-width: 55%; font-size: 15px; font-weight: 600; line-height: 1.4; }
.public-project-stop { font-size: 14px; }
.public-project-offer { display: flex; flex-direction: column; }
.public-project-offer-content { display: flex; flex: 1; flex-direction: column; }
.public-project-offer dl { margin-top: auto; margin-bottom: 16px; }
.public-project-offer .public-project-reward-select,
.public-project-offer .public-project-reward-unavailable { margin-top: auto; }
.public-project-offer dl + .public-project-reward-select,
.public-project-offer dl + .public-project-reward-unavailable { margin-top: 0; }
.public-project-offer .public-project-cart-form { margin-top: auto; }
.public-project-contribution-header h1 { font-size: clamp(25px, 3vw, 36px); }
.public-project-contribution-eyebrow { margin: 10px 0 0 !important; color: #718095; font-size: 15px; }
.public-project-contribution-field > label,
.public-cart-checkout-field {
    color: #526174;
    font-weight: 400;
}

.public-project h1 {
    color: #344154;
    font-weight: 400;
}
.public-project-external-link {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    color: #718095;
    font-size: 15px;
}
.public-project-external-link a {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #1769ff;
}
.public-project .public-project-amount strong,
.public-project .public-project-summary-row strong {
    color: #425267;
    font-weight: 500;
}
.public-project .public-project-event-dates strong,
.public-project .public-project-offer h3,
.public-project .public-project-offer h3 a,
.public-project .public-project-offer dd,
.public-project .public-project-tickets-context dd,
.public-project .public-project-ticket-main h2,
.public-project .public-project-ticket-main dd {
    color: #425267;
    font-weight: 500;
}
.public-project .public-project-rich-text strong,
.public-project .public-project-rich-text b,
.public-project .public-project-offer-description strong,
.public-project .public-project-offer-description b {
    color: #425267;
    font-weight: 600;
}
.public-project .public-project-offer h3 a { text-decoration: none; }
.public-project .public-project-offer h3 a:hover { color: #1769ff; }
.public-project .public-project-body { display: flow-root; }
.public-project .public-project-author {
    float: right;
    width: 280px;
    box-sizing: border-box;
    margin: 0 0 28px 42px;
}
.public-project-overview {
    display: flow-root;
    box-sizing: border-box;
    padding: 34px 38px 38px;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(29 47 70 / 7%);
}
.public-project-cover + .public-project-overview { border-radius: 0 0 10px 10px; }
.public-project-overview > .public-project-identity { padding: 0; }
.public-project-overview > .public-project-description { margin-top: 32px; }
.public-project-overview-sidebar {
    float: right;
    width: 330px;
    margin: 32px 0 30px 42px;
}
.public-project-overview-sidebar .public-project-summary {
    box-sizing: border-box;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background: #f7f9fc;
}
.public-project-overview-sidebar .public-project-author {
    float: none;
    width: 100%;
    box-sizing: border-box;
    margin: 18px 0 0;
}
.public-project-author-avatar { flex: 0 0 auto; border-radius: 50%; }
.public-project-author-avatar,
.public-project-author-name { color: #425267; text-decoration: none; }
.public-project-author-name {
    display: block;
    overflow-wrap: anywhere;
    font-weight: 500;
}
.public-project-author-avatar:focus-visible,
.public-project-author-name:focus-visible {
    outline: 2px solid #1769ff;
    outline-offset: 3px;
}
.public-project-author-name:hover { color: #1769ff; }
.public-project-offer-date {
    color: #425267;
    font-weight: 500 !important;
}

.public-cart { color: #344154; }
.public-cart-header { align-items: flex-start; }
.public-cart-header h1 {
    color: #344154;
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.public-cart-header p { margin-top: 8px; color: #718095; line-height: 1.5; }
.public-cart-count {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    background: #e9f4ff;
    color: #1469d5;
    font-size: 16px;
    font-weight: 600;
}
.public-cart-item,
.public-cart-summary,
.public-cart-checkout { border-color: #edf0f4; border-radius: 14px; box-shadow: 0 8px 25px rgb(27 47 76 / 5%); }
.public-cart-item-main h2 { color: #344154; font-size: 19px; font-weight: 500; line-height: 1.35; }
.public-cart-item-project { color: #718095; line-height: 1.45; }
.public-cart-item-values dd { color: #344154; font-size: 15px; font-weight: 600; }
.public-cart-summary { background: #fff; }
.public-cart-summary > strong { font-size: 24px; font-weight: 600; line-height: 1.25; }
.public-cart-checkout h2 { color: #344154; font-size: 20px; font-weight: 500; line-height: 1.3; }
.public-cart-checkout-field { font-size: 15px; line-height: 1.35; }
.public-cart-empty h2 { color: #344154; font-weight: 500; }

.funding-payment-original {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.funding-payment-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.funding-payment-picker button {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    justify-self: stretch;
    place-items: center;
    padding: 7px 10px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    background: #fff;
    color: #425267;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.funding-payment-picker button:hover { border-color: #1683ce; }
.funding-payment-picker button.is-selected { border-color: #1683ce; background: #eef8ff; box-shadow: inset 0 0 0 1px #1683ce; }
.funding-payment-picker button:focus-visible { outline: 2px solid #1683ce; outline-offset: 2px; }
.funding-payment-picker button:disabled { opacity: .6; cursor: wait; }
.funding-payment-picker img { display: block; max-width: 64px; max-height: 32px; }
.public-cart-checkout > .funding-payment-picker button[data-payment-value="2"] {
    display: flex;
    align-items: center;
    justify-content: center;
}
.public-cart-checkout > .funding-payment-picker button[data-payment-value="2"] img {
    flex: 0 0 auto;
    width: 48px;
    height: 32px;
    margin: 0;
}
.public-project-contribution-panel .funding-payment-picker button[data-payment-value="2"] img {
    transform: scale(2.4);
}

@media (max-width: 900px) {
    .account-crowd-main-grid { gap: 20px; }
    .account-crowd-reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-project-overview-sidebar {
        width: 300px;
        margin-left: 28px;
    }
}
@media (max-width: 760px) {
    .account-crowd-reward-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .public-project-contribution-panel .funding-payment-picker button[data-payment-value="2"] img {
        transform: scale(1.8);
    }
    .public-project .public-project-body {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    .public-project .public-project-author {
        float: none;
        width: 100%;
        margin: 0;
    }
    .public-project-overview {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 24px;
    }
    .public-project-overview > .public-project-identity {
        order: 1;
        padding: 0;
    }
    .public-project-overview > .public-project-description {
        order: 2;
        margin: 0;
    }
    .public-project-overview-sidebar {
        float: none;
        width: 100%;
        margin: 0;
        order: 3;
    }
    .account-crowd-steps li,
    .account-group-buying-steps li { min-height: 54px; padding: 8px 5px; font-size: 12px; }
    .account-crowd-steps li:not(.is-active) { display: none; }
    .project-main-paired-fields { grid-template-columns: 1fr; gap: 0; }
    .account-crowd-main-grid > .account-crowd-fields,
    .account-crowd-main-grid > .account-crowd-avatar-section { padding: 18px; }
    .account-crowd-reward-limit-controls { grid-template-columns: minmax(0, 1fr) 92px; }
    .project-editor-hint { align-items: flex-start; }
    .public-project-identity { padding: 24px; }
}
