.swp_container {
    /* background: #eefbf3; */
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin: 20px auto;
    height: 100%;
}

.swp_container p {
    font-size: 14px !important;
}

.swp_container .rmp-widgets-container {
    padding: 0;
}

.swp_container .rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
    margin: 0;
}

.right-section {
    flex: 1.5;
    text-align: center;
}

.right-section img {
    width: 100%;
    height: auto;
    object-fit: fill;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

/* Base button styles */

.download-btn,
.download-premium-btn,
.right-section .font-preview {
    margin-bottom: 5px;
    display: block;
    padding: 10px 15px;
    font-family: Sahel-VF;
    color: #fff !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.swp-coupon-box {
    position: relative;
    margin: 20px 0 10px 0;
    padding: 10px 15px;
    border: 1px solid #EEBFB8;
    border-radius: 5px;
    background-color: #ffe6e2;
    font-family: Sahel-VF, sans-serif;
    display: block;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    color: #7c1100;
}

.swp-coupon-box label {
    font-weight: 700;
}

.swp-coupon-box label:before {
    content: "\f02C";
    font-family: tiefonticon;
    margin-left: 5px;
}

.swp-coupon-box label .coupon-icon {
    font-size: 18px;
    margin-left: 8px;
    color: #e13138;
}

.swp-coupon-box input[type="text"] {
    width: 100px;
    text-align: center;
    border: unset;
    font-size: 18px;
    font-weight: bold;
    color: #7c1100;
    cursor: pointer;
    font-family: monospace;
    caret-color: transparent;
}

.swp-coupon-box input[type="text"]:hover,
.swp-coupon-box input[type="text"]:focus {
    background-color: #EEBFB8;
}

.swp-copy-message {
    display: none;
}

.swp-copy-message.show {
    display: inline;
}

/* Flex container specifically for Download and Preview buttons */

.swp-flex-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Specific adjustments for buttons inside the flex container */

.swp-flex-row .download-btn,
.swp-flex-row .font-preview {
    flex: 1;
    margin-bottom: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn {
    background-color: #309255;
    text-align: center;
}

.download-premium-btn {
    background: #e13138;
}

.right-section .font-preview {
    background-color: #2f2f2f;
}

.download-btn:before {
    content: "\f019";
    font-weight: 400;
    font-family: tiefonticon;
    padding: 0 10px;
}

.download-btn:hover {
    background-color: #0e602d;
}

.download-premium-btn:before {
    content: "\F290";
    font-weight: 400;
    font-family: tiefonticon;
    padding: 0 10px;
}

.download-premium-btn:hover {
    background-color: #c71e24;
}

.right-section .font-preview:before {
    content: "\f06E";
    font-weight: 400;
    font-family: tiefonticon;
    padding: 0 10px;
}

.right-section .font-preview:hover {
    background-color: #0e602d;
}

/* Left Section (Table) */

.left-section {
    flex: 2;
}

.swp_container .table-is-responsive {
    border-radius: 5px;
    clear: both;
    overflow-x: auto;
    margin-bottom: -20px;
}

.left-section table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.left-section table th,
.left-section table td {
    padding: 9px;
    font-size: 14px;
}

.left-section table tbody td:first-child {
    font-family: Sahel-VF;
    font-weight: 600;
}

.left-section table tbody td:last-child {
    font-family: Vazirmatn !important;
}

.left-section table tbody tr:last-child td {
    border-bottom: none;
}

/* Sticky Mode */

.swp-sticky-mode {
    position: fixed;
    bottom: 0 !important;
    z-index: 99999999;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 780px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    margin: 0 !important;
    line-height: 2;
    border-radius: 15px 15px 0 0;
    display: block;
}

@keyframes swpFadeUp {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

/* Mobile Version */

@media (max-width: 768px) {
    .swp_container {
        flex-direction: column;
    }
    .right-section,
    .left-section {
        flex: none;
        width: 100%;
    }
    .left-section table {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}