/* RG Customization Options 2.0 — Frontend */

.rgco-frontend {
    margin: 18px 0 12px;
    width: 100%;
    flex: 0 0 100%;
    order: -1; /* ensure it stays above quantity/buttons in flex layouts */
}

/* Each field row */
.rgco-f-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.rgco-f-row > label {
    flex: 0 0 140px;
    font-size: 14px;
    font-weight: 600;
    padding-top: 10px;
    color: #333;
    line-height: 1.4;
}
.rgco-req { color: #c00; margin-left: 2px; }

/* Inputs — Djewno style */
.rgco-f-row select.rgco-input,
.rgco-f-row input[type="text"].rgco-input {
    flex: 1 1 0%;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.rgco-f-row select.rgco-input:focus,
.rgco-f-row input[type="text"].rgco-input:focus {
    border-color: #b08d57;
}
.rgco-f-row input::placeholder { color: #aaa; }

/* Radio group — stacked */
.rgco-radio-group,
.rgco-checkbox-group {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
}
.rgco-radio-label,
.rgco-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.rgco-radio-label:hover,
.rgco-checkbox-label:hover {
    border-color: #b08d57;
    background: #fdf8f0;
}
.rgco-radio-label input:checked + span,
.rgco-checkbox-label input:checked + span {
    font-weight: 600;
}
.rgco-radio-label input,
.rgco-checkbox-label input {
    accent-color: #b08d57;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Price preview */
.rgco-price-preview {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fdf8f0;
    border: 1px solid #e8d5b8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}
.rgco-price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.rgco-price-line:last-child { margin-bottom: 0; }
.rgco-price-label { color: #666; }
.rgco-price-total { font-weight: 700; font-size: 15px; border-top: 1px solid #e8d5b8; padding-top: 6px; margin-top: 4px; }

/* ==============================================
   Mini-cart / Cart drawer — custom field info
   ============================================== */

.widget_shopping_cart dl.variation,
.cart-drawer dl.variation,
.side-cart dl.variation,
.header-cart-content dl.variation,
.mini_cart_item dl.variation {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 6px 0 0 0;
    padding: 0;
}

.widget_shopping_cart dl.variation dt,
.cart-drawer dl.variation dt,
.mini_cart_item dl.variation dt {
    float: none;
    display: inline;
    font-weight: 400;
    font-size: 11px;
    color: #999;
    margin: 0;
    padding: 0;
}

.widget_shopping_cart dl.variation dd,
.cart-drawer dl.variation dd,
.mini_cart_item dl.variation dd {
    display: inline;
    font-weight: 400;
    font-size: 11px;
    color: #666;
    margin: 0 0 2px 0;
    padding: 0;
}

.widget_shopping_cart dl.variation dd p,
.cart-drawer dl.variation dd p,
.mini_cart_item dl.variation dd p {
    margin: 0;
    display: inline;
    font-size: 11px;
    font-weight: 400;
}

.widget_shopping_cart dl.variation dd,
.mini_cart_item dl.variation dd {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Full cart page — same subtle treatment */
.woocommerce-cart-form dl.variation dt {
    font-weight: 400;
    font-size: 12px;
    color: #999;
}
.woocommerce-cart-form dl.variation dd {
    font-weight: 400;
    font-size: 12px;
    color: #666;
}
.woocommerce-cart-form dl.variation dd p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
}

/* Mobile */
@media (max-width: 600px) {
    .rgco-f-row {
        flex-direction: column;
        gap: 4px;
    }
    .rgco-f-row > label {
        flex: none;
        width: 100%;
        padding-top: 0;
    }
    .rgco-f-row select.rgco-input,
    .rgco-f-row input[type="text"].rgco-input {
        flex: none !important;
        width: 100% !important;
    }
    .rgco-radio-group,
    .rgco-checkbox-group {
        flex: none !important;
        width: 100% !important;
    }
}
