/* Main Coupon Container */
.scc-coupon {
    border: 2px dashed #ffa500;
    border-radius: 10px;
    background-color: #fff5e1;
    padding: 20px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    margin: 20px auto;
}

/* Discount Text */
.scc-coupon p strong {
    font-size: 1.5em;
    color: #ff5722;
}

/* Description Text */
.scc-coupon p {
    color: #333;
    font-size: 1em;
    margin: 10px 0;
}

/* Coupon Code */
.scc-code {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff5722;
    margin: 10px 0;
    display: none; /* Hidden until button click */
    margin-left: 60px;
    margin-right: 60px;
}

/* Reveal Button */
.scc-button {
    background-color: #ff5722;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.scc-button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}


/* Style for the Copy button */
.copy-shortcode-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
    position: relative; /* Ensure the button stays in place */
}

.copy-shortcode-button:hover {
    background-color: #005177;
}

/* Fly animation */
@keyframes fly {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.fly-animation {
    animation: fly 0.5s ease-out forwards;
    position: absolute; /* Take the button out of the document flow */
    top: 0;
    left: 0;
    visibility: hidden; /* Hide the button during animation */
}

/* Set a fixed width for the shortcode column */
table.widefat th:nth-child(4),
table.widefat td:nth-child(4) {
    width: 300px; /* Adjust this value as needed */
    min-width: 300px; /* Ensure the column doesn't shrink */
    max-width: 300px; /* Ensure the column doesn't expand */
    white-space: nowrap; /* Prevent text wrapping */
}