.sg-party{--ink:#34251d;--teal:#166e70;--brown:#653104;--line:#d6d1c8;--cream:#fff9e8;max-width:1120px;margin:32px auto 64px;color:var(--ink);font-size:16px;line-height:1.55}
.sg-party *{box-sizing:border-box}.sg-party h1{font-size:clamp(28px,4vw,42px);line-height:1.18;margin:24px 0 16px}.sg-party h2{font-size:24px;margin:32px 0 16px}.sg-party h3{font-size:19px;margin:20px 0 12px}.sg-party p{max-width:72ch}.sg-party a{color:var(--teal);text-underline-offset:3px}.sg-party a:hover{text-decoration-thickness:2px}.sg-party :focus-visible{outline:3px solid #0b6466;outline-offset:3px}.sg-party ::selection{background:#ffd400;color:#34251d}
.sg-party-nav{display:flex;flex-wrap:wrap;gap:12px 24px;border-bottom:1px solid var(--line);padding:0 0 18px;margin:0 0 26px}.sg-party-nav a{font-weight:600}.sg-party-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.sg-party-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}.sg-party .sg-button,.sg-party button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 18px;background:var(--teal);border:1px solid var(--teal);border-radius:4px;color:#fff;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;box-shadow:none}.sg-party button:hover,.sg-party .sg-button:hover{background:#105557;border-color:#105557;color:#fff}.sg-party .sg-secondary{background:white;color:var(--teal)}.sg-party button:disabled{background:#e3dfd6;border-color:#d6d1c8;color:#62594e;cursor:wait}
.sg-party fieldset{border:0;padding:0;margin:28px 0}.sg-party legend{font-size:22px;font-weight:600;margin:0 0 16px;padding:0}.sg-party-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}.sg-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0 0 16px}.sg-field>span,.sg-party label{font-weight:500}.sg-party input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.sg-party select,.sg-party textarea{width:100%;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #8c887e;border-radius:4px;background:white;color:var(--ink);font:inherit;line-height:1.4;caret-color:var(--teal)}.sg-party textarea{min-height:112px;resize:vertical}.sg-party input::placeholder,.sg-party textarea::placeholder{color:#6a6258}.sg-party input[type=checkbox],.sg-party input[type=radio]{width:20px;height:20px;flex:none;accent-color:var(--teal);margin:0}.sg-check{display:flex;align-items:flex-start;gap:10px;margin:14px 0;min-height:28px}.sg-check input{margin-top:3px!important}.sg-party small,.sg-muted{color:#675d50}.sg-party .sg-note{background:var(--cream);padding:16px 20px;border:1px solid #d6bf80;border-radius:4px;margin:20px 0}.sg-status{padding:14px 18px;margin:20px 0;border:1px solid #6d9b83;background:#edf6ef;color:#244832;border-radius:4px;overflow-wrap:anywhere}.sg-status:empty{display:none}.sg-status[data-error=true]{background:#fff0ed;color:#8b271c;border-color:#c66559}.sg-party [aria-invalid=true]{border-color:#b33221!important}
.sg-table-wrap{overflow:auto;border-top:1px solid var(--line);margin:18px 0}.sg-party table{width:100%;border-collapse:collapse;font-size:15px}.sg-party th,.sg-party td{padding:14px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.sg-party th{color:var(--brown);font-weight:700;background:#fff9e8}.sg-party .sg-numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sg-party dl{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,1fr);gap:8px 24px;max-width:600px}.sg-party dt,.sg-party dd{margin:0;padding:6px 0}.sg-party dd{text-align:right;font-variant-numeric:tabular-nums}.sg-party .sg-total{font-weight:700;border-top:1px solid var(--line);padding-top:14px}.sg-party details{padding:16px 0;border-bottom:1px solid var(--line)}.sg-party summary{font-weight:600;color:var(--teal);cursor:pointer;padding:6px 0}.sg-party .sg-empty{padding:26px 0;color:#675d50}.sg-party .sg-public-description{white-space:pre-line}.sg-share{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:center}.sg-share img{width:180px;height:180px}.sg-party .sg-radio-options{display:grid;gap:6px}.sg-party .sg-radio-options label{padding:14px;border:1px solid var(--line);border-radius:4px}.sg-party .sg-radio-options label:has(input:checked){border-color:var(--teal);background:#eef8f6}.sg-party .sg-preview{padding:20px;background:#fff9e8;border:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}.sg-party .sg-preview:empty{display:none}.sg-party .sg-inline{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.sg-party .sg-inline .sg-field{flex:1;min-width:140px}.sg-party form[data-busy=true]{opacity:.8}
@media(max-width:700px){.sg-party{margin:20px 0 40px;font-size:16px}.sg-party-grid{grid-template-columns:1fr;gap:0}.sg-party-nav{gap:12px 18px}.sg-share{grid-template-columns:1fr}.sg-party h1{font-size:30px}.sg-party th,.sg-party td{padding:12px 8px}.sg-party dl{gap:8px 12px}.sg-party-actions{align-items:stretch}.sg-party-actions>*{flex:1 1 auto}.sg-party .sg-table-wrap{max-width:100%}.sg-party .sg-note{padding:14px}.sg-party .sg-mobile-hide{display:none}}
@media(prefers-reduced-motion:no-preference){.sg-party button,.sg-party a{transition:background-color 120ms ease-out,color 120ms ease-out}}

.sg-party [hidden] {
    display: none !important;
}

.sg-event-status {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eef8f6;
    color: #105557;
    font-weight: 600;
}

.sg-party-consultant {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.sg-party-consultant img {
    object-fit: cover;
    border-radius: 50%;
}

.sg-party .sg-party-consultant h2,
.sg-party-consultant p {
    margin: 0 0 4px;
}

.sg-party {
    font-family: "Open Sans", Arial, sans-serif; /* Existing Sunset Gourmet brand typeface for titles and commerce controls. */
    max-width: 1080px;
}

.sg-party h1,
.sg-party h2 {
    color: var(--brown);
    text-wrap: balance;
}

.sg-party h2 {
    margin: 32px 0 12px;
}

.sg-party h3 {
    margin: 16px 0 8px;
}

.sg-party .sg-context {
    max-width: none;
    padding: 12px 16px;
    background: #eef8f6;
    border: 1px solid #b9d9d6;
}

.sg-party .sg-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .65fr);
    gap: 38px;
    align-items: start;
}

.sg-review-summary {
    margin-top: 26px;
    padding: 20px;
    background: var(--cream);
    border: 1px solid #d6bf80;
    border-radius: 4px;
}

.sg-review-summary h2:first-child {
    margin-top: 0;
}

.sg-review-summary address {
    font-style: normal;
    overflow-wrap: anywhere;
}

.sg-review-summary dl {
    grid-template-columns: minmax(0, 1fr) auto;
}

.sg-tax {
    font-size: 14px;
}

.sg-party dt.sg-tax {
    padding-inline-start: 12px;
}

.sg-cart-line,
.sg-product-row,
.sg-link-product,
.sg-share {
    border-block-start: 1px solid var(--line);
    padding: 14px 0;
}

.sg-cart-line .sg-party-bar {
    justify-content: space-between;
}

.sg-product-row,
.sg-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px 24px;
}

.sg-product-row h2,
.sg-product-row h3 {
    margin-top: 0;
}

.sg-party .sg-text-action {
    background: transparent;
    border: 0;
    color: var(--teal);
    padding-inline: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sg-party .sg-text-action:hover {
    background: transparent;
    color: #105557;
    text-decoration-thickness: 2px;
}

.sg-quantity {
    display: inline-block;
    padding-inline-start: 10px;
    margin-inline-start: 8px;
    border-inline-start: 1px solid var(--line);
}

.sg-product-picker {
    max-width: 560px;
}

.sg-product-picker .sg-field {
    margin-bottom: 10px;
}

.sg-product-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.sg-product-results button {
    max-width: 100%;
    text-align: start;
}

.sg-share a {
    overflow-wrap: anywhere;
}

.sg-preview-row {
    padding: 8px 0;
}

.sg-preview iframe {
    width: 100%;
    min-height: 340px;
    border: 1px solid var(--line);
    background: white;
}

.sg-party .sg-inline {
    align-items: center;
}

.sg-party .sg-inline .sg-field {
    margin-bottom: 0;
}

.sg-profile-url-preview {
    display: block;
    margin-block-start: 4px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sg-profile-visibility {
    row-gap: 4px;
}

.sg-profile-visibility .sg-check {
    align-items: center;
    margin: 0;
    min-height: 36px;
}

.sg-party [data-count-status] {
    display: block;
    margin: -8px 0 12px;
}

@media (max-width: 767px) {
    .sg-party .sg-review-layout,
    .sg-product-row,
    .sg-preview-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .sg-review-summary {
        margin-top: 8px;
        padding: 14px;
    }

    .sg-party input[type=date],
    .sg-party input[type=datetime-local],
    .sg-party input[type=time] {
        min-width: 0;
    }
}

.sg-party .sg-radio-options {
    gap: 12px;
}

.sg-party .sg-radio-options .sg-check {
    margin: 0;
}

@media (max-width: 767px) {
    .sg-party :focus-visible,
    .sg-party [data-status] {
        scroll-margin-top: 108px;
    }
}
.sg-legacy-events {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 28%);
    gap: 30px;
}
.sg-event-create-links {
    display: grid;
    gap: 10px;
}
.sg-share a {
    overflow-wrap: anywhere;
}
.sg-legacy-events .sg-panel h2 {
    margin: 0;
    font-size: 16px;
}
.sg-party .sg-new-party-shortcut { display: none; }
@media (max-width: 760px) {
    .sg-party .sg-new-party-shortcut { display: block; margin-block-end: 1rem; }
    #sg-new-events-title { scroll-margin-top: max(6rem, calc(var(--sg-session-notice-height, 0px) + 1rem)); }
    .sg-legacy-events {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }
}

/* Controls: every field and button on a party page is 44px tall, and an inline row of them
   lines up along the bottom. In the back office office.css loads after this file and sizes
   controls its own way, so the same rules are repeated under .sg-office to win there.
   The rich-text editor (.tox) keeps its own toolbar buttons. */
.sg-party .sg-button,
.sg-party button:where(:not(.tox *)) {
    font-size: 16px;
    line-height: 22px;
}

.sg-party input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.sg-party select,
.sg-party textarea {
    height: 44px;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.sg-party textarea {
    height: auto;
}

.sg-party .sg-inline {
    align-items: flex-end;
}

.sg-party .sg-party-grid {
    row-gap: 0;
}

.sg-office .sg-party .sg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px;
}

.sg-office .sg-party .sg-inline .sg-field {
    margin-bottom: 0;
}

.sg-office .sg-party .sg-field > span {
    margin: 0;
}

.sg-office .sg-party input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.sg-office .sg-party select,
.sg-office .sg-party textarea {
    width: 100%;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #8c887e;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.sg-office .sg-party textarea {
    height: auto;
    min-height: 112px;
}

.sg-office .sg-party button:where(:not(.tox *)),
.sg-office .sg-party .sg-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid var(--teal);
    border-radius: 4px;
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    text-decoration: none;
}

.sg-office .sg-party .sg-button + .sg-button {
    margin-left: 0;
}

.sg-office .sg-party .sg-secondary {
    background: #fff;
    color: var(--teal);
}

.sg-office .sg-party button:where(:not(.tox *)):hover,
.sg-office .sg-party .sg-button:hover {
    background: #105557;
    border-color: #105557;
    color: #fff;
    text-decoration: none;
}

.sg-office .sg-party button:where(:not(.tox *)):disabled {
    background: #e3dfd6;
    border-color: #d6d1c8;
    color: #62594e;
}

.sg-office .sg-party .sg-text-action,
.sg-office .sg-party .sg-text-action:hover {
    min-height: 0;
    padding-inline: 0;
    border: 0;
    background: transparent;
    color: var(--teal);
    text-decoration: underline;
}

/* office.css zeroes heading margins; give party headings room above and below their controls
   (panel headers keep their own bar style). */
.sg-office .sg-party h1 {
    margin: 0 0 16px;
}

.sg-office .sg-party h2:where(:not(.sg-panel h2)) {
    margin: 32px 0 12px;
}

.sg-office .sg-party h3 {
    margin: 16px 0 8px;
}

/* The theme removes the native dropdown arrow, which makes a select look like a text box.
   Draw a teal chevron at the right and keep the text clear of it. */
.sg-party select:not([multiple]),
.sg-office .sg-party select:not([multiple]) {
    appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23166e70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
    cursor: pointer;
}
