.mks-handmade-note {
    margin-top: 16px;
}

.mks-handmade-note-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(243, 244, 255, 0.95), rgba(233, 213, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.12);
    padding: 18px 20px;
}

.mks-handmade-note-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #c4b5fd, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.25);
    flex-shrink: 0;
}

.mks-handmade-note-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mks-handmade-note-label {
    font-weight: 700 !important;
    color: #4c1d95;
    font-size: 15px;
    margin: 0;
}

.mks-handmade-note-textarea {
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: #fff;
    color: #312e81;
    font-size: 14px;
    padding: 12px 14px;
    box-shadow: inset 0 2px 6px rgba(124, 58, 237, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mks-handmade-note-textarea:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.mks-handmade-note-helper {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

@media only screen and (min-width: 350px) and (max-width: 768px) {
    .spm-cip > div:first-child {
        margin-top: 20px;
        order: unset !important;
    }

    .mks-custom-attributes {
        padding: 0 10px;
        order: unset !important;
    }

    .spm-cip > .variations_form,
    .spm-cip > .mks-variable-cart-block {
        order: unset !important;
    }
}

@media (max-width: 576px) {
    .mks-handmade-note-label {
        text-align: center;
    }

    .mks-handmade-note-card {
        flex-direction: column;
        align-items: stretch;
    }

    .mks-handmade-note-icon {
        align-self: center;
    }
}
