.tces,.tces *{box-sizing:border-box}.tces{max-width:760px;margin:24px auto;background:#fff;color:#242424;border:1px solid #eee;border-radius:16px;overflow:hidden;box-shadow:0 6px 25px #0000000c;font-family:inherit}.tces-head{text-align:center;background:linear-gradient(135deg,#fff7ed,#ffedd5);padding:22px 16px;border-bottom:1px solid #ffdfbd}.tces-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 8px;border-radius:12px;background:linear-gradient(135deg,#ff9800,#f45100);font-size:26px}.tces-head h2{margin:0 0 5px;font-size:25px;color:#242424}.tces-head p,.tces-foot{margin:0;color:#666;font-size:13px}.tces-form{padding:24px;display:grid;gap:16px}.tces-form label{display:block;font-size:14px;font-weight:600;color:#333;margin:0}.tces-form label>span{color:#d54c00}.tces-form input:not([type=checkbox]),.tces-form select,.tces-form textarea{display:block;width:100%;min-width:0;min-height:44px;margin:6px 0 0;padding:10px 12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#222;font:inherit;font-weight:400}.tces-form input:focus,.tces-form select:focus,.tces-form textarea:focus{outline:2px solid #ff9a50;outline-offset:1px}.tces-form small{display:block;font-size:12px;font-weight:400;color:#666;margin-top:5px}.tces-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tces-logo{display:grid;grid-template-columns:82px 1fr;gap:14px;align-items:center}.tces-logo>div:last-child{min-width:0;display:grid;gap:12px}.tces-preview{width:82px;height:82px;border:1px dashed #ccc;border-radius:10px;display:grid;place-items:center;background:#fafafa;font-size:11px;text-align:center;color:#777}.tces-preview img{width:100%;height:100%;object-fit:contain;padding:5px}.tces-preview [hidden]{display:none!important}.tces-form .tces-consent{display:flex;gap:10px;align-items:flex-start;padding:12px;background:#fff7ed;border:1px solid #ffe1c5;border-radius:8px;font-weight:400}.tces-consent input{margin-top:4px;accent-color:#f97316}.tces-form .tces-consent span{color:#444}.tces-form button{border:0;border-radius:9px;padding:14px;color:#fff;background:linear-gradient(135deg,#ef7900,#d94800);font-size:16px;font-weight:700;cursor:pointer}.tces-form button:hover{filter:brightness(.94)}.tces-foot{text-align:center}.tces-trap{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.tces-notice{padding:12px;border-radius:8px;font-size:14px}.tces-notice.ok{background:#e9f8ef;color:#176434}.tces-notice.error{background:#fff0ed;color:#a52b16}@media(max-width:600px){.tces{margin:12px auto}.tces-form{padding:15px;gap:14px}.tces-grid{grid-template-columns:1fr;gap:14px}.tces-head h2{font-size:22px}.tces-form input:not([type=checkbox]),.tces-form select,.tces-form textarea{font-size:16px}.tces-logo{grid-template-columns:64px 1fr;gap:10px}.tces-preview{width:64px;height:64px}}

/* Full available content width on desktop; preserve mobile layout. */
@media (min-width: 992px){.tces{width:100%;max-width:none;margin:24px auto;}.tces-form{padding:28px 32px;}.tces-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Hide the theme's page heading, never the form's own header. */
body.tces-form-page .entry-title,
body.tces-form-page .page-title,
body.tces-form-page .wp-block-post-title,
body.tces-form-page .entry-header:not(:has(.tces)),
body.tces-form-page .page-header:not(:has(.tces)),
body.tces-form-page .page-title-wrap:not(:has(.tces)),
body.tces-form-page .page-title-wrapper:not(:has(.tces)) {
 display:none !important;
}
/* Remove the form's extra top spacing on these pages only. */
body.tces-form-page .tces {margin-top:0;}
