@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Courgette&family=Lobster&family=Poppins:wght@600;700&display=swap');

#progolf-three-customizer {
    margin:20px 0;
    width:100%;
}

#progolf-three-customizer h3 {
    margin-bottom:8px;
    font-size:30px;
    font-weight:800;
    letter-spacing:-0.02em;
    color:#003f4e;
}

.progolf-three-help {
    margin:0 0 18px;
    font-size:14px;
    color:#4b5563;
}

.progolf-three-ball-block {
    margin:0 0 22px;
    padding:18px 20px;
    border:1px solid #d8dde1;
    border-radius:10px;
    background:#f4f6f7;
}

.progolf-three-ball-block h4 {
    margin:0 0 14px;
    font-size:17px;
    font-weight:700;
    color:#111827;
}

.progolf-three-ball-editor {
    display:flex;
    gap:22px;
    align-items:center;
}

.progolf-three-mini-preview {
    width:180px;
    height:180px;
    position:relative;
    flex:0 0 180px;
    border-radius:50%;
    overflow:hidden;
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.progolf-three-mini-preview img {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.progolf-three-mini-svg {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    overflow:visible;
}

.progolf-three-mini-svg text {
    font-family:'Bree Serif', serif;
    font-weight:700;
    text-anchor:middle;
    dominant-baseline:middle;
    text-rendering:geometricPrecision;
    -webkit-font-smoothing:antialiased;
}

.progolf-three-fields {
    flex:1;
    min-width:0;
}

.progolf-three-field-wrap {
    margin-bottom:12px;
    width:100%;
}

.progolf-three-field-wrap input[type="text"] {
    width:100%;
    max-width:100%;
    padding:14px 18px;
    border:1px solid #d2d7dc;
    border-radius:8px;
    font-size:16px;
    line-height:1.2;
    box-sizing:border-box;
    background:#fff;
}

.progolf-three-counter {
    display:inline-block;
    margin-top:5px;
    margin-left:10px;
    font-size:13px;
    color:#374151;
}

.progolf-three-color-section {
    margin-top: 18px;
}

.progolf-three-color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 6px;
}

.progolf-three-color-option {
    display:flex;
    flex-direction:column;
    align-items:center;
    cursor:pointer;
    font-size:14px;
    color:#333;
    line-height:1.2;
    position:relative;
}

.progolf-three-color-option input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.progolf-three-color-swatch {
    width:30px;
    height:30px;
    border-radius:6px;
    border:2px solid transparent;
    box-sizing:border-box;
    margin-bottom:6px;
    transition:transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.progolf-three-color-option input:checked + .progolf-three-color-swatch {
    border-color:#111;
    box-shadow:0 0 0 2px #fff inset;
    transform:scale(1.05);
}

@media (max-width:768px) {
    .progolf-three-ball-editor {
        display:block;
    }

    .progolf-three-mini-preview {
        width:220px;
        height:220px;
        max-width:100%;
        margin:0 auto 18px;
        flex:none;
    }

    .progolf-three-fields {
        width:100%;
    }

    .progolf-three-field-wrap input[type="text"] {
        font-size:16px;
    }

}

.pgsharp-print {
    --pgsharp-ink: #003f4e;
    --pgsharp-line: #d7e2e4;
    margin: 24px 0 34px;
    color: #172a30;
}

.pgsharp-intro,
.pgsharp-benefits {
    background: #f3f7f7;
    border: 1px solid var(--pgsharp-line);
    padding: 21px clamp(16px, 3vw, 24px);
}

.pgsharp-intro {
    border-left: 4px solid var(--pgsharp-ink);
    border-radius: 12px 12px 0 0;
}

.pgsharp-intro h2 {
    color: var(--pgsharp-ink);
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.2;
    margin: 0 0 9px;
}

.pgsharp-print p,
.pgsharp-print dd {
    margin: 0;
    line-height: 1.5;
}

.pgsharp-benefits {
    margin: 0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.pgsharp-benefits div + div {
    border-top: 1px solid var(--pgsharp-line);
    margin-top: 15px;
    padding-top: 15px;
}

.pgsharp-benefits dt {
    color: var(--pgsharp-ink);
    font-weight: 700;
}

.pgsharp-wear {
    clear: both;
    margin: 18px 0 24px;
    color: #47545a;
    font-size: 14px;
    line-height: 1.6;
}

.pgsharp-wear strong {
    display: block;
    margin-bottom: 4px;
    color: #26373d;
}

.pgsharp-wear p {
    margin: 0;
}

.progolf-three-ball-block {
    background: #fbfcfc;
    border-color: #b7cdd0;
    container-type: inline-size;
}

.progolf-three-ball-block h4:first-child {
    color: #003f4e;
}


.progolf-three-color-option input:focus-visible + .progolf-three-color-swatch,
.progolf-three-font-option input:focus-visible + span {
    outline: 2px solid #003f4e;
    outline-offset: 3px;
}

@container (max-width: 430px) {
    .progolf-three-ball-editor {
        display: block;
    }

    .progolf-three-mini-preview {
        margin: 0 auto 18px;
    }
}

.progolf-three-counter-short {
    color: #23603c;
}

.progolf-three-counter-long {
    color: #9a4a19;
}

.progolf-three-font-picker,
.progolf-three-color-section {
    border: 0;
    min-inline-size: 0;
    margin-inline: 0;
    padding: 0;
}

#progolf-three-customizer .progolf-three-font-picker legend,
#progolf-three-customizer .progolf-three-color-section legend {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 8px;
    border: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #003f4e;
}

.progolf-three-font-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.progolf-three-font-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.progolf-three-font-option input {
    position: absolute;
    opacity: 0;
}

.progolf-three-font-option span {
    display: grid;
    place-items: center;
    min-height: 44px;
    height: 100%;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #d8dde1;
    border-radius: 24px;
    background: #fff;
    color: #172a30;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
}

.progolf-three-font-option input:checked + span {
    border-color: #23603c;
    background: #eef6f0;
    box-shadow: inset 0 -3px #23603c;
    color: #174e34;
}

.progolf-three-font-option:nth-child(2) span,
.progolf-three-font-option:nth-child(4) span {
    font-weight: 700;
}
