.tf-gifted-cart-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #C8102E;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    box-sizing: border-box;
}

.tf-gifted-cart-panel .tf-gifted-cart-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 1.35em;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.tf-gifted-cart-panel .tf-gifted-cart-heading svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.tf-gifted-cart-panel .tf-gifted-cart-description {
    color: #4b5563;
    margin: 0 0 16px;
    font-size: 0.95em;
    line-height: 1.4;
}

.tf-gifted-cart-panel .tf-gifted-cart-benefit {
    background: #f9fafb;
    border-left: 3px solid #C8102E;
    color: #374151;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0 0 16px;
    font-size: 0.9em;
    line-height: 1.4;
}

.tf-gifted-cart-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.tf-gifted-cart-form .form-row {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.tf-gifted-cart-form .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #111827;
    font-size: 0.95em;
}

.tf-gifted-cart-form input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1em;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
}

.tf-gifted-cart-form input:focus {
    border-color: #C8102E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.tf-gifted-cart-form button {
    background-color: #C8102E;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

.tf-gifted-cart-form button:hover,
.tf-gifted-cart-form button:focus {
    background-color: #a30d24;
}

.tf-gifted-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
}

.tf-gifted-applied svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.tf-gifted-applied .tf-gifted-success {
    color: #16a34a;
    font-weight: 700;
    font-size: 1em;
}

.tf-gifted-applied .tf-gifted-code {
    font-size: 1.1em;
    font-weight: 700;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.5px;
}

.tf-gifted-applied .tf-gifted-remove {
    color: #6b7280;
    text-decoration: underline;
    font-size: 0.9em;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.tf-gifted-applied .tf-gifted-remove:hover,
.tf-gifted-applied .tf-gifted-remove:focus {
    color: #C8102E;
}

@media (max-width: 600px) {
    .tf-gifted-cart-panel {
        padding: 12px;
        margin: 12px 0;
    }

    .tf-gifted-cart-panel .tf-gifted-cart-heading {
        font-size: 1.1em;
    }

    .tf-gifted-cart-panel .tf-gifted-cart-heading svg {
        width: 20px;
        height: 20px;
    }

    .tf-gifted-cart-panel .tf-gifted-cart-description,
    .tf-gifted-cart-panel .tf-gifted-cart-benefit {
        font-size: 0.9em;
    }

    .tf-gifted-cart-form,
    .tf-gifted-applied {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-gifted-cart-form .form-row,
    .tf-gifted-cart-form button,
    .tf-gifted-applied .tf-gifted-remove {
        width: 100%;
        margin-left: 0;
    }

    .tf-gifted-cart-form button {
        padding: 12px 22px;
    }

    .tf-gifted-applied .tf-gifted-remove {
        margin-top: 4px;
    }
}
