/**
 * Webkul Software
 *
 * @category  Webkul
 * @package   Webkul_OneStepCheckout
 * @author    Webkul Software Private Limited
 * @copyright Webkul Software Private Limited (https://webkul.com)
 * @license   https://store.webkul.com/license.html
 */

 .opc-shipping-new-address-form .firstname,
 .opc-shipping-new-address-form .lastname,
 .opc-shipping-new-address-form .company,
 .opc-shipping-new-address-form .street,
 .opc-shipping-new-address-form .country,
 .opc-shipping-new-address-form .region,
 .opc-shipping-new-address-form .city,
 .opc-shipping-new-address-form .postcode,
 .opc-shipping-new-address-form .telephone,
 .opc-shipping-new-address-form .field {
    width: 100% !important;
    max-width: 330px;
  }
  .opc-address {
    width: 100% !important;
  }
  .step-title {
    padding-left: 10px !important;
    padding-top: 10px !important;
  }
  .colps-content, .opc-opc-block-summary {
    padding: 10px !important;
  }
  .description {
    font-size: large;
    font-weight: 400;
    font-style: normal;
    /* margin-left: 15px; */
    margin-bottom: 20px;
    color: rgb(37, 37, 37);
  }

  .dropdown {
    cursor: pointer;
    display: block;
    text-decoration: none;
    margin-bottom: 0;
    position: relative;
    padding: 5px;
  }

  .dropdown:after {
    content: '\e622';
    position: absolute;
    right: 0;
    top: 10px;
    font-family: 'luma-icons';
    font-size: 15px;
    padding-right: 10px;
    margin: 3px 0 0;
    vertical-align: middle;
    display: inline-block;
    font-weight: normal;
    overflow: hidden;
    speak: none;
    text-align: center;
  }

  .active > .dropdown:after {
    content: '\e621';
    position: absolute;
}

.opc-block-summary .items-in-cart > .title strong {
  font-weight: 400;
}

.opc-wrapper .shipping-address-item:before {
  background: none !important;
  width: 0px !important;
}

.opc-wrapper .step-title {
    border-bottom: 1px solid #cccccc;
    margin-bottom: 0px !important;
}

.checkout-index-index .opc-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Progress Steps */
.checkout-index-index .opc {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: checkout-step;
}
.checkout-index-index .page-wrapper .page-title-wrapper .page-title{
    text-transform: capitalize;
    font-weight: 600;
    font-size: 31px;
}
.checkout-index-index .opc > li {
    position: relative;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-left: 4px solid #1d83c5;
}

.checkout-index-index .opc > li::before {
    counter-increment: checkout-step;
    content: counter(checkout-step);
    position: absolute;
    left: -15px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #1d83c5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Step Titles */
.checkout-index-index .step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

/* Shipping Address Section */
.checkout-index-index .checkout-shipping-address .shipping-address-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.checkout-index-index .shipping-address-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkout-index-index .shipping-address-item.selected-item {
    border-color: #1d83c5;
    background-color: #f8f9fe;
    box-shadow: 0 0 0 1px #1d83c5;
    width: 100%;
}

.checkout-index-index .shipping-address-item:hover:not(.selected-item) {
    border-color: #a5b4fc;
}

.checkout-index-index .action.edit-address-link {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    color: #4a4a4a;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-index-index .action.edit-address-link:hover {
    background: #e0e0e0;
}

/* New Address Button */
.checkout-index-index .action.action-show-popup {
    background: #1d83c5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-index-index .action.action-show-popup:hover {
    background: #3a0ca3;
    transform: translateY(-2px);
}

/* Form Styles */
.checkout-index-index .form-shipping-address .fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.checkout-index-index .form-shipping-address .field {
    margin-bottom: 1.5rem;
}

.checkout-index-index .form-shipping-address .label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.checkout-index-index .form-shipping-address .input-text,
.checkout-index-index .form-shipping-address .select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-index-index .form-shipping-address .input-text:focus,
.checkout-index-index .form-shipping-address .select:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.checkout-index-index .field._required .label::after {
    content: '*';
    color: #e63946;
    margin-left: 3px;
}

/* Shipping Methods */
.checkout-index-index .table-checkout-shipping-method {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.checkout-index-index .table-checkout-shipping-method th {
    text-align: left;
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.checkout-index-index .table-checkout-shipping-method td {
    font-weight: 600;
    font-size: 17px;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.checkout-index-index .table-checkout-shipping-method tr:hover {
    background: #f8f9fe;
}

.checkout-index-index .table-checkout-shipping-method .radio {
    margin-right: 0.5rem;
}

/* Payment Methods */
.checkout-index-index .payment-option {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.checkout-index-index .payment-option-title {
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
}

.checkout-index-index .payment-option-title .action-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-index-index .payment-option-content {
    padding: 1.5rem;
    background: white;
}

/* Buttons */
.checkout-index-index .action.continue.primary {
    background: #1d83c5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-index-index .action.continue.primary:hover {
    background: #3a0ca3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
}

/* Discount Code */
.checkout-index-index .form-discount .control {
    display: flex;
    gap: 0.5rem;
}

.checkout-index-index .form-discount .input-text {
    flex-grow: 1;
}

.checkout-index-index .action.action-apply {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.checkout-index-index .action.action-apply:hover {
    background: #27ae60;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .checkout-index-index .opc > li {
        padding: 1.5rem;
    }

    .checkout-index-index .form-shipping-address .fieldset {
        grid-template-columns: 1fr;
    }

    .checkout-index-index .shipping-address-items {
        grid-template-columns: 1fr;
    }

    .checkout-index-index .table-checkout-shipping-method {
        display: block;
        overflow-x: auto;
    }
}

/* Tooltips */
.checkout-index-index .field-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.checkout-index-index .field-tooltip-action {
    color: #4361ee;
    cursor: pointer;
}

.checkout-index-index .field-tooltip-content {
    display: none;
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 200px;
}

.checkout-index-index .field-tooltip:hover .field-tooltip-content {
    display: block;
}

.checkout-index-index .opc-block-summary {
    /* background: #ffffff; */
    /* border: 1px solid #e1e1e1; */
    /* border-radius: 4px; */
    /* padding: 20px; */
    /* margin-bottom: 20px; */
    position: relative;
    margin-bottom: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-left: 4px solid #1d83c5;

}
.checkout-index-index  .opc-estimated-wrapper{
    border-bottom: 1px solid #cccccc;
    margin: 0 0 15px;
    padding: 18px 15px;
    position: relative;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-left: 4px solid #1d83c5;
}

.checkout-index-index .opc-block-summary .title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.checkout-index-index .block.items-in-cart {
    margin-bottom: 20px;
}

.checkout-index-index .block.items-in-cart .title {
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 15px;
}

.checkout-index-index .block.items-in-cart .title strong {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.checkout-index-index .minicart-items-wrapper {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.checkout-index-index .minicart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-index-index .product-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-index-index .product-item:last-child {
    border-bottom: none;
}

.checkout-index-index .product-image-container {
    display: inline-block;
    margin-right: 15px;
}

.checkout-index-index .product-image-wrapper {
    display: block;
    border: 1px solid #e1e1e1;
    padding: 5px;
    background: #fff;
}

.checkout-index-index .product-image-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.checkout-index-index .product-item-details {
    flex-grow: 1;
}

.checkout-index-index .product-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.checkout-index-index .details-qty {
    font-size: 13px;
    color: #666;
}

.checkout-index-index .details-qty .label {
    margin-right: 5px;
}

.checkout-index-index .subtotal {
    text-align: right;
    margin-top: 5px;
}

.checkout-index-index .cart-price .price {
    font-weight: 600;
    color: #333;
}

.checkout-index-index .opc-sidebar .modal-header{
    border: 0;
}
.checkout-index-index  .opc-block-shipping-information {
    padding: 0 0;
    background: transparent;
}

.checkout-index-index .opc-sidebar{
    margin: 20px 0 0 !important;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-index-index .opc-block-summary {
        padding: 15px;
    }

    .checkout-index-index .product-item {
        flex-direction: column;
    }

    .checkout-index-index .product-image-container {
        margin-bottom: 10px;
    }
}
