/* Color vars */
:root {
    --sw_primary: #A969FF;
    --sw_black_1: #263238;
    --sw_black_2: #37474F;
    --sw_grey_1: #607D8B;
    --sw_grey_2: #78909C;
    --sw_grey_3: #90A4AE;
}

/* Global */
.sw-share-product {
    cursor: pointer;
}

.sw-button-primary {
    display: inline-block;
    background-color: var(--sw_primary) !important;
    color: #fff !important;
    min-height: 51px;
    padding: 12px 24px 12px 24px;
    border-style: none !important;
    border-radius: 100px 100px 100px 100px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 27px !important;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s;
}

.sw-button-full-width {
    width: 100%;
}

/* Header */
.sw-header-icon {
    cursor: pointer;
}

/* General Styles for Review Section */
.woocommerce #reviews #comments ol.commentlist {
    padding: 0;
}

.woocommerce #reviews #comments ol.commentlist .sw-review-item {
    list-style: none;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sw_grey_1);
}

.sw-comment-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Row 1: Header */
.sw-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sw-review-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sw-review-avatar {
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    width: 141px;
    height: 127px;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    position: static;
    float: none;
    border-radius: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.sw-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-review-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sw-review-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--sw_black_1);
}

.sw-review-rating {
    display: flex;
    align-items: center;
}

.sw-review-location {
    font-size: 14px;
    color: var(--sw_grey_2);
}

.sw-review-time {
    font-size: 14px;
    color: var(--sw_black_2);
}

/* Row 2: Review Text */
.sw-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sw_grey_1);
}

/* Row 3: Footer */
.sw-review-footer {
    text-align: left;
}

#reviews .sw-review-reply {
    font-size: 14px;
    color: var(--sw_grey_1);
    text-decoration: none;
}

.sw-review-reply:hover {
    text-decoration: underline;
}

.sw-review-name-loc-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}


/* review form */
/* Wrapper styles for rows */
.sw-review-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Two-column layout for name, email, and review fields */
.sw-review-form-column {
    flex: 1;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Full-width text area */
.sw-review-form-column textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Name and email input fields */
.sw-review-form-column input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Checkbox styles */
.sw-review-form-row label {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Submit button styles */
.sw-submit-button {
    background: #6c63ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.sw-submit-button:hover {
    background: #5548c9;
}


/* WC mini cart */
.sw-mini-cart .woocommerce-mini-cart {
    padding: 10px 0;
    font-family: inherit;
    font-weight: 400;
    border-top: 1px solid var(--sw_grey_2);
    border-bottom: 1px solid var(--sw_grey_2);
}

.sw-mini-cart .sw-mini-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: none;
}

.sw-mini-cart .sw-mini-cart-column {
    flex: 1;
}

.sw-mini-cart .woocommerce-mini-cart-item-thumbnail {
    flex: 0 0 71px;
    /* Fixed width for thumbnail */
    height: 71px;
    /* margin-right: 10px; */
    border-radius: 10px;
    overflow: hidden;
}
.sw-mini-cart .woocommerce-mini-cart-item-thumbnail img{
    width: 100% !important;
}

.sw-mini-cart .woocommerce-mini-cart-item-details {
    display: flex;
    flex-direction: column;
    flex: 2;
    /* Take more space for name and price */
}

.sw-mini-cart .woocommerce-mini-cart-item-details a {
    color: var(--sw_black_1);
}

.sw-mini-cart .woocommerce-mini-cart-item-price {
    font-weight: 500;
}

.sw-mini-cart .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 32px;
}

.sw-mini-cart .woocommerce-mini-cart__total * {
    font-size: 22px;
    font-weight: 400;
    line-height: 33px;
}

.sw-mini-cart .woocommerce-mini-cart__buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sw-mini-cart .woocommerce-mini-cart__buttons .button {
    color: #fff;
    background: var(--sw_primary);
    padding: 12px 24px;
    border-radius: 100px;
    flex: 0 0 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}

.sw-mini-cart .woocommerce-mini-cart-item-remove {
    flex: 0 0 30px;
    /* Fixed width for the remove icon */
    text-align: center;
}

.sw-remove-icon {
    color: red;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}

.sw-remove-icon:hover {
    color: darkred;
}


/* WC checkout */
.checkout-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkout-column {
    flex: 1;
    min-width: 300px;
}

.first-column {
    max-width: 65%;
    /* Adjust as per your design */
}

.second-column {
    max-width: 35%;
    /* Adjust as per your design */
}

.woocommerce-checkout h3 {
    font-family: inherit;
    font-size: 32px;
    font-weight: 500;
    line-height: 44.8px;
    text-align: left;
    color: var(--sw_black_1);
}

#apply_custom_coupon {
    background-color: var(--sw_primary);
    color: #fff;
    transition: all 0.3s;
    width: 100%;
    min-height: 51px;
    padding: 12px 24px 12px 24px;
    margin: 16px 0px 20px 0px;
    border-style: none;
    border-radius: 100px 100px 100px 100px;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
    width: 48.8%;
    overflow: visible;
}

.woocommerce form .form-row label {
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    text-align: left;
    margin: 10px 0;
    color: var(--sw_black_2);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce input[type="text"],
.woocommerce input[type="password"],
.woocommerce input[type="email"],
.woocommerce textarea,
.woocommerce-input-wrapper select {
    color: var(--sw_black_2);
    border: 1px solid var(--sw_grey_2) !important;
    border-radius: 10px !important;
    background: #FBFAFE !important;
    padding: 12px 24px !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 21px;
    text-align: left;
}

.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder,
.woocommerce input[type="text"]::placeholder,
.woocommerce input[type="password"]::placeholder,
.woocommerce input[type="email"]::placeholder {
    color: var(--sw_grey_3);
}

.woocommerce table.shop_table {
    border: 1px solid var(--sw_grey_2);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
}

.woocommerce .woocommerce-checkout-review-order-table th,
.woocommerce .woocommerce-checkout-review-order-table td {
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid var(--sw_grey_2) !important;
    background-color: #FAFAFE;
}

.woocommerce .woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce .woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: none !important;
}

.woocommerce .woocommerce-checkout-review-order-table th:first-child,
.woocommerce .woocommerce-checkout-review-order-table td:first-child {
    border-right: 1px solid var(--sw_grey_2) !important;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    border: 1px solid var(--sw_grey_2);
    border-radius: 20px;
    background-color: #FDFBFF;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    float: none;
    background-color: #fff;
    color: var(--sw_primary);
    transition: all 0.3s;
    min-height: 51px;
    width: 100%;
    padding: 12px 24px 12px 24px;
    border: 1px solid var(--sw_primary);
    border-radius: 100px 100px 100px 100px;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    margin-bottom: 18px;
}



/* checkout author card */
/* Main Card */
.sw-checkout-author-card {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--sw_grey_2);
    border-radius: 20px;
    background-color: #FDFBFF;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Row 1 */
.sw-card-row-1 {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.sw-card-image-container {
    flex: 0 0 auto;
    margin-right: 15px;
}

.sw-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.sw-card-text-container {
    flex: 1 1 auto;
}

.sw-card-name {
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 23.4px;
    text-align: left;
    color: var(--sw_black_1);
}

.sw-card-title {
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    text-align: left;
    color: var(--sw_black_1);
}

/* Row 2 */
.sw-card-row-2 {
    margin-bottom: 30px;
}

.sw-card-description {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
    text-align: justify;
    color: var(--sw_grey_1);
}

.sw-card-description p {
    margin: 0;
}

/* Row 3 */
.sw-card-row-3 {
    text-align: center;
}

.sw-checkout-author-card a.sw-card-cta {
    display: inline-block;
    background-color: var(--sw_primary);
    color: #fff !important;
    text-decoration: none;
    min-height: 51px;
    padding: 12px 24px 12px 24px;
    margin: 0;
    border-style: none;
    border-radius: 100px 100px 100px 100px;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    transition: all 0.3s;
}

.sw-card-cta:hover {
    background-color: #005f85;
}


/* Responsive layout for mobile and tablet */
@media (max-width: 1024px) {

    /* checkout */
    .checkout-layout {
        flex-direction: column;
        /* Stack columns vertically */
    }

    .checkout-column {
        max-width: 100%;
        flex: none;
        /* Disable flex shrinking for full width */
    }

    .first-column,
    .second-column {
        max-width: 100%;
        /* Ensure columns take full width */
    }
    
    .woocommerce-checkout h3 {
        font-size: 24px;
        line-height: 32px;
    }

    #apply_custom_coupon {
        font-size: 16px;
        line-height: 24px;
    }

    .woocommerce form .form-row label {
        font-size: 16px;
        line-height: 22px;
    }

    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row textarea,
    .woocommerce input[type="text"],
    .woocommerce input[type="password"],
    .woocommerce input[type="email"],
    .woocommerce textarea,
    .woocommerce-input-wrapper select {
        font-size: 14px;
        line-height: 20px;
    }
}


/* WhatsApp Button - Full width, styled like Place Order */
.sw-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Full width like Place Order */
  background-color: #9b5ef9; /* তোমার বর্তমান Place Order বাটনের রঙ */
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Icon (official green) */
.sw-whatsapp-btn i {
  color: #25D366; /* official WhatsApp green */
  font-size: 18px;
}

/* Hover effect like Place Order */
.sw-whatsapp-btn:hover {
  background-color: #8c4de3; /* slightly darker purple on hover */
  transform: translateY(-2px);
}

/* Responsive alignment */
.sw-card-row-3 {
  text-align: center;
}