.ristocore-booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
}
.ristocore-field { display: flex; flex-direction: column; gap: 6px; }
.ristocore-full { grid-column: 1 / -1; }
.ristocore-field label { font-weight: 600; }
.ristocore-field input,
.ristocore-field select,
.ristocore-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
}
.ristocore-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.ristocore-submit:disabled { opacity: .7; cursor: not-allowed; }
.ristocore-message { grid-column: 1 / -1; margin-top: 8px; font-weight: 600; }
.ristocore-message.success { color: #166534; }
.ristocore-message.error { color: #991b1b; }
.ristocore-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
@media (max-width: 640px) {
    .ristocore-booking-form { grid-template-columns: 1fr; }
}


.ristocore-booking-wrapper {
    width: 100%;
}

.ristocore-form-header {
    margin-bottom: 22px;
}

.ristocore-form-header h3 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.ristocore-form-header p {
    margin: 0;
    opacity: .78;
}

.ristocore-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    opacity: .7;
}

.ristocore-booking-form select:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.ristocore-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    display: none;
}

.ristocore-message.success,
.ristocore-message.error {
    display: block;
}

.ristocore-message.success {
    background: #edf8ef;
    border: 1px solid #bfe5c7;
}

.ristocore-message.error {
    background: #fff1f1;
    border: 1px solid #f1b8b8;
}


/* RistoCore v0.7.0 - configurable button style */
.ristocore-booking-wrapper {
    --ristocore-button-color: #123456;
    --ristocore-button-hover-color: #0f2f44;
}

.ristocore-booking-form .ristocore-submit {
    background: var(--ristocore-button-color);
    border: 2px solid var(--ristocore-button-color);
    color: #fff;
    transition: all .2s ease;
}

.ristocore-booking-form .ristocore-submit:hover {
    background: var(--ristocore-button-hover-color, var(--ristocore-button-color));
    border-color: var(--ristocore-button-hover-color, var(--ristocore-button-color));
    filter: none;
}

.ristocore-booking-form .ristocore-submit.ristocore-button-square {
    border-radius: 0;
}

.ristocore-booking-form .ristocore-submit.ristocore-button-rounded {
    border-radius: 999px;
}

.ristocore-booking-form .ristocore-submit.ristocore-button-outline {
    background: transparent;
    color: var(--ristocore-button-color);
    border-color: var(--ristocore-button-color);
}

.ristocore-booking-form .ristocore-submit.ristocore-button-outline:hover {
    background: var(--ristocore-button-hover-color, var(--ristocore-button-color));
    border-color: var(--ristocore-button-hover-color, var(--ristocore-button-color));
    color: #fff;
    filter: none;
}

/* Privacy checkbox alignment fix */
.ristocore-booking-form .ristocore-privacy label {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.35;
}

.ristocore-booking-form .ristocore-privacy input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}


/* RistoCore v1.4.0-beta - button full colors */
.ristocore-booking-wrapper {
    --ristocore-button-bg-color: #123456;
    --ristocore-button-text-color: #ffffff;
    --ristocore-button-hover-bg-color: #0f2f44;
    --ristocore-button-hover-text-color: #ffffff;
}

.ristocore-booking-form .ristocore-submit {
    background: var(--ristocore-button-bg-color);
    border-color: var(--ristocore-button-bg-color);
    color: var(--ristocore-button-text-color);
}

.ristocore-booking-form .ristocore-submit:hover {
    background: var(--ristocore-button-hover-bg-color);
    border-color: var(--ristocore-button-hover-bg-color);
    color: var(--ristocore-button-hover-text-color);
    filter: none;
}

.ristocore-booking-form .ristocore-submit.ristocore-button-outline {
    background: transparent;
    color: var(--ristocore-button-bg-color);
    border-color: var(--ristocore-button-bg-color);
}

.ristocore-booking-form .ristocore-submit.ristocore-button-outline:hover {
    background: var(--ristocore-button-hover-bg-color);
    border-color: var(--ristocore-button-hover-bg-color);
    color: var(--ristocore-button-hover-text-color);
}


.ristocore-form-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: #667085;
}


/* RistoCore v2.5.1-beta - date availability notice */
.ristocore-date-notice {
    grid-column: 1 / -1;
    margin: 6px 0 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.ristocore-date-notice.is-error {
    background: #fff1f0;
    color: #8a1f11;
    border: 1px solid #f4b7b0;
}

.ristocore-date-notice.is-info {
    background: #eef6ff;
    color: #164a76;
    border: 1px solid #b9dcff;
}


/* RistoCore v2.7.0-beta - Waitlist */
.ristocore-waitlist-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #d7e7f7;
    background: #f6fbff;
}

.ristocore-waitlist-panel[hidden] {
    display: none !important;
}

.ristocore-waitlist-panel h4 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.ristocore-waitlist-panel p {
    margin: 0 0 14px;
    opacity: .82;
}

.ristocore-waitlist-panel .ristocore-field {
    margin-bottom: 14px;
}

.ristocore-waitlist-message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    display: none;
    font-weight: 600;
}

.ristocore-waitlist-message.success,
.ristocore-waitlist-message.error {
    display: block;
}

.ristocore-waitlist-message.success {
    color: #166534;
    background: #edf8ef;
    border: 1px solid #bfe5c7;
}

.ristocore-waitlist-message.error {
    color: #991b1b;
    background: #fff1f1;
    border: 1px solid #f1b8b8;
}


/* RistoCore v2.7.1-beta - frontend waitlist layout fix */
.ristocore-booking-wrapper.ristocore-waitlist-active .ristocore-booking-form .ristocore-submit:not(.ristocore-waitlist-submit) {
    display: none !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin-top: 28px !important;
    padding: 26px 28px !important;
    border-radius: 16px;
    border: 1px solid #b9dcff;
    background: #f6fbff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel h4 {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.2 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: inherit !important;
    letter-spacing: normal !important;
    transform: none !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel p {
    display: block !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    line-height: 1.45 !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel .ristocore-field {
    margin: 0 0 16px 0 !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-submit {
    width: auto;
    min-width: 220px;
}

@media (max-width: 640px) {
    .ristocore-booking-wrapper .ristocore-waitlist-panel {
        margin-top: 22px !important;
        padding: 20px !important;
    }

    .ristocore-booking-wrapper .ristocore-waitlist-panel h4 {
        font-size: 21px !important;
    }

    .ristocore-booking-wrapper .ristocore-waitlist-submit {
        width: 100%;
    }
}


/* RistoCore v2.7.2-beta - force waitlist visibility */
.ristocore-waitlist-panel:not([hidden]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ristocore-booking-form.ristocore-waitlist-active-form .ristocore-submit:not(.ristocore-waitlist-submit) {
    display: none !important;
}

.ristocore-waitlist-panel .ristocore-waitlist-message.success,
.ristocore-waitlist-panel .ristocore-waitlist-message.error {
    display: block !important;
}


/* RistoCore v2.7.3-beta - waitlist under alert */
.ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert {
    grid-column: 1 / -1;
    margin-top: 10px !important;
    margin-bottom: 22px !important;
    padding: 18px 20px !important;
    border-radius: 12px !important;
    background: #f6fbff !important;
    border: 1px solid #b9dcff !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert h4 {
    font-size: 21px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert p {
    margin-bottom: 14px !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert .ristocore-field {
    max-width: 420px;
}

@media (max-width: 640px) {
    .ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert {
        margin-top: 8px !important;
        padding: 16px !important;
    }

    .ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert h4 {
        font-size: 19px !important;
    }
}


/* RistoCore v2.7.6-beta - hide booking fields during waitlist */
.ristocore-booking-form .ristocore-hidden-for-waitlist {
    display: none !important;
}

.ristocore-booking-form.ristocore-waitlist-active-form .ristocore-hidden-for-waitlist {
    display: none !important;
}


/* RistoCore v2.7.9-beta - waitlist button padding fix */
.ristocore-booking-wrapper .ristocore-waitlist-panel .ristocore-waitlist-submit,
.ristocore-booking-wrapper .ristocore-waitlist-panel button.ristocore-waitlist-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 100% !important;
    min-height: 56px !important;
    padding: 16px 34px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

.ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert .ristocore-waitlist-submit,
.ristocore-booking-wrapper .ristocore-waitlist-panel.is-inline-after-alert button.ristocore-waitlist-submit {
    min-width: 300px !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
}

@media (max-width: 640px) {
    .ristocore-booking-wrapper .ristocore-waitlist-panel .ristocore-waitlist-submit,
    .ristocore-booking-wrapper .ristocore-waitlist-panel button.ristocore-waitlist-submit {
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        white-space: normal !important;
    }
}


/* RistoCore v2.8.7-beta - frontend WhatsApp button */
.ristocore-frontend-whatsapp {
    margin-top: 18px;
    text-align: center;
}

.ristocore-frontend-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 10px;
    background: #25D366;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: transform .15s ease, opacity .15s ease;
}

.ristocore-frontend-whatsapp-button:hover {
    color: #ffffff !important;
    opacity: .92;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .ristocore-frontend-whatsapp-button {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
}
