/* Organize My Wishlist: banner, sidebar and builder. Brand: olive #5A5818, ink #1F2308, cream #FCF9F0 / #F3EBD2,
   pink #F0A3B3 (#F7C8C0 soft), rule #D8D2BE, rose #D3245F. */

/* ---------- banner on collection pages ---------- */
.tywiw-wl-banner { max-width: var(--wp--style--global--wide-size, 1200px); margin: 1.25rem auto; background: #F3EBD2; border-left: 4px solid #F0A3B3; }
.tywiw-wl-banner__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .85rem 1.2rem; }
.tywiw-wl-banner__text { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; line-height: 1.35; color: #1F2308; }
.tywiw-wl-banner__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.4rem; background: #5A5818; color: #FCF9F0 !important; text-decoration: none !important; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; border: 0; cursor: pointer; }
.tywiw-wl-banner__btn:hover, .tywiw-wl-banner__btn:focus-visible { background: #F7C8C0; color: #5A5818 !important; }

/* ---------- sidebar shell ---------- */
body { transition: padding-right .25s ease; }
.tywiw-wl-panel { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); right: 0; bottom: 0; width: 400px; max-width: 100vw; box-sizing: border-box; background: #FCF9F0; border-left: 1px solid #D8D2BE; box-shadow: -10px 0 28px rgba(31, 35, 8, .10); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; z-index: 9990; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.tywiw-wl.is-open .tywiw-wl-panel { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.tywiw-wl-panel__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; background: #FCF9F0; border-bottom: 1px solid #D8D2BE; }
.tywiw-wl-panel__title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.6rem; color: #1F2308; }
.tywiw-wl-close { min-height: 44px; padding: 0 .25rem; background: none; border: 0; color: #5A5818; font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; }
.tywiw-wl-panel__body { padding: 1rem 1.25rem 2.5rem; }
.tywiw-wl-intro { margin: 0 0 .9rem; font-size: 1.02rem; line-height: 1.5; color: #1F2308; }

/* collapsed tab (desktop: right edge) */
.tywiw-wl-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9989; display: flex; align-items: center; gap: .6rem; padding: 1.1rem .7rem; min-width: 44px; background: #5A5818; color: #FCF9F0; border: 0; cursor: pointer; writing-mode: vertical-rl; font-family: 'EB Garamond', Garamond, Georgia, serif; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.tywiw-wl-tab:hover, .tywiw-wl-tab:focus-visible { background: #F7C8C0; color: #5A5818; }
.tywiw-wl-tab__count { writing-mode: horizontal-tb; min-width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; border-radius: 50%; background: #F0A3B3; color: #1F2308; font-size: .8rem; letter-spacing: 0; }
.tywiw-wl.is-open .tywiw-wl-tab { display: none; }

/* wide desktop: push the page over instead of covering it */
@media (min-width: 1100px) {
	body.tywiw-wl-open { padding-right: 400px; }
	.tywiw-wl-panel { box-shadow: none; }
}
/* phones: slide-up panel opened from a small fixed button; no side panel */
.tywiw-wl-continue { display: none; }
.tywiw-wl-close__m { display: none; }
@media (max-width: 699px) {
	.tywiw-wl-panel { top: auto; left: 0; right: 0; bottom: var(--tywiw-wl-b, 0px); width: auto; height: var(--tywiw-wl-h, 90dvh); max-height: 94dvh; border-left: 0; border-top: 1px solid #D8D2BE; box-shadow: 0 -10px 28px rgba(31, 35, 8, .16); transform: translateY(105%); }
	.tywiw-wl-tab { top: auto; right: auto; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); writing-mode: horizontal-tb; padding: 0 1.1rem; min-height: 44px; box-shadow: 0 2px 10px rgba(31, 35, 8, .25); white-space: nowrap; }
	.tywiw-wl-tab__count { min-width: 1.4rem; height: 1.4rem; line-height: 1.4rem; font-size: .78rem; }
	.tywiw-wl-close__d { display: none; }
	.tywiw-wl-close__m { display: inline; }
	.tywiw-wl-panel__body { padding-bottom: 5rem; }
	.tywiw-wl-continue { display: block; width: 100%; min-height: 48px; margin-top: 1rem; background: none; border: 1px solid #5A5818; color: #5A5818; font: inherit; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; cursor: pointer; }
	body.tywiw-wl-open { overflow: hidden; }
	body.tywiw-wl-ready { padding-bottom: 72px; }
}

/* ---------- builder ---------- */
.tywiw-wl-person { margin: 0 0 1.25rem; padding: 1.1rem 0 .25rem; border-top: 1px solid #D8D2BE; }
.tywiw-wl-person:first-child { border-top: 0; padding-top: .25rem; }
.tywiw-wl-person__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.tywiw-wl-person__title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.4rem; color: #1F2308; }
.tywiw-wl-label { display: block; margin: .8rem 0 .3rem; font-size: 1.02rem; font-weight: 600; color: #1F2308; }
.tywiw-wl-input { display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: .55rem .75rem; background: #fff; border: 1px solid #D8D2BE; border-radius: 0; font: inherit; font-size: 1rem; color: #1F2308; }
.tywiw-wl-input::placeholder { color: #6b6a55; opacity: 1; }
.tywiw-wl-input:focus { outline: 2px solid #5A5818; outline-offset: 1px; border-color: #5A5818; }
.tywiw-wl-input.is-bad { border-color: #D3245F; outline: 2px solid #D3245F; }
.tywiw-wl-row { display: flex; gap: .4rem; align-items: stretch; }
.tywiw-wl-x { flex: 0 0 44px; min-height: 44px; background: #fff; border: 1px solid #D8D2BE; color: #5A5818; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tywiw-wl-x:hover, .tywiw-wl-x:focus-visible { border-color: #5A5818; }
.tywiw-wl-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: #5A5818; font: inherit; font-size: 1.02rem; text-decoration: underline; cursor: pointer; }
.tywiw-wl-link:hover, .tywiw-wl-link:focus-visible { color: #1F2308; }
.tywiw-wl-addperson { margin: .25rem 0 .5rem; font-weight: 600; }
.tywiw-wl-msg { margin: .4rem 0 0; color: #D3245F; font-weight: 600; min-height: 0; }
.tywiw-wl-msg:empty { display: none; }
.tywiw-wl-data { display: none !important; }
.tywiw-wl-ready { margin: 1.4rem 0 .4rem; padding-top: 1.2rem; border-top: 1px solid #D8D2BE; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.4rem; color: #1F2308; }
.tywiw-wl-ready__p { margin: 0 0 .5rem; line-height: 1.5; }

/* inside the sidebar the form needs no extra chrome */
.tywiw-wl-panel .gform_wrapper { margin: 0; }
.tywiw-wl-panel .gform_wrapper .gform_footer { padding-top: .5rem; }
.tywiw-wl-panel .gform_wrapper .gfield textarea { min-height: 7rem; }

/* beat theme / Gravity Forms default button colors */
.tywiw-wl-panel .tywiw-wl-link, .gform_wrapper .tywiw-wl-link, .tywiw-wl-panel .tywiw-wl-close, .gform_wrapper .tywiw-wl-close { background: none !important; color: #5A5818 !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 .1rem !important; text-transform: none !important; letter-spacing: normal !important; }
.tywiw-wl-panel .tywiw-wl-link:hover, .tywiw-wl-panel .tywiw-wl-link:focus-visible, .gform_wrapper .tywiw-wl-link:hover, .gform_wrapper .tywiw-wl-link:focus-visible { color: #1F2308 !important; }
.tywiw-wl-panel .tywiw-wl-x, .gform_wrapper .tywiw-wl-x { background: #fff !important; color: #5A5818 !important; border: 1px solid #D8D2BE !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
.tywiw-wl-panel .tywiw-wl-continue, .gform_wrapper .tywiw-wl-continue { background: none !important; color: #5A5818 !important; border: 1px solid #5A5818 !important; border-radius: 0 !important; }
.tywiw-wl .tywiw-wl-tab { border-radius: 0 !important; border: 0 !important; background: #5A5818 !important; color: #FCF9F0 !important; }
.tywiw-wl .tywiw-wl-tab:hover, .tywiw-wl .tywiw-wl-tab:focus-visible { background: #F7C8C0 !important; color: #5A5818 !important; }
.tywiw-wl-banner { max-width: var(--wp--style--global--wide-size, 1200px); width: 100%; box-sizing: border-box; }
