.gift_card_container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background-color: #f4f4f4;
    flex-direction: column;
}

.gift_card_inner {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1.8 / 1;
    background-image: url('/wp-content/plugins/notyourfault-custom-giftcards/res/giftcard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 40px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align elements to the bottom to match image layout */
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gift_card_body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.gift_card_info_left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gift_card_field {
    display: flex;
    flex-direction: column;
}

.field_label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;

    /* Disable text selection */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10+ and Edge */
    user-select: none;         /* Standard syntax */
}

.field_value {
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.sum_value {
    font-size: 22px;
    font-weight: 700;
}

.code_value,
.date_value {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.gift_card_info_right {
    text-align: left;
}

.sender_value {
    font-size: 18px;
    font-weight: 600;
}

/* Below Certificate Actions (Message & CTA) */
.gift_card_actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
    gap: 40px;
    padding-top: 80px;
}

.gift_card_message {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Intermediate Tablet Screen (Bootstrap md threshold: < 992px) */
@media (max-width: 991.98px) {
    .gift_card_inner {
        padding: 28px 36px;
        border-radius: 16px;
    }

    .gift_card_info_left {
        gap: 8px;
    }

    .field_label {
        font-size: 9.5px;
    }

    .field_value {
        font-size: 14px;
    }

    .sum_value {
        font-size: 17px;
    }

    .sender_value {
        font-size: 15px;
    }
}

/* Mobile Screen (Bootstrap sm threshold: < 576px) */
@media (max-width: 575.98px) {
    .gift_card_inner {
        /* Switch to vertical mobile card ratio (~9:16) */
        aspect-ratio: 9 / 16;

        /* Swap to vertical background image */
        background-image: url('/wp-content/plugins/notyourfault-custom-giftcards/res/giftcard_mobile.png');
        background-size: cover;
        background-position: center;

        /* Layout adjustments for vertical card */
        padding: 30px 24px;
        justify-content: flex-end;
    }

    .gift_card_body {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .gift_card_info_right {
        text-align: left;
    }

    /* Bumped up font sizes for mobile view */
    .field_label {
        font-size: 12px;
    }

    .field_value {
        font-size: 18px;
    }

    .sum_value {
        font-size: 24px;
    }

    .sender_value {
        font-size: 18px;
    }

    .gift_card_actions {
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}