.sgc-form {
    display: grid;
    gap: 18px;
    margin: 24px 0 32px;
    padding: 24px;
    background: #FFF7E6;
    border-radius: 10px;
    border: 1px solid rgba(13, 107, 106, 0.1);
}

.sgc-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #0D6B6A;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.sgc-field .sgc-optional {
    font-weight: 400;
    color: #888;
    font-size: 13px;
}

.sgc-field input[type="text"],
.sgc-field input[type="email"],
.sgc-field input[type="number"],
.sgc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d0c8;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.sgc-field input:focus,
.sgc-field textarea:focus {
    outline: none;
    border-color: #0D6B6A;
    box-shadow: 0 0 0 3px rgba(13, 107, 106, 0.12);
}

.sgc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.sgc-preset {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d4d0c8;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.sgc-preset:hover {
    border-color: #0D6B6A;
    color: #0D6B6A;
}

.sgc-preset.is-active {
    background: #0D6B6A;
    color: #fff;
    border-color: #0D6B6A;
}

.sgc-hint {
    font-size: 12px;
    color: #777;
    margin: 6px 0 0;
}

.sgc-amount-field input[type="number"] {
    font-size: 20px;
    font-weight: 600;
    text-align: left;
}

/* Submit button + feedback */
.sgc-form .sgc-submit-row {
    margin-top: 8px !important;
}

/* Hard-override Elementor Pro / theme button styling so our brand teal wins */
button.sgc-add-to-basket,
.sgc-form button.sgc-add-to-basket {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: #0D6B6A !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    min-width: 200px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
}

button.sgc-add-to-basket:hover:not(:disabled),
.sgc-form button.sgc-add-to-basket:hover:not(:disabled) {
    background: #0a5756 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(13, 107, 106, 0.25) !important;
}

button.sgc-add-to-basket:disabled {
    opacity: 0.7 !important;
    cursor: wait !important;
}

.sgc-form .sgc-submit-feedback {
    margin: 10px 0 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-height: 1.4em !important;
}

.sgc-form .sgc-submit-feedback.is-success {
    color: #065f46 !important;
}

.sgc-form .sgc-submit-feedback.is-error {
    color: #991b1b !important;
}

/* ─── Hide the sabeny_sp_actions widget on gift card single product pages.
       It renders .sbn-add.sbn-sp__add + qty stepper + wrapper — our form
       handles add-to-cart with the custom gift card fields instead. ─── */
body.sgc-is-gift-card-product .sbn-sp__add,
body.sgc-is-gift-card-product .sbn-sp__actions,
body.sgc-is-gift-card-product .sbn-sp__qty,
body.sgc-is-gift-card-product .sbn-sp__add-wrap,
body.sgc-is-gift-card-product .sbn-sp__cta,
body.sgc-is-gift-card-product .sbn-sp__buy,
body.sgc-is-gift-card-product .sbn-actions,
body.sgc-is-gift-card-product .sbn-qty,
body.sgc-is-gift-card-product .sbn-quick {
    display: none !important;
}

/* Also hide the standalone .sbn-add on the main product (keep it on related
   products below — scope to being inside the main product area). */
body.sgc-is-gift-card-product .elementor-widget-woocommerce-product-images ~ * .sbn-add,
body.sgc-is-gift-card-product [data-elementor-type="single-product"] .sbn-add:not(.sbn-sp__related .sbn-add) {
    display: none !important;
}
/* Simpler blanket rule — hide any .sbn-add on the gift card product that
   refers to the gift card product itself (data-product-id attribute set). */
body.sgc-is-gift-card-product button.sbn-add.sbn-sp__add {
    display: none !important;
}
