/* Basic styling for the Coupon Affilate Checker plugin */
#wcoq-container {
    max-width: 100%;
    margin: 0 auto;
    color:#333
}

#wcoq-form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#wcoq_coupon_code {
    width: calc(100% - 100px);
    padding: 8px;
    box-sizing: border-box;
    border-radius: 0 10px 10px 0;
    padding-right: 16px;
}

#wcoq_submit {
    padding: 8px 15px;
    cursor: pointer;
    position: relative;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 10px 0 0 10px;
    width: 100px;
}

#wcoq_search_icon {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: 0;
}

.wcoq-coupon-loader {
    width: 24px;
    height: 24px;
    border: 3px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
}

.wcoq-coupon-loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid;
    border-color: white transparent;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Coupon details table */
#wcoq-results h3{
    margin-bottom:12px;
}
.wcoq-coupon-info {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.wcoq-coupon-info th,
.wcoq-coupon-info td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.wcoq-coupon-info th {
    background-color: var(--color-primary, #0073aa);
    color: #fff;
    font-size: 1.1em;
}

/* Responsive styling for coupon details table */
@media screen and (max-width: 600px) {
    .wcoq-coupon-info thead {
        display: none;
    }
    .wcoq-coupon-info,
    .wcoq-coupon-info tbody,
    .wcoq-coupon-info tr,
    .wcoq-coupon-info td {
        display: block;
        width: 100%;
    }
    .wcoq-coupon-info tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }
    .wcoq-coupon-info td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .wcoq-coupon-info td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

/* Orders styling */
#wcoq-orders h3{
    margin-bottom:12px;
}
.wcoq-order {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.wcoq-order h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.wcoq-order p {
    margin: 0 0 10px;
}

.wcoq-order-items {
    list-style: none;
    padding: 0px;
    margin: 0;
    margin-top:10px;
}
