.kbc-motif-back{display:inline-block;color:var(--kbc-ink);font-size:14px;margin-bottom:24px;text-decoration:underline;text-underline-offset:4px}.kbc-motif-gallery{list-style:none;padding:0;margin:32px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.kbc-motif-gallery>li{min-width:0;background:#fffdf9;border:1px solid #e1d8c8;border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #5544260c}.kbc-motif-gallery>li>button{display:block;border:0;background:transparent;width:100%;padding:0;color:var(--kbc-ink);cursor:zoom-in;text-align:left}.kbc-motif-gallery img{display:block;width:100%;height:220px;object-fit:contain;padding:14px;background:#f2eee5}.kbc-motif-gallery button>span{display:block;font:700 21px/1.25 Georgia,serif;padding:14px 16px 8px}.kbc-motif-gallery>li>a{display:inline-block;margin:0 16px 15px;color:var(--kbc-red);font-size:13px;font-weight:800;text-decoration:underline;text-underline-offset:4px}
.kbc-motif-dialog{padding:0;border:1px solid #ded4c2;border-radius:18px;background:#fffaf0;color:#103654;width:min(900px,calc(100% - 36px));max-width:none;max-height:92dvh;box-shadow:0 20px 70px #0004;overflow:auto;font:16px/1.5 'Nunito Sans',sans-serif}.kbc-motif-dialog[open]{display:flex;flex-direction:column}.kbc-motif-dialog::backdrop{background:#112a3ad9}.kbc-motif-dialog *{box-sizing:border-box}.kbc-motif-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;gap:15px;border-bottom:1px solid #e1d8c8}.kbc-page .kbc-motif-dialog-head h2{font-size:27px;margin:0}.kbc-motif-dialog-head>button{border:0;background:none;color:#103654;font-size:28px;min-width:44px;height:44px;cursor:pointer}.kbc-motif-preview{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:16px 12px;background:#f5f0e6}.kbc-motif-preview>button{border:1px solid #d8cdbb;border-radius:50%;width:44px;height:44px;background:#fffdf9;color:#103654;font-size:30px;cursor:pointer}.kbc-motif-preview figure{margin:0;min-width:0;text-align:center}.kbc-motif-preview img{width:100%;height:min(36dvh,320px,max(60px,calc(92dvh - 380px)));object-fit:contain;display:block}.kbc-motif-preview figcaption{margin-top:10px;font-weight:800}.kbc-motif-thumbnails{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:12px 20px;overflow:auto;max-height:140px;flex-shrink:0}.kbc-motif-thumbnails>button{padding:3px;border:2px solid transparent;border-radius:6px;background:#fff;cursor:pointer}.kbc-motif-thumbnails>button[aria-pressed=true]{border-color:#c83c35}.kbc-motif-thumbnails img{width:100%;height:58px;object-fit:contain;display:block}.kbc-motif-dialog-foot{padding:14px 20px;border-top:1px solid #e1d8c8;display:flex;justify-content:center}.kbc-motif-dialog-foot .kbc-button{min-width:220px}.kbc-catalog-choice{margin-top:16px;background:#f3eee4;border-radius:12px;padding:14px}.kbc-selected-motif{display:flex;align-items:center;gap:14px;margin-bottom:12px}.kbc-selected-motif img{width:100px;height:80px;object-fit:contain;border-radius:6px;background:white}.kbc-selected-motif p{font-size:14px;font-weight:800;margin:0}.kbc-custom-theme{margin-top:18px}.kbc-custom-theme>label{display:block;font-size:13px;font-weight:800;margin-bottom:6px}
@media(max-width:750px){.kbc-motif-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.kbc-motif-gallery img{height:170px;padding:10px}.kbc-motif-gallery button>span{font-size:18px;padding:12px 12px 8px}.kbc-motif-gallery>li>a{margin-inline:12px;font-size:12px}.kbc-motif-dialog{width:calc(100% - 20px);max-height:94dvh}.kbc-motif-dialog-head{padding:8px 12px}.kbc-page .kbc-motif-dialog-head h2{font-size:23px}.kbc-motif-preview{grid-template-columns:36px minmax(0,1fr) 36px;gap:6px;padding:12px 6px}.kbc-motif-preview>button{width:36px;height:36px}.kbc-motif-preview img{height:min(32dvh,max(60px,calc(94dvh - 320px)))}.kbc-motif-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 12px;max-height:120px}.kbc-motif-dialog-foot{padding:12px}.kbc-motif-dialog-foot .kbc-button{width:100%;min-width:0}.kbc-catalog-choice>.kbc-button{width:100%;font-size:15px}}
@media(max-width:360px){.kbc-motif-gallery{grid-template-columns:1fr}.kbc-motif-gallery img{height:230px}}
.kbc-review-motif-image{display:block;width:160px;max-width:100%;height:120px;object-fit:contain;background:#fffdf9;border-radius:8px;margin:12px 0 0 29px}.kbc-summary-line>span:last-child{min-width:0;overflow-wrap:anywhere}.kbc-selected-motif p{overflow-wrap:anywhere}

.kbc-motif-dialog-head,.kbc-motif-dialog-foot{flex-shrink:0}.kbc-motif-preview{min-height:0}
