@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;700&display=swap');

/* ── Universal base reset for all plugin containers ────────────────────────
   Sets Inter as the default; specific elements below override to Cormorant.  */
.tjl-wrap, .tjl-wrap *,
.tjl-home, .tjl-home *,
.tjl-unsub-wrap, .tjl-unsub-wrap * {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* TinyMCE wraps content in <p> tags — ensure they inherit the div's inline styles */
div.tjl-subline p,
.tjl-subscribe-wrap .tjl-sub-text p,
.tjl-unsub-wrap .tjl-unsub-body p {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #4a5645 !important;
    margin: 0 0 .85em !important;
}
div.tjl-promo-text p {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 21px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #4a5645 !important;
    margin: 0 0 .85em !important;
}
div.tjl-subline p:last-child,
div.tjl-promo-text p:last-child { margin-bottom: 0 !important; }

.tjl-decoration { line-height: 0; }
.tjl-dec-top    { margin-bottom: 1.75rem; }
.tjl-dec-bottom { margin-top: 1.75rem; }
.tjl-decoration svg { display: block; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════════════
   FORMS  [tiny_joys_form]  [tiny_joys_subscribe]
   Combined element+class selectors beat theme's .entry-content h2 / p rules
   ══════════════════════════════════════════════════════════════════════════ */

.tjl-wrap {
    max-width: 640px;
    margin: 3rem auto;
    padding: 3rem 2.5rem;
    background: #F7F9F5;
    border: 1px solid #dce7d8;
    border-radius: 4px;
    text-align: center;
}

p.tjl-eyebrow,
.tjl-wrap .tjl-eyebrow {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    color: #B8849A !important;
    margin: 0 0 .75rem !important;
}

h2.tjl-headline,
.tjl-wrap h2.tjl-headline {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(28px, 4vw, 38px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #2C3528 !important;
    margin: 0 0 1rem !important;
}

p.tjl-subline,
.tjl-wrap p.tjl-subline {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #4a5645 !important;
    margin: 0 0 2rem !important;
}
.tjl-wrap p.tjl-subline em {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 1.08em !important;
    color: #6B3A5C !important;
}

/* Subscribe body text */
.tjl-subscribe-wrap .tjl-sub-text,
.tjl-subscribe-wrap .tjl-sub-text p,
.tjl-subscribe-wrap .tjl-sub-text * {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #4a5645 !important;
}
.tjl-subscribe-wrap .tjl-sub-text {
    max-width: 480px;
    margin: 0 auto 2rem;
}
.tjl-subscribe-wrap .tjl-sub-text p { margin: 0 0 .75em !important; }
.tjl-subscribe-wrap .tjl-sub-text p:last-child { margin-bottom: 0 !important; }

/* ── Field row ─────────────────────────────────────────────────────────── */
.tjl-field-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.tjl-wrap input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: .8rem 1.1rem;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #2C3528;
    background: #fff;
    border: 1.5px solid #c5d4c0;
    border-radius: 3px;
    outline: none;
    transition: border-color .2s;
}
.tjl-wrap input[type="email"]:focus        { border-color: #B8849A; }
.tjl-wrap input[type="email"]::placeholder { color: #9aad95; }
.tjl-wrap input[type="email"].tjl-input-error { border-color: #c0574a; background: #fff8f7; }

.tjl-wrap button {
    flex: 0 0 auto;
    padding: .75rem 1.5rem;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #fff;
    background: #6B3A5C;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    line-height: 1.4;
}
.tjl-wrap button:hover:not(:disabled) { background: #57304b; }
.tjl-wrap button:disabled { opacity: .4; cursor: not-allowed; }

.tjl-btn-spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tjl-spin .7s linear infinite;
    flex-shrink: 0;
}
.tjl-wrap button.loading .tjl-btn-spinner { display: inline-block; }
.tjl-wrap button.loading .tjl-btn-text   { opacity: .6; }
@keyframes tjl-spin { to { transform: rotate(360deg); } }

/* ── Consent ─────────────────────────────────────────────────────────────── */
.tjl-consent-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    text-align: left;
    max-width: 480px;
    margin: 0 auto .5rem;
    cursor: pointer;
}
.tjl-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 17px; height: 17px;
    margin-top: 2px;
    accent-color: #6B3A5C;
    cursor: pointer;
}
.tjl-consent-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #6a7d65 !important;
}

p.tjl-error,
.tjl-wrap .tjl-error {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #b94a48 !important;
    margin: .4rem 0 0 !important;
    min-height: 1.2em;
    animation: tjl-fade-in .2s ease;
}

/* ── Check-inbox panel ─────────────────────────────────────────────────── */
.tjl-inbox { padding: .5rem 0; animation: tjl-fade-in .4s ease; }
.tjl-inbox-icon { font-size: 2.5rem; margin-bottom: .75rem; }

p.tjl-inbox-title,
.tjl-inbox .tjl-inbox-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    color: #2C3528 !important;
    margin: 0 0 .75rem !important;
}
p.tjl-inbox-body,
.tjl-inbox .tjl-inbox-body {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #4a5645 !important;
    margin: 0 0 .75rem !important;
}
.tjl-inbox-body strong { color: #6B3A5C; font-weight: 700; }
p.tjl-inbox-note,
.tjl-inbox .tjl-inbox-note {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: #8fa489 !important;
    margin: 0 !important;
}

@keyframes tjl-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .tjl-wrap { padding: 2rem 1.25rem; }
    .tjl-field-row { flex-direction: column; }
    .tjl-wrap button { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   UNSUBSCRIBE PAGES
   ══════════════════════════════════════════════════════════════════════════ */

.tjl-unsub-wrap {
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem 2.5rem;
    background: #F7F9F5;
    border: 1px solid #dce7d8;
    border-radius: 4px;
    text-align: center;
}

h2.tjl-unsub-headline,
.tjl-unsub-wrap h2.tjl-unsub-headline {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(26px, 4vw, 36px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #2C3528 !important;
    margin: 0 0 1.25rem !important;
}

.tjl-unsub-wrap .tjl-unsub-body,
.tjl-unsub-wrap .tjl-unsub-body p,
.tjl-unsub-wrap .tjl-unsub-body li,
.tjl-unsub-wrap .tjl-unsub-body * {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #4a5645 !important;
}
.tjl-unsub-wrap .tjl-unsub-body {
    margin: 0 0 2rem;
    text-align: left;
}
.tjl-unsub-wrap .tjl-unsub-body p        { margin: 0 0 .85em !important; }
.tjl-unsub-wrap .tjl-unsub-body p:last-child { margin-bottom: 0 !important; }
.tjl-unsub-wrap .tjl-unsub-body strong   { font-weight: 700 !important; color: #2C3528 !important; }

/* Feedback fields */
.tjl-unsub-feedback { margin-top: 1.75rem; margin-bottom: 1.25rem; text-align: left; }
label.tjl-unsub-feedback-label,
.tjl-unsub-feedback .tjl-unsub-feedback-label {
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #6a7d65;
    margin-bottom: .5rem;
}

.tjl-unsub-email-field,
.tjl-unsub-textarea {
    width: 100%;
    padding: .8rem 1rem;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    color: #2C3528;
    background: #fff;
    border: 1.5px solid #c5d4c0;
    border-radius: 3px;
    outline: none;
    transition: border-color .2s;
}
.tjl-unsub-email-field:focus, .tjl-unsub-textarea:focus { border-color: #B8849A; }
.tjl-unsub-email-field::placeholder, .tjl-unsub-textarea::placeholder { color: #9aad95; }
.tjl-unsub-textarea { resize: vertical; }

.tjl-unsub-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: .75rem;
}
button.tjl-stay-btn,
.tjl-unsub-buttons .tjl-stay-btn {
    padding: .75rem 1.5rem;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #fff;
    background: #2C5F2E;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    line-height: 1.4;
}
button.tjl-stay-btn:hover,
.tjl-unsub-buttons .tjl-stay-btn:hover { background: #234e25; }

button.tjl-confirm-unsub-btn,
.tjl-unsub-buttons .tjl-confirm-unsub-btn {
    padding: .75rem 1.5rem;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400;
    color: #888;
    background: transparent;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    line-height: 1.4;
}
button.tjl-confirm-unsub-btn:hover,
.tjl-unsub-buttons .tjl-confirm-unsub-btn:hover { color: #b94a48; border-color: #b94a48; }

p.tjl-unsub-error,
.tjl-unsub-wrap .tjl-unsub-error {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #b94a48;
    margin: .5rem 0 0;
    min-height: 1.2em;
}

.tjl-unsub-result { padding: .5rem 0; animation: tjl-fade-in .4s ease; }
.tjl-unsub-result-icon { font-size: 2.5rem; margin-bottom: .75rem; }
p.tjl-unsub-result-msg,
.tjl-unsub-result .tjl-unsub-result-msg {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #4a5645 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

@media (max-width: 500px) {
    .tjl-unsub-wrap { padding: 2rem 1.25rem; }
    .tjl-unsub-buttons { flex-direction: column-reverse; }
    button.tjl-stay-btn, button.tjl-confirm-unsub-btn { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOMEPAGE  [tiny_joys_home]
   ══════════════════════════════════════════════════════════════════════════ */

.tjl-home {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    color: #2C3528;
}
.tjl-hero { display: flex; gap: 3rem; align-items: flex-start; margin-bottom: 3.5rem; }
.tjl-cover-wrap { flex: 0 0 auto; width: 240px; }
.tjl-cover {
    width: 100%; height: auto; display: block; border-radius: 3px;
    box-shadow: 0 4px 12px rgba(44,53,40,.12), 0 1px 3px rgba(44,53,40,.08);
}
.tjl-hero-text { flex: 1 1 0; min-width: 0; }
.tjl-home-decoration { margin-bottom: 1.25rem; }

h2.tjl-home-tagline,
.tjl-home h2.tjl-home-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(26px, 3.5vw, 36px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #2C3528 !important;
    margin: 0 0 1.25rem !important;
}

.tjl-home .tjl-promo-text,
.tjl-home .tjl-promo-text p,
.tjl-home .tjl-promo-text * {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
    color: #4a5645 !important;
}
.tjl-home .tjl-promo-text { margin-bottom: 1.75rem; }
.tjl-home .tjl-promo-text p { margin: 0 0 .85em !important; }
.tjl-home .tjl-promo-text p:last-child { margin-bottom: 0 !important; }
.tjl-home .tjl-promo-text em    { font-family: 'Cormorant Garamond', serif !important; font-style: italic !important; font-size: 1.08em !important; color: #6B3A5C !important; }
.tjl-home .tjl-promo-text strong { font-weight: 700 !important; color: #2C3528 !important; }

.tjl-buy-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.tjl-home .tjl-price {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    color: #6B3A5C !important;
    line-height: 1;
}
a.tjl-amazon-btn,
.tjl-home a.tjl-amazon-btn {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    background: #6B3A5C !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background .2s;
    white-space: nowrap;
}
a.tjl-amazon-btn:hover,
.tjl-home a.tjl-amazon-btn:hover { background: #57304b !important; }
.tjl-amazon-icon { width: 18px; height: 18px; opacity: .85; flex-shrink: 0; }

.tjl-review-box {
    background: #F7F9F5;
    border: 1px solid #dce7d8;
    border-radius: 4px;
    padding: 2.25rem 2.5rem;
    text-align: center;
}
.tjl-review-stars { font-size: 1.5rem; color: #B8849A; letter-spacing: .1em; margin-bottom: .75rem; }

p.tjl-review-heading,
h3.tjl-review-heading,
.tjl-review-box .tjl-review-heading {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    color: #2C3528 !important;
    margin: 0 0 .85rem !important;
}
p.tjl-review-text,
.tjl-review-box .tjl-review-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #4a5645 !important;
    max-width: 560px;
    margin: 0 auto 1.5rem !important;
}
a.tjl-review-btn,
.tjl-review-box a.tjl-review-btn {
    display: inline-block !important;
    padding: .75rem 1.75rem;
    background: transparent !important;
    color: #6B3A5C !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    text-decoration: none !important;
    border: 1.5px solid #B8849A;
    border-radius: 3px;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
a.tjl-review-btn:hover,
.tjl-review-box a.tjl-review-btn:hover {
    background: #6B3A5C !important;
    color: #fff !important;
    border-color: #6B3A5C !important;
}

@media (max-width: 620px) {
    .tjl-hero { flex-direction: column; gap: 1.75rem; }
    .tjl-cover-wrap { width: 180px; margin: 0 auto; }
    .tjl-hero-text { text-align: center; }
    .tjl-buy-row { justify-content: center; }
    .tjl-review-box { padding: 1.75rem 1.25rem; }
}
