.pcjgm-config{font-family:inherit;background:#fff;border:1px solid #ebebeb;border-radius:15px;padding:clamp(16px,3vw,30px);max-width:1050px;margin:22px auto;color:#151515;box-sizing:border-box}
.pcjgm-config *{box-sizing:border-box}.pcjgm-config h2{font-size:clamp(22px,2.4vw,27px);font-weight:750;line-height:1.18;margin:0 0 10px}.pcjgm-lead{font-size:13px;color:#555;margin:0 0 20px}.pcjgm-section{border:1px solid #e9e9e9;border-radius:15px;padding:15px;margin:0 0 15px;min-width:0}.pcjgm-section legend{float:none;width:auto;font-size:18px;font-weight:750;padding:0 3px;margin:0 0 12px}.pcjgm-section h3{font-size:18px;font-weight:750;margin:0 0 13px;display:flex;align-items:center;gap:9px}.pcjgm-section legend span,.pcjgm-section h3 span{display:inline-flex;border-radius:99px;background:#b50058;color:white;width:34px;height:34px;align-items:center;justify-content:center;font-size:19px;font-weight:700;margin-right:8px}
.pcjgm-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pcjgm-choice{cursor:pointer;margin:0;min-width:0}.pcjgm-choice input{position:absolute;opacity:0;pointer-events:none}.pcjgm-choice-body{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;border:2px solid #ececec;border-radius:12px;padding:8px 5px;min-height:140px;color:#141414;text-align:center}.pcjgm-choice-body img{width:100%;max-width:155px;height:95px;object-fit:contain}.pcjgm-choice-body strong{font-size:13px;line-height:1.25}.pcjgm-choice input:checked +.pcjgm-choice-body{border-color:#b50058}.pcjgm-choice input:focus-visible+.pcjgm-choice-body{outline:3px solid #b50058;outline-offset:2px}
.pcjgm-upload-inner{display:grid;grid-template-columns:2fr 1fr;gap:12px;align-items:stretch}.pcjgm-file-box{border:2px dashed #c9c9c9;border-radius:12px;padding:24px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;gap:8px;min-height:135px}.pcjgm-file-box strong{color:#b50058}.pcjgm-file-box small{font-size:12px;color:#575757}.pcjgm-upload input[type=file]{max-width:100%;width:100%;font-size:12px;margin:8px 0}.pcjgm-upload-thumb{border:1px solid #ddd;border-radius:12px;min-height:135px;display:grid;place-items:center;overflow:hidden;padding:8px}.pcjgm-upload-thumb img{max-width:100%;max-height:140px;object-fit:contain}.pcjgm-upload-thumb span{color:#777;text-align:center;font-size:12px}.pcjgm-error{color:#b00020;font-size:12px;margin:5px 0}.pcjgm-preview{min-height:280px;background:radial-gradient(ellipse at center,#eee4d4 0,#f9f6f0 47%,#fff 74%);border-radius:13px;display:grid;place-items:center;padding:20px;overflow:hidden}.pcjgm-pair{display:flex;align-items:center;justify-content:center;gap:clamp(8px,4vw,35px);width:100%}.pcjgm-gem{width:min(36%,200px);aspect-ratio:1/1.28;position:relative;display:flex;flex-direction:column;align-items:center;padding-top:27px}.pcjgm-tbar{position:absolute;top:0;width:83%;height:20px;border-radius:30px;background:linear-gradient(#767676 0%,#fff 28%,#b9b9b9 53%,#fafafa 73%,#7b7b7b 100%);border:1px solid #888;box-shadow:0 3px 4px #7775}.pcjgm-tbar i{position:absolute;left:calc(50% - 5px);top:-5px;width:10px;height:30px;border-radius:4px;background:linear-gradient(90deg,#777,#fff,#777);border:1px solid #888}.pcjgm-stem{height:20px;width:18px;background:linear-gradient(90deg,#777,#fff,#888);border:1px solid #777}.pcjgm-front{z-index:1;width:100%;aspect-ratio:1;display:grid;place-items:center;border:4px solid #999;background:linear-gradient(135deg,#fafafa,#d8d8d8 45%,#fff 75%,#bcbcbc);border-radius:50%;box-shadow:0 8px 14px #9998,inset 1px 2px 3px white;overflow:hidden}.pcjgm-front canvas{display:block;width:90%;height:90%}.pcjgm-preview[data-type=rectangular] .pcjgm-front{width:85%;border-radius:5px;aspect-ratio:0.74}.pcjgm-preview[data-type=contorno] .pcjgm-front{background:transparent;border:0;box-shadow:none;border-radius:0}.pcjgm-preview[data-type=contorno] .pcjgm-front canvas{width:100%;height:100%}.pcjgm-note{font-size:12px;color:#555;line-height:1.55;margin:12px 0 0}.pcjgm-instructions textarea{display:block;width:100%;margin-top:9px;resize:vertical;border:1px solid #ddd;border-radius:7px;padding:10px}.pcjgm-config~.quantity,.pcjgm-config~.single_add_to_cart_button{clear:both}
@media(max-width:600px){.pcjgm-config{padding:11px;margin:14px auto;border-radius:12px}.pcjgm-section{padding:10px;margin-bottom:10px}.pcjgm-section legend,.pcjgm-section h3{font-size:15px}.pcjgm-section legend span,.pcjgm-section h3 span{width:29px;height:29px;font-size:16px}.pcjgm-choices{gap:5px}.pcjgm-choice-body{min-height:114px;padding:5px 2px;border-radius:9px}.pcjgm-choice-body img{height:67px}.pcjgm-choice-body strong{font-size:11px}.pcjgm-upload-inner{grid-template-columns:1.5fr 1fr;gap:7px}.pcjgm-file-box,.pcjgm-upload-thumb{min-height:110px;padding:6px}.pcjgm-file-box small{font-size:10px}.pcjgm-preview{min-height:215px;padding:10px}.pcjgm-config h2{font-size:21px}}
/* 2.0: contour stems visibly JOIN silver artwork; fit both engravings without distortion. */
.pcjgm-preview[data-type="contorno"] .pcjgm-gem{padding-top:12px}
.pcjgm-preview[data-type="contorno"] .pcjgm-stem{height:45px;position:relative;z-index:0}
.pcjgm-preview[data-type="contorno"] .pcjgm-front{margin-top:-24px;position:relative;z-index:1;width:100%;aspect-ratio:1;overflow:visible}
.pcjgm-preview[data-type="contorno"] .pcjgm-front canvas{width:100%;height:100%;filter:drop-shadow(0px 3px 2px rgba(60,60,60,.25))}
.pcjgm-preview[data-type="rectangular"] .pcjgm-front canvas{width:96%;height:96%;object-fit:contain}
.pcjgm-preview[data-type="circular"] .pcjgm-front canvas{width:94%;height:94%}
/* Cart button must follow the entire configuration block, never sit in the side column. */
body.pcjgm-product-v2 form.pcjgm-cart-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;width:100%!important;max-width:none!important}
body.pcjgm-product-v2 form.pcjgm-cart-form .pcjgm-config{order:0;width:100%!important;max-width:1100px!important;align-self:center;margin:20px auto!important}
body.pcjgm-product-v2 form.pcjgm-cart-form .quantity{order:1!important;float:none!important;margin:0!important}
body.pcjgm-product-v2 form.pcjgm-cart-form .single_add_to_cart_button{order:2!important;float:none!important;clear:both!important;width:100%!important;margin:0!important}
body.pcjgm-product-v2 .pcjgm-stacked-parent{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
body.pcjgm-product-v2 .pcjgm-former-gallery-column{display:none!important}
body.pcjgm-product-v2 .pcjgm-main-column{width:100%!important;max-width:100%!important;flex:0 0 100%!important;position:static!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important}
body.pcjgm-product-v2 .pcjgm-main-column>.elementor-widget-woocommerce-product-images{width:100%!important;max-width:1100px!important;align-self:center!important;margin:30px auto!important}
body.pcjgm-product-v2 .pcjgm-main-column>.elementor-widget-woocommerce-product-images .woocommerce-product-gallery{width:100%!important;max-width:100%!important;float:none!important}
@media(max-width:600px){body.pcjgm-product-v2 form.pcjgm-cart-form .pcjgm-config{margin:12px auto!important}}

/* v2.1: mobile-only layout corrections (desktop remains unchanged). */
@media (max-width:600px) {
  /* Keep the real input for uploads/validation, but use the styled label as the only visible picker. */
  .pcjgm-config .pcjgm-upload-inner {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
  }
  .pcjgm-config #pcjgm_file {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  .pcjgm-config .pcjgm-file-box {
    width:100%!important;
    min-height:105px!important;
    padding:14px 10px!important;
    cursor:pointer;
  }
  .pcjgm-config .pcjgm-upload-thumb {
    min-height:105px!important;
    width:100%!important;
    max-width:100%!important;
    padding:10px!important;
  }
  .pcjgm-config .pcjgm-upload-thumb img {
    max-height:180px!important;
    max-width:100%!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
  }
  .pcjgm-config .pcjgm-file-box strong {font-size:15px;line-height:1.3}
  .pcjgm-config .pcjgm-file-box small {font-size:11px;line-height:1.45}
  /* 94% of the face shows the 450px canvas and its *proportionally fitted* artwork. */
  .pcjgm-config .pcjgm-preview[data-type="circular"] .pcjgm-front canvas {
    width:96%!important;height:96%!important;
  }
  .pcjgm-config .pcjgm-preview[data-type="rectangular"] .pcjgm-front canvas {
    width:97%!important;height:97%!important;
  }
  /* Make silhouette the main focus while preserving two cufflinks and their stems. */
  .pcjgm-config .pcjgm-preview[data-type="contorno"] .pcjgm-pair {gap:8px!important}
  .pcjgm-config .pcjgm-preview[data-type="contorno"] .pcjgm-gem {
    width:45%!important;max-width:none!important;padding-top:12px!important;
  }
  .pcjgm-config .pcjgm-preview[data-type="contorno"] .pcjgm-front {
    width:115%!important;max-width:none!important;margin-top:-26px!important;
  }
  .pcjgm-config .pcjgm-preview[data-type="contorno"] .pcjgm-front canvas {
    width:100%!important;height:100%!important;
  }
  .pcjgm-config .pcjgm-preview {overflow:hidden}
}
