/* Kræss Cross-Shop Gift Card Customizer (1:1 UX with kraess.dk, Work OS M42 Phase 2) */
body.kgc-gift-card-product .summary,
body.kgc-gift-card-product div.summary.entry-summary {
    display: block !important;
}

body.kgc-gift-card-product .summary > p.price,
body.kgc-gift-card-product .summary .buyvariationlink,
body.kgc-gift-card-product .summary p.stock,
body.kgc-gift-card-product .summary .size_text_product_page,
body.kgc-gift-card-product .summary .frame_text_product_page,
body.kgc-gift-card-product .summary .wcpay-express-checkout-wrapper,
body.kgc-gift-card-product .summary #ppc-button-ppcp-gateway,
body.kgc-gift-card-product .summary .ppcp-button-wrapper,
body.kgc-gift-card-product .summary .vipps-express-checkout {
    display: none !important;
}

body.kgc-gift-card-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 12px;
}

body.kgc-gift-card-product .kgc-customizer {
    flex: 0 0 100%;
    width: 100%;
}

body.kgc-gift-card-product form.cart .single_add_to_cart_button {
    background-color: #111 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 13px 26px;
    font-weight: 600;
    letter-spacing: 0.03em;
    min-height: 46px;
    cursor: pointer;
}

body.kgc-gift-card-product form.cart .quantity,
body.kgc-gift-card-product form.cart input.qty {
    display: none !important;
}

.kgc-customizer {
    margin: 14px 0 20px;
    padding: 0;
    width: 100%;
    max-width: 540px;
    font-family: inherit;
    color: #1f1f1f;
}

.kgc-live-amount {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
    margin: 0 0 18px;
    min-height: 1.4em;
}

.kgc-section {
    margin-bottom: 22px;
}

.kgc-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.kgc-sub-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    margin: 18px 0 8px;
}

.kgc-hint {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 12px;
}

.kgc-designs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.kgc-design-btn {
    appearance: none;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.kgc-design-btn:hover {
    border-color: #9ca3af;
}

.kgc-design-btn.is-selected {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.kgc-design-btn img {
    display: block;
    width: 100%;
    aspect-ratio: 990 / 1400;
    object-fit: cover;
    border-radius: 5px;
}

.kgc-amount-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 0 14px;
    transition: border-color 0.15s ease;
}

.kgc-amount-wrap:focus-within {
    border-color: #111;
}
.kgc-currency-sym {
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    user-select: none;
}

.kgc-currency-sym.is-left {
    margin-right: 8px;
}

.kgc-currency-sym.is-right {
    margin-left: 8px;
}

.kgc-amount-input {
    flex: 1 1 auto;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    font-size: 1.05rem !important;
    font-weight: 500;
    color: #111;
    outline: none !important;
    min-width: 0;
}

.kgc-range-note {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #6b7280;
}

.kgc-field {
    margin-bottom: 14px;
}

.kgc-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 5px;
}

.kgc-field input[type="text"],
.kgc-field input[type="email"],
.kgc-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fff;
    color: #111;
    transition: border-color 0.15s ease;
}

.kgc-field input:focus,
.kgc-field textarea:focus {
    border-color: #111;
    outline: none;
}

.kgc-error-msg {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b91c1c;
    font-weight: 500;
}

.kgc-error-msg[hidden] {
    display: none !important;
}

.kgc-switch-card {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 0.88rem;
}

.kgc-switch-card p {
    margin: 0 0 4px;
    color: #374151;
}

.kgc-switch-card a {
    font-weight: 600;
    color: #111;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .kgc-designs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }
}
