/* Style for Admin Pages */
.taxonomy-wpgv_voucher_category .term-parent-wrap {
    display: none;
}

.voucher-page .check-column {
    vertical-align: middle;
}

.voucher-page .column-id {
    width: 140px;
    text-align: center;
    vertical-align: middle;
}

.voucher-page .column-couponcode {
    width: 140px;
    text-align: center;
    vertical-align: middle;
    color: #000;
    font-size: 11px;
}

.voucher-page .column-couponcode strong {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.voucher-page .column-action,
.voucher-page .column-action {
    width: 90px;
    text-align: center;
    vertical-align: middle;
}

.voucher-page .column-see_order {
    width: 120px;
    text-align: center;
    vertical-align: middle;
}

.voucher-page .column-voucheradd_time {
    width: 100px;
    text-align: center;
    vertical-align: middle;
}

.voucher-page .column-receipt {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

.receipt.column-receipt img {
    width: 40px;
}

.wp-list-table .voucher_info.column-voucher_info th,
.wp-list-table .voucher_info.column-voucher_info td {
    padding: 0;
    font-size: 13px;
}

.wp-list-table .buyer_info.column-buyer_info th,
.wp-list-table .buyer_info.column-buyer_info td {
    padding: 0;
    font-size: 13px;
}

.voucher-page .wp-list-table #the-list th {
    padding-right: 10px;
}

.voucher-page .row-actions a {
    display: inline-block;
    padding: 5px 10px;
}

.voucher-page .column-id .row-actions a {
    padding: 0;
}

.voucher-page .row-actions .used a {
    background-color: #F44336;
    color: #fff;
    margin: 5px 0
}

.vused {
    background-color: #ddd;
    padding: 5px 10px;
    display: inline-block;
    color: #fff;
    cursor: not-allowed;
    margin: 5px 0
}

.vunused {
    display: inline-block;
    padding: 5px 10px;
    background-color: #F44336;
    color: #fff;
    margin: 5px 0
}

.voucher-page .row-actions .paid a {
    background: #00BCD4;
    color: #fff;
    margin: 5px 0
}

.voucher-page .vpaid {
    background-color: green;
    padding: 5px 10px;
    display: inline-block;
    color: #fff;
    margin: 5px 0
}

/*View Voucher Page*/
#voucher-details h2 {
    margin-bottom: 10px;
}

#voucher-details .widefat thead tr th {
    font-size: 13px;
    font-weight: bold;
}

#voucher-details .main td,
#voucher-details .main th {
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
}

#voucher-details .main h3 {
    margin: 0;
}

/*Setting Page*/
.wpgiftv-row {
    display: flex;
    margin: 0 -15px;
    box-sizing: border-box;
}

.wpgiftv-row .wpgiftv-col75,
.wpgiftv-row .wpgiftv-col25 {
    padding: 0 15px;
}

.wpgiftv-row .wpgiftv-col75 {
    width: 75%;
}

.wpgiftv-row .wpgiftv-col25 {
    width: 25%;
    box-sizing: border-box;
}

.white-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 2px #ddd;
    border: 1px solid #ddd;
}

.white-box .form-table th {
    width: 40%;
}

.white-box h2 {
    margin-top: 0;
    font-size: 20px;
    line-height: 25px;
}

.white-box h4 {
    margin: 1.5em 0 0;
    font-size: 16px;
}

.white-box ul li a {
    text-decoration: none;
}

.star-ratings {
    text-align: center;
    color: #ffcd00;
}

.star-ratings .dashicons {
    font-size: 25px;
    width: 25px;
    height: 25px;
}

.wpgiftv-disclaimer {
    color: #888;
}

.voucher-page .total-unused {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.voucher-page .count,
.voucher-page .amount {
    font-size: 16px;
    display: block;
    text-align: center;
    width: 20%;
    margin-bottom: 20px;
}

.voucher-page .count span,
.voucher-page .amount span {
    font-size: 40px;
    color: #000;
    line-height: 1.3;
    font-weight: bold;
    display: block;
}

.voucher-page .total-unused form {
    display: flex;
    justify-content: flex-end;
    width: 60%;
}

#wpwrap .templates #id {
    width: 100px;
}

.wpgiftv-row .tab-content {
    display: none;
}

.wpgiftv-row .tab-content.tab-content-active {
    display: block;
}

.wpgv_wrap {
    text-align: left;
    font-size: 12px;
    margin-top: 5px;
}

.wpgv_flex {
    display: flex;
}

.wpgv_flex input[type="number"] {
    width: 80px;
}

.wpgv_info {
    width: 18px;
    height: 18px;
}

.wpgv_tooltip {
    width: auto;
    float: left;
    margin-left: 10px;
    font-size: 16px;
    position: relative;
}

.wpgv_tooltip a {
    color: #fff;
    text-decoration: underline;
}

.wpgv_tooltip .wpgv_tooltiptext {
    visibility: hidden;
    width: 200px;
    height: 100px;
    background-color: rgba(2, 2, 2, 0.81);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: unset;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 2px !important;
    top: -115px;
    left: -30px;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 1px;
}

.wpgv_tooltip .wpgv_tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgb(2, 2, 2, 0.81) transparent transparent transparent;
}

.wpgv_tooltip:hover .wpgv_tooltiptext {
    visibility: visible;
    opacity: 1;
}

.wpgv_tooltip:hover {
    visibility: visible;
    opacity: 1;
}

.wpgv_tooltip {
    opacity: 1;
}

.wpgv-template-box img {
    max-width: 225px;
    margin: 0 5px;
    border: 6px solid #fff;
    transition: border-radius 0.5s linear;
}

.wpgv-template-box input[type="radio"]:checked+img {
    border: 6px solid red;
    border-radius: 20px;
    transition: border-radius 0.5s linear;
}

.wpgv-template-box input[type="radio"] {
    display: none;
}

.wpgv-template-box label {
    float: left;
}

#edit-price,
#edit-note,
#edit-date {
    border: 0;
    background: unset;
    margin-left: 10px;
    cursor: pointer;
}

.voucher-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    /* Tăng giá trị z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.voucher-modal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.voucher-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.voucher-modal .close:hover {
    color: #000;
}

.voucher-modal .voucher-label {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.voucher-modal .form-group textarea,
.voucher-modal .form-group input {
    margin-bottom: 10px;
    width: 100%;
}