/* De Golfbal Designer - styling (mobiel-first) */

.dgb-designer {
    margin: 0 0 28px;
    padding: 18px;
    background: #f8f8f4;
    border: 1px solid #e3e2d9;
    border-radius: 14px;
}

.dgb-head { margin-bottom: 14px; }
.dgb-title {
    display: block;
    font-size: 1.15em;
    color: #1d1a0c;
}
.dgb-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.88em;
    color: #6e6d68;
}

/* Zijde-tabs */
.dgb-sides {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
/* !important: het thema heeft agressieve button-styling die anders wint */
.dgb-designer .dgb-side-tab {
    flex: 1;
    padding: 10px 14px !important;
    border: 1px solid #cfcec4 !important;
    background: #fff !important;
    border-radius: 10px !important;
    font-weight: 600;
    color: #6e6d68 !important;
    cursor: pointer;
    min-height: 44px;
}
.dgb-designer .dgb-side-tab.is-active {
    background: #0b772e !important;
    border-color: #0b772e !important;
    color: #fff !important;
}

/* Canvas */
.dgb-stage { position: relative; text-align: center; }
#dgb-canvas {
    width: 100%;
    max-width: 420px;
    height: auto;
    touch-action: none;
    cursor: grab;
    border-radius: 12px;
}
#dgb-canvas:active { cursor: grabbing; }
.dgb-stage-hint {
    font-size: 0.8em;
    color: #9a9694;
    margin: 4px 0 10px;
}

/* Panelen */
.dgb-block { margin-bottom: 16px; }
.dgb-label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    color: #1d1a0c;
    margin-bottom: 6px;
}

/* Upload */
.dgb-upload-block input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.dgb-upload-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px dashed #9aa65b;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 56px;
}
.dgb-upload-btn:hover, .dgb-upload-btn:focus {
    border-color: #0b772e;
    background: #f2f7f0;
    outline: none;
}
.dgb-upload-icon {
    font-size: 1.6em;
    color: #0b772e;
    line-height: 1;
}
.dgb-upload-text small { color: #6e6d68; }

/* Tekstopties */
.dgb-text-block input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfcec4;
    border-radius: 10px;
    font-size: 1em;
    min-height: 48px;
}
.dgb-text-opts {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.dgb-opt { flex: 1; min-width: 140px; }
.dgb-opt select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfcec4;
    border-radius: 10px;
    min-height: 44px;
}
.dgb-colors { display: flex; gap: 8px; }
.dgb-color {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfcec4;
    cursor: pointer;
    padding: 0;
}
.dgb-color.is-active { box-shadow: 0 0 0 3px #0b772e; }

/* Gereedschap */
.dgb-tools input[type="range"] {
    width: 100%;
    margin: 2px 0 12px;
    accent-color: #0b772e;
    min-height: 28px;
}
.dgb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dgb-designer .dgb-btn {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px !important;
    background: #1d1a0c !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 600;
    cursor: pointer;
}
.dgb-designer .dgb-btn:hover { background: #0b772e !important; color: #fff !important; }
.dgb-designer .dgb-btn-ghost {
    background: transparent !important;
    color: #6e6d68 !important;
    border: 1px solid #cfcec4 !important;
}
.dgb-designer .dgb-btn-ghost:hover { background: #fff !important; color: #b01e23 !important; border-color: #b01e23 !important; }

/* Opmerking */
.dgb-note-block textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfcec4;
    border-radius: 10px;
    resize: vertical;
}

/* Totaal */
.dgb-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e3e2d9;
    border-radius: 10px;
    font-size: 1.05em;
}
.dgb-total strong { color: #0b772e; font-size: 1.25em; }

/* Meldingen */
.dgb-msg {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef6ee;
    color: #0b772e;
    font-size: 0.9em;
}
.dgb-msg.is-error {
    background: #fbeaea;
    color: #b01e23;
}

/* Winkelmand-preview */
.dgb-cart-thumb { display: block; }

/* Desktop */
@media (min-width: 768px) {
    .dgb-designer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0 24px;
        padding: 24px;
    }
    .dgb-head, .dgb-sides { grid-column: 1 / -1; }
    .dgb-stage { grid-column: 1; }
    .dgb-panel { grid-column: 2; }
    .dgb-designer:not(:has(.dgb-sides[hidden])) .dgb-sides { grid-column: 1 / -1; }
}
