
.bbpcp-wrap{margin:12px 0 15px}
.bbpcp-open{width:100%;min-height:46px;border-radius:10px!important;background:#fafafa!important;border:1.5px solid #6f7b73!important;color:#2d3530!important;font-weight:700!important;font-size:20px!important;box-shadow:none!important;position:relative;padding:12px 16px!important}
.bbpcp-open:before{content:"";position:absolute;left:10px;bottom:7px;width:22px;height:4px;border-radius:3px;background:#8ac78f}
.bbpcp-status{margin-top:7px;color:#6f7780;font-size:12px}
.bbpcp-modal[hidden]{display:none!important}
.bbpcp-modal{position:fixed;inset:0;z-index:999999}
.bbpcp-backdrop{position:absolute;inset:0;background:rgba(12,18,26,.66)}
.bbpcp-dialog{position:relative;z-index:2;width:min(1050px,94vw);max-height:92vh;margin:4vh auto;background:#fff;border-radius:10px;overflow:auto;box-shadow:0 25px 90px rgba(0,0,0,.32)}
.bbpcp-header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:#eee;border-bottom:1px solid #ddd}
.bbpcp-header h3{margin:0;font-size:22px;color:#30343a}
.bbpcp-close{border:0;background:transparent;font-size:34px;line-height:1;cursor:pointer}
.bbpcp-content{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:26px;padding:24px}
.bbpcp-canvas-wrap{min-width:0}
.bbpcp-canvas{display:block;width:100%;height:auto;aspect-ratio:1/1;background:#fff;border:1px solid #e7e1d8;border-radius:8px;touch-action:none}
.bbpcp-tip{text-align:center;color:#727a83;font-size:12px;margin:8px 0 0}
.bbpcp-panel{display:flex;flex-direction:column;border:1px solid #ddd;border-radius:8px;overflow:hidden;min-height:520px}
.bbpcp-tabs{display:grid;grid-template-columns:1fr 1fr;background:#eee}
.bbpcp-tab{border:0;padding:15px 8px;background:#eee;font-weight:700;color:#474d54;cursor:pointer}
.bbpcp-tab.is-active{background:#ff3f79;color:#fff}
.bbpcp-pane{display:none;padding:28px 20px;flex:1}
.bbpcp-pane.is-active{display:block}
.bbpcp-upload{display:block;text-align:center;padding:12px 14px;background:#42a5f5;color:#fff;border-radius:5px;font-weight:700;cursor:pointer}
.bbpcp-note{text-align:center;color:#707780;font-size:13px;line-height:1.45}
.bbpcp-pane>label:not(.bbpcp-upload):not(.bbpcp-name-label){display:grid;grid-template-columns:55px 1fr;gap:10px;align-items:center;margin:24px 0;color:#666}
.bbpcp-pane input[type=range]{width:100%}
.bbpcp-name-label{display:block;font-weight:600;margin:0 0 12px;color:#454b52}
.bbpcp-name-row{display:grid;grid-template-columns:1fr auto;gap:10px}
.bbpcp-name-row input{min-height:44px}
.bbpcp-footer{display:grid;grid-template-columns:1fr 1fr;margin-top:auto}
.bbpcp-footer .button{min-height:52px;border-radius:0!important}
.bbpcp-cancel{background:#888!important;border-color:#888!important;color:#fff!important}
.bbpcp-continue{background:#2db51f!important;border-color:#2db51f!important;color:#fff!important}
body.bbpcp-opened{overflow:hidden}
.bb-photo-personalize-block{display:none!important}

@media (max-width:1024px){
  .bbpcp-dialog{width:min(940px,96vw);margin:2vh auto;max-height:96vh}
  .bbpcp-content{grid-template-columns:minmax(0,1fr) 330px;gap:18px;padding:18px}
  .bbpcp-panel{min-height:470px}
}
@media (max-width:767px){
  .bbpcp-dialog{width:96vw;margin:1.5vh auto;max-height:97vh}
  .bbpcp-header{padding:12px 14px}
  .bbpcp-header h3{font-size:17px;line-height:1.25}
  .bbpcp-content{grid-template-columns:1fr;gap:14px;padding:12px}
  .bbpcp-panel{min-height:360px}
  .bbpcp-pane{padding:18px 14px}
  .bbpcp-tab{padding:12px 6px}
  .bbpcp-pane>label:not(.bbpcp-upload):not(.bbpcp-name-label){margin:15px 0}
  .bbpcp-open{font-size:16px!important;min-height:42px}
}
@media (max-width:420px){
  .bbpcp-dialog{width:98vw;border-radius:6px}
  .bbpcp-content{padding:9px}
  .bbpcp-footer .button{min-height:48px}
}
