.lcrm-public-card{max-width:760px;margin:24px auto;padding:24px;border:1px solid #d9ded8;border-radius:14px;background:#fff;box-shadow:0 3px 16px rgba(0,0,0,.04)}
.lcrm-public-photo{display:block;width:100%;max-height:500px;object-fit:contain;margin-bottom:18px;border-radius:10px}
.lcrm-price{font-size:1.15rem;color:#244b38}.lcrm-buy-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.lcrm-buy-form input[type=number]{width:100px;padding:9px 12px;border:1px solid #b8c9bd;border-radius:6px}
.lcrm-buy-form button{cursor:pointer;border:0;border-radius:6px;padding:12px 18px;background:#166739;color:#fff;font-weight:700}
.lcrm-buy-form button:hover{background:#0a4a24}.lcrm-note{color:#4b5850;font-size:.9rem}

/* v0.1.1: Public fundraiser has its own full-width layout, not the blog post/sidebar layout. */
body.single-lcr_fundraiser #lcrm-fundraiser-main.lcrm-fundraiser-main {
  display:block; width:calc(100% - 36px); max-width:1240px; margin:32px auto 70px;
  padding:0; float:none; clear:both; box-sizing:border-box;
}
#lcrm-fundraiser-main .lcrm-fundraiser-article { width:100%; max-width:none; margin:0; padding:0; }
#lcrm-fundraiser-main .lcrm-fundraiser-heading {text-align:center; margin:0 auto 24px;}
#lcrm-fundraiser-main .lcrm-fundraiser-heading h1 { margin:0; font-size:clamp(28px, 3vw, 46px); line-height:1.2; }
#lcrm-fundraiser-main .lcrm-fundraiser-banner { display:block; margin:0 auto 26px; max-width:1200px; }
#lcrm-fundraiser-main img.lcrm-fundraiser-banner-image,
#lcrm-fundraiser-main .lcrm-fundraiser-banner img,
#lcrm-fundraiser-main img.lcrm-public-photo {
 display:block !important; width:100% !important; height:auto !important; max-height:none !important;
 aspect-ratio:auto !important; object-fit:contain !important; object-position:center !important;
 margin:0 auto; border-radius:8px;
}
#lcrm-fundraiser-main .lcrm-fundraiser-description { max-width:960px; margin:0 auto; }
#lcrm-fundraiser-main .lcrm-public-card { max-width:850px; margin:28px auto; }
@media(max-width:600px) { body.single-lcr_fundraiser #lcrm-fundraiser-main.lcrm-fundraiser-main { width:calc(100% - 24px); margin:18px auto 36px; } }

/* v0.1.2: visible ticket selector on drafts/closed fundraisers (checkout stays locked). */
.lcrm-shop-title {font-size:1.6rem;line-height:1.25;margin:0 0 10px;color:#182b20}
.lcrm-public-card .lcrm-price {margin:0 0 14px}
.lcrm-public-card .lcrm-buy-form {display:grid;grid-template-columns:minmax(135px, 1fr) minmax(120px,1fr) auto;align-items:end;gap:14px;margin:16px 0 8px}
.lcrm-ticket-qty,.lcrm-ticket-total {display:flex;flex-direction:column;gap:7px}
.lcrm-ticket-qty label,.lcrm-ticket-total>span {font-size:.88rem;font-weight:600;color:#2b4935}
.lcrm-ticket-total strong {font-size:1.5rem;line-height:1.5;color:#183a25}
.lcrm-public-card .lcrm-buy-form input[type=number] {margin:0;max-width:160px;width:100%;box-sizing:border-box;min-height:46px}
.lcrm-public-card .lcrm-buy-form button {min-height:46px;white-space:nowrap}
.lcrm-public-card .lcrm-buy-form button[disabled] {background:#68786d;cursor:not-allowed;opacity:.92}
.lcrm-status {margin:14px 0 0;padding:10px 14px;background:#f5f5f0;border-left:3px solid #b6b9a8;color:#39473c;font-size:.93rem}
@media(max-width:720px) {.lcrm-public-card .lcrm-buy-form {grid-template-columns:1fr 1fr}.lcrm-public-card .lcrm-buy-form button{grid-column:1/-1;width:100%}}

/* v0.1.3 preview visible even when unpublished; no checkout in preview */
.lcrm-preview-label{font-size:.88rem;font-weight:800;letter-spacing:.035em;color:#134c35;background:#e9f5eb;border:1px solid #bcd6c3;border-radius:7px;padding:9px 13px;margin:0 0 18px;}

/* v0.1.5: staff-only, simulated buyer details checkout in preview. */
.lcrm-test-checkout{margin:24px 0 6px;padding:19px;border:1px dashed #94ad9b;background:#fafcf9;border-radius:10px}
.lcrm-test-checkout h3{margin:0 0 8px;color:#214e37;font-size:1.2rem}
.lcrm-test-checkout>p{font-size:.92rem;color:#40564a;margin:0 0 16px}
.lcrm-test-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.lcrm-test-fields label{display:flex;flex-direction:column;gap:5px;font-size:.88rem;font-weight:650;color:#263d31}
.lcrm-test-fields input{min-height:41px;width:100%;padding:8px 10px;box-sizing:border-box;border:1px solid #bbc9be;border-radius:5px;background:#fff}
.lcrm-test-memo{font-size:.9rem;margin:18px 0 12px}
.lcrm-test-send{background:#126941;border:0;border-radius:7px;color:#fff;font-size:1rem;font-weight:700;padding:13px 20px;cursor:pointer}
.lcrm-test-send:hover{background:#095031}
@media(max-width:600px){.lcrm-test-fields{grid-template-columns:1fr}}

/* v0.1.9: admin-only WooCommerce cash checkout rehearsal */
.lcrm-cash-preview{padding:16px;background:#eef7ee;border:1px solid #c3d9c3;border-radius:9px;margin:18px 0 10px}.lcrm-cash-preview p{margin:0 0 10px;color:#1e4330}.lcrm-cash-preview form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.lcrm-cash-preview input{width:85px;padding:9px;border:1px solid #abbeb2;border-radius:6px}.lcrm-cash-preview button{background:#15623e;border:none;border-radius:7px;padding:11px 17px;color:#fff;font-weight:700;cursor:pointer}
/* v0.2.0: WooCommerce order confirmation with screenshot-friendly tickets. */
.lcrm-order-confirmation{background:#f5fbf5;border:2px solid #267b50;border-radius:12px;padding:23px;margin:24px 0;color:#173a29}
.lcrm-order-confirmation h2{font-size:clamp(23px,2.8vw,32px);color:#164a31;margin:0 0 15px}
.lcrm-order-confirmation h3{margin:14px 0 9px;font-size:1.15rem}
.lcrm-ticket-grid{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 22px}
.lcrm-ticket-chip{font-weight:800;letter-spacing:.08em;font-variant-numeric:tabular-nums;padding:13px 18px;border:2px dashed #43815e;background:white;border-radius:8px;color:#215239;font-size:clamp(17px,2vw,25px)}
.lcrm-public-winner{background:#fdf8e9;border:2px solid #d7be81;padding:22px;border-radius:10px;margin:14px auto;color:#244a35}

/* v0.2.6: featured prize and checkout above the fold, no shipping methods for virtual tickets */
#lcrm-fundraiser-main .lcrm-fundraiser-heading {text-align:left;margin:0 0 18px}
#lcrm-fundraiser-main .lcrm-fundraiser-heading h1 {font-size:clamp(25px,2.4vw,36px)}
#lcrm-fundraiser-main .lcrm-fundraiser-hero {display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:26px;align-items:start;max-width:1200px;margin:0 auto 24px}
#lcrm-fundraiser-main .lcrm-fundraiser-hero .lcrm-fundraiser-banner {width:100%;max-width:none;margin:0}
#lcrm-fundraiser-main .lcrm-fundraiser-hero img.lcrm-fundraiser-banner-image {width:100%!important;height:auto!important;max-height:440px!important;object-fit:contain!important;object-position:top left!important;border-radius:10px}
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-public-card {margin:0;max-width:none;width:100%;padding:clamp(16px,2.3vw,26px);box-sizing:border-box}
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-shop-title {font-size:clamp(21px,2.2vw,29px)}
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-buy-form {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;margin:16px 0 10px}
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-buy-form button {grid-column:1/-1;width:100%;font-size:1.1rem;min-height:50px}
#lcrm-fundraiser-main .lcrm-fundraiser-description {max-width:1200px;width:100%;margin:20px auto 0}
#lcrm-fundraiser-main .lcrm-fundraiser-image-col .lcrm-image-placeholder {background:#f5f7f2;min-height:230px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#536557}
.lcrm-test-note {font-size:.87rem;color:#664423;background:#fff7eb;border:1px solid #eed7ae;border-radius:6px;padding:12px;margin:10px 0}
@media(max-width:850px){#lcrm-fundraiser-main .lcrm-fundraiser-hero {grid-template-columns:1fr;gap:16px}#lcrm-fundraiser-main .lcrm-fundraiser-hero img.lcrm-fundraiser-banner-image{max-height:350px!important;object-position:center!important}}
@media(max-width:500px){#lcrm-fundraiser-main .lcrm-fundraiser-hero img.lcrm-fundraiser-banner-image{max-height:250px!important}#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-buy-form {grid-template-columns:1fr 1fr}}

/* v0.2.7: Explain the fundraiser BEFORE the ticket selector, alongside the prize photo.
   Preserve formatted headings, Google Fonts and inline text styles from Manage Fundraiser. */
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description {
  width:100%; max-width:none; margin:0 0 18px; padding:0 2px; box-sizing:border-box;
  color:inherit; line-height:1.5; overflow-wrap:break-word;
}
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description > :first-child { margin-top:0; }
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description > :last-child { margin-bottom:0; }
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description p { margin-bottom:12px; }
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description h1,
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description h2,
#lcrm-fundraiser-main .lcrm-fundraiser-checkout-col > .lcrm-fundraiser-description h3 { line-height:1.25; margin-bottom:10px; }

/* v0.3.2: ticket schedule is concise, with no boxed date table. */
.lcrm-public-card .lcrm-sales-dates {margin:2px 0 8px;font-size:.94rem;line-height:1.45;color:#405346}
.lcrm-public-card .lcrm-live-drawing {margin:0 0 10px;font-size:.95rem;line-height:1.4;color:#214833;font-weight:650}
.lcrm-checkout-assurance {font-size:.91rem;color:#284838;line-height:1.5;margin:12px 0 10px}
.lcrm-order-confirmation {max-width:820px;margin:18px auto 28px;padding:clamp(16px,4vw,30px);border:1px solid #cddfd1;border-top:5px solid #1e724b;border-radius:14px;background:#fff;color:#173b2a;box-shadow:0 6px 26px rgba(16,50,30,.05);box-sizing:border-box;overflow-wrap:anywhere}
.lcrm-receipt-heading {text-align:center;margin:0 0 19px}
.lcrm-receipt-overline {display:block;font-size:.76rem;letter-spacing:.07em;text-transform:uppercase;color:#486c55;font-weight:700}
.lcrm-order-confirmation .lcrm-receipt-heading h2 {font-size:clamp(1.45rem,5vw,2rem);line-height:1.2;margin:6px 0;color:#154a30}
.lcrm-screenshot-reminder {border:1px solid #b2d5ba;background:#edf8ef;border-radius:12px;padding:15px 17px;margin:15px 0 22px;display:flex;flex-direction:column;gap:5px;text-align:center}
.lcrm-screenshot-reminder strong {font-size:1.13rem;line-height:1.3;color:#174c32}
.lcrm-screenshot-reminder span {font-size:.91rem;line-height:1.5;color:#294634}
.lcrm-receipt-ticket-group h3 {margin:0 0 3px;font-size:1.12rem;color:#244534}
.lcrm-ticket-count {margin:0 0 12px;font-size:.86rem;color:#52665a}
.lcrm-order-confirmation .lcrm-ticket-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:9px;margin:10px 0 20px}
.lcrm-order-confirmation .lcrm-ticket-chip {font-size:1.2rem;text-align:center;padding:12px 8px;white-space:nowrap;letter-spacing:.055em;border-radius:8px}
.lcrm-receipt-test-banner {background:#fff3e4;border:2px solid #d28b43;color:#683b1b;border-radius:10px;text-align:center;padding:12px;margin:12px 0;display:flex;flex-direction:column;gap:3px;font-size:.85rem}
.lcrm-receipt-test-banner strong {font-size:1rem}
.lcrm-test-email-dest {font-size:.86rem;margin:0 0 12px}
.lcrm-receipt-footer {border-top:1px solid #e2ebe3;padding-top:12px;margin-top:10px;font-size:.86rem;color:#365140}
.lcrm-receipt-footer p {margin:6px 0}
.lcrm-receipt-order {color:#718275;font-size:.77rem}
.lcrm-pending-note {color:#725228;background:#fff9e8;border:1px solid #e6d6ae;padding:12px;border-radius:7px}
@media(max-width:520px) {
 .lcrm-order-confirmation {width:100%;margin:12px auto 20px;padding:15px 12px}
 .lcrm-order-confirmation .lcrm-ticket-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .lcrm-order-confirmation .lcrm-ticket-chip {font-size:1.1rem;letter-spacing:.035em;padding:12px 3px}
 .lcrm-screenshot-reminder {padding:13px 10px;margin-bottom:19px}
}

/* v0.3.3: Clean fundraiser receipts, scoped to this ticket order only. No changes to normal store orders. */
body.lcrm-ticket-order-received .woocommerce-order-overview,
body.lcrm-ticket-order-received .woocommerce-order-details,
body.lcrm-ticket-order-received .woocommerce-customer-details,
body.lcrm-ticket-order-received .wc-block-order-confirmation-order-summary,
body.lcrm-ticket-order-received .wc-block-order-confirmation-summary,
body.lcrm-ticket-order-received .wc-block-order-confirmation-totals,
body.lcrm-ticket-order-received .wc-block-order-confirmation-billing-address,
body.lcrm-ticket-order-received .wc-block-order-confirmation-shipping-address {display:none!important}
body.lcrm-ticket-order-received .woocommerce-thankyou-order-received {display:none}
.lcrm-order-confirmation .lcrm-receipt-overline{font-size:1rem;letter-spacing:.04em}
.lcrm-receipt-order-details{margin:14px 0 22px}
.lcrm-order-confirmation .lcrm-receipt-order-details h3{font-size:1.38rem;color:#164a31;margin:12px 0}
.lcrm-order-summary{width:100%;border-collapse:collapse;font-size:1rem;table-layout:auto}
.lcrm-order-summary th,.lcrm-order-summary td{padding:11px 8px;border-bottom:1px solid #e1e7e2;text-align:left;vertical-align:top}
.lcrm-order-summary th:last-child,.lcrm-order-summary td:last-child{text-align:right}
.lcrm-order-summary thead th{background:#eef5ef;color:#214832}
.lcrm-order-summary .lcrm-summary-total th,.lcrm-order-summary .lcrm-summary-total td{font-weight:800;font-size:1.15rem}
.lcrm-receipt-footer,.lcrm-receipt-footer p {font-size:1.04rem;line-height:1.55;color:#1d4631}
.lcrm-receipt-order {font-size:1rem!important;font-weight:700}
@media(max-width:520px){.lcrm-order-summary{font-size:.95rem}.lcrm-order-summary th,.lcrm-order-summary td{padding:9px 5px}.lcrm-receipt-footer,.lcrm-receipt-footer p{font-size:1rem}}

/* v0.3.4: Confirmation explains delivery without suggesting screenshots are required. */
.lcrm-ticket-email-note {border:1px solid #b2d5ba;background:#edf8ef;border-radius:10px;padding:13px 15px;margin:15px 0 19px;text-align:center;line-height:1.5;color:#174c32}
.lcrm-ticket-email-note strong {font-size:1.06rem;font-weight:650;overflow-wrap:anywhere}
@media(max-width:520px){.lcrm-ticket-email-note {padding:12px;margin:12px 0 16px}.lcrm-ticket-email-note strong{font-size:1rem}}


/* v0.4.0: Rules link under featured image with simple modal. */
.lcrm-rules-link-wrap{margin:12px 0 0;text-align:left}
.lcrm-rules-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #c7d7cc;border-radius:999px;background:#fff;color:#174531;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.lcrm-rules-link:hover{background:#f7fbf8}
.lcrm-rules-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#e8f4ec;color:#166739;font-size:14px;font-weight:700;line-height:1}
.lcrm-rules-modal[hidden]{display:none!important}
.lcrm-rules-modal{position:fixed;inset:0;z-index:99999}
.lcrm-rules-backdrop{position:absolute;inset:0;background:rgba(11,22,16,.58)}
.lcrm-rules-dialog{position:relative;z-index:2;width:min(680px,calc(100% - 28px));max-height:min(86vh,900px);overflow:auto;margin:7vh auto 0;background:#fff;border-radius:16px;padding:24px 24px 20px;box-shadow:0 18px 55px rgba(0,0,0,.2)}
.lcrm-rules-dialog h2{margin:0 28px 14px 0;color:#164a31;font-size:clamp(1.35rem,2.4vw,1.8rem)}
.lcrm-rules-close{position:absolute;right:14px;top:12px;border:none;background:transparent;color:#355445;font-size:34px;line-height:1;cursor:pointer}
.lcrm-rules-content{color:#20382b;line-height:1.6}.lcrm-rules-content ul,.lcrm-rules-content ol{margin:0;padding-left:20px}.lcrm-rules-content p{margin:0 0 10px}
.lcrm-rules-content li+li{margin-top:10px}
body.lcrm-rules-open{overflow:hidden}
@media(max-width:560px){.lcrm-rules-dialog{margin:5vh auto 0;padding:20px 16px 16px}.lcrm-rules-link-wrap{text-align:center}}


/* v0.4.3: tighten WooCommerce ticket checkout spacing and presentation without affecting the rest of the site. */
body.lcrm-ticket-checkout .woocommerce-checkout-review-order,
body.lcrm-ticket-checkout #payment,
body.lcrm-ticket-checkout .woocommerce form .form-row { font-size: 1rem; }
body.lcrm-ticket-checkout .woocommerce form.checkout_coupon,
body.lcrm-ticket-checkout .woocommerce-checkout-review-order-table,
body.lcrm-ticket-checkout #payment { margin-top: 14px; }
body.lcrm-ticket-checkout .woocommerce-billing-fields__field-wrapper .form-row,
body.lcrm-ticket-checkout .woocommerce-additional-fields .form-row,
body.lcrm-ticket-checkout form.checkout .form-row { margin-bottom: 12px; }
body.lcrm-ticket-checkout .woocommerce-billing-fields h3,
body.lcrm-ticket-checkout .woocommerce-additional-fields h3,
body.lcrm-ticket-checkout #order_review_heading { margin-bottom: 12px; }
body.lcrm-ticket-checkout #payment ul.payment_methods { margin: 0; padding: 8px 0 0; }
body.lcrm-ticket-checkout #payment ul.payment_methods > li { padding: 10px 0 8px; margin: 0; }
body.lcrm-ticket-checkout #payment ul.payment_methods > li:not(:last-child) { border-bottom: 1px solid #ece7df; }
body.lcrm-ticket-checkout #payment div.payment_box { margin: 8px 0 0 0; padding: 12px 14px; }
body.lcrm-ticket-checkout #payment .payment_method_stripe label,
body.lcrm-ticket-checkout #payment .payment_method_ppcp-gateway label,
body.lcrm-ticket-checkout #payment .payment_method_paypal label,
body.lcrm-ticket-checkout #payment label[for^="payment_method"] { display: inline-flex; align-items: center; gap: 10px; line-height: 1.35; }
body.lcrm-ticket-checkout #payment .payment_method_stripe img,
body.lcrm-ticket-checkout #payment .payment_method_paypal img,
body.lcrm-ticket-checkout #payment .payment_method_ppcp-gateway img,
body.lcrm-ticket-checkout #payment label[for^="payment_method"] img { margin: 0 4px 0 0; vertical-align: middle; max-height: 28px; width: auto; }
body.lcrm-ticket-checkout #payment .wc_payment_method .payment_box .form-row { margin-bottom: 10px; }
body.lcrm-ticket-checkout #payment .wc_payment_method .payment_box .form-row:last-child { margin-bottom: 0; }
body.lcrm-ticket-checkout #payment .payment_box .wc-stripe-elements-field,
body.lcrm-ticket-checkout #payment .payment_box .StripeElement { margin: 0; }
body.lcrm-ticket-checkout .woocommerce-privacy-policy-text { margin: 12px 0 10px; font-size: .95rem; line-height: 1.5; }
body.lcrm-ticket-checkout .woocommerce-terms-and-conditions-wrapper .form-row { margin: 8px 0 12px; }
body.lcrm-ticket-checkout .woocommerce-terms-and-conditions-wrapper label { display: inline-flex; align-items: center; gap: 8px; }
body.lcrm-ticket-checkout #place_order { margin-top: 6px; min-height: 50px; }
@media (max-width: 700px) {
  body.lcrm-ticket-checkout #payment ul.payment_methods > li { padding: 8px 0 7px; }
  body.lcrm-ticket-checkout #payment div.payment_box { padding: 10px 12px; }
  body.lcrm-ticket-checkout .woocommerce-billing-fields__field-wrapper .form-row,
  body.lcrm-ticket-checkout .woocommerce-additional-fields .form-row,
  body.lcrm-ticket-checkout form.checkout .form-row { margin-bottom: 10px; }
}


/* v0.4.8: Small-screen laptop date fit. Preserve the two-column prize layout.
   Give the right-side ticket panel a little more horizontal text room,
   without shrinking the text or changing the mobile layout excessively. */
@media (min-width: 851px) {
  #lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-public-card {
    padding-left: 16px;
    padding-right: 16px;
  }
  #lcrm-fundraiser-main .lcrm-fundraiser-checkout-col .lcrm-sales-dates {
    font-size: .89rem;
    letter-spacing: -.005em;
  }
}
