/* Theme Name: Tripgo Child Theme
Theme URI: https://themeforest.net/user/ovatheme/portfolio
Description: This is child theme of tripgo
Author: Ovatheme
Author URI: https://themeforest.net/user/ovatheme
Template: tripgo
Version: 1.0.0
Tags: two-columns, three-columns, left-sidebar, right-sidebar, custom-menu, editor-style, featured-images, flexible-header, full-width-template, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain:  tripgo-child
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

/* Smaller coupon styling with ellipsis for long text */
.coupon-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    margin: 15px 0;
}

.coupon-button {
    background-color: #95C11F;
    border: none;
    color: white;
    padding: 0;
    text-align: center;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    border-radius: 6px;
    display: block;
    width: 180px;
    height: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.coupon-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #A8D620;
}

/* Add the folded corner effect */
.coupon-button::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    opacity: 0.3;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Internal layout container */
.coupon-button span {
    display: block;
    text-align: center;
}

.coupon-main {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin: 12px 0 8px;
    padding: 0 5px;
    line-height: 1.2;
}

.coupon-code {
    font-size: 13px;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 6px;
    margin: 0 auto;
    border-radius: 4px;
    display: block;
    width: 85%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    box-sizing: border-box;
}

.coupon-discount {
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .coupon-list {
        justify-content: center;
    }
    
    .coupon-button {
        width: 160px;
        height: 90px;
    }
    
    .coupon-main {
        font-size: 12px;
        margin: 10px 0 6px;
    }
    
    .coupon-code {
        font-size: 11px;
        padding: 5px;
    }
    
    .coupon-discount {
        font-size: 12px;
        bottom: 8px;
    }
}

.checkout_coupon.woocommerce-form-coupon {
    width: 100%;
    margin-bottom: 20px;
}

.coupon-input-wrapper {
    display: flex;
    width: 100%;
}

.coupon-input-wrapper input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    font-family: "Montserrat", sans-serif;
}

.coupon-input-wrapper button {
    white-space: nowrap;
    padding: 10px 20px;
    font-family: "Montserrat", sans-serif;
    background-color: #95C11F;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.coupon-input-wrapper button:hover {
    background-color: #A8D620;
}

/* Applied Coupons Styling */
.applied-coupons-feedback {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9fcf6;
    border: 2px dashed #95C11F;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: #95C11F; }
    50% { border-color: #A8D620; }
    100% { border-color: #95C11F; }
}

.applied-coupons-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    position: relative;
    padding-left: 26px;
}

.applied-coupons-title:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    background-color: #95C11F;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.applied-coupon-box {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #ddd;
    transition: transform 0.2s ease;
}

.applied-coupon-box:hover {
    transform: translateX(5px);
}

.applied-coupon-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.applied-coupon-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.applied-coupon-code {
    font-weight: 700;
    color: #333;
    position: relative;
    padding-left: 22px;
}

.applied-coupon-code:before {
    content: "🏷️";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

.applied-coupon-discount {
    background: #95C11F;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.applied-coupon-amount {
    font-size: 0.9em;
    color: #666;
    margin-top: 6px;
    text-align: right;
    font-style: italic;
}

.applied-coupon-total {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #333;
}

.applied-coupon-total-amount {
    color: #95C11F;
    font-size: 1.1em;
}

/* Feedback Messages */
.coupon-message {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    position: relative;
    padding-left: 35px;
}

.coupon-success {
    background-color: #f1f8e9;
    border-left: 4px solid #95C11F;
    color: #558b2f;
}

.coupon-success:before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.coupon-error {
    background-color: #fce7e7;
    border-left: 4px solid #e57373;
    color: #d32f2f;
}

.coupon-error:before {
    content: "!";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

/* Button loading state */
#tripgo_apply_coupon:disabled {
    background-color: #d3d3d3;
    cursor: wait;
}
