/**
 * Shippo Form CSS
 */

/* Container */
.wc-shippo-form-container {
    margin: 20px 0;
    font-family: inherit;
    line-height: 1.5;
    color: #333;
}

.wc-shippo-form-container * {
    box-sizing: border-box;
}

/* Loading state */
.wc-shippo-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Row and column layout */
.wc-shippo-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.wc-shippo-form-col-left {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 10px;
}

.wc-shippo-form-col-right {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 10px;
}

/* Form fields */
.wc-shippo-form-field {
    padding: 0 10px;
    margin-bottom: 15px;
    width: 100%;
}

.wc-shippo-form-field-half {
    width: 50%;
}

.wc-shippo-form-field-third {
    width: 33.333333%;
}


/* Form steps */
.wc-shippo-form-steps {
    border-radius: 18px;
    padding-right: 3%;
}

.wc-shippo-form-step {
    display: none;
}

.wc-shippo-form-step.active {
    display: block;
}

.wc-shippo-form-step h3 {
    margin-top: 0;
    margin-bottom: 30px!important;
    font-weight: 600;
    color: #333;
}

/* Form actions */
.wc-shippo-form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.wc-shippo-btn {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wc-shippo-btn:hover {
    background-color: #3c00a0;
}

.wc-shippo-btn-back {
    background-color: #f5f5f5;
    color: #333;
	font-size: 14px;
	width:100px;
	height: 50px;
}

.wc-shippo-btn-back:hover {
    background-color: #e5e5e5;
}

/* Stepper summary */
.wc-shippo-stepper-summary {
    background-color: #F6F6F6;
    border-radius: 18px;
    padding: 36px;
    position: sticky;
    top: 30px;
}

.wc-shippo-stepper-summary h3 {
    margin-top: 0;
    margin-bottom: 30px!important;
    font-weight: 600;
    color: #333;
}

.wc-shippo-stepper-steps {
    position: relative;
}

.wc-shippo-stepper-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: #ddd;
}

.wc-shippo-stepper-step {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.wc-shippo-stepper-step-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wc-shippo-stepper-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1;
}

.wc-shippo-stepper-step.active .wc-shippo-stepper-step-number {
    background-color: rgb(252, 185, 0);
    color: #000;
}

.wc-shippo-stepper-step.complete .wc-shippo-stepper-step-number {
    background-color: #000;
    color: #fff;
}

.wc-shippo-stepper-step-title {
    font-weight: 600;
    color: #333;
    margin-left: 5px;
}

.wc-shippo-stepper-step.active .wc-shippo-stepper-step-title,
.wc-shippo-stepper-step.complete .wc-shippo-stepper-step-title {
    color: #000;
}

.wc-shippo-stepper-step-content {
    margin: 5px 0 5px 5px;
    font-size: 13px;
    color: #666;
}

/* Rates */
.wc-shippo-rates-sorting {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.wc-shippo-rates-sorting label {
    margin-right: 10px;
    font-weight: 600;
}

.wc-shippo-rates-sort-buttons {
    display: flex;
}

.wc-shippo-sort-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 5px;
}

.wc-shippo-sort-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.wc-shippo-rates-loading,
.wc-shippo-rates-error {
    padding: 15px;
    text-align: center;
    color: #666;
}

.wc-shippo-rates-error {
    background-color: #fdeded;
    border-radius: 4px;
    color: #e2401c;
}

.wc-shippo-rates-list {
    margin-bottom: 20px;
}

.wc-shippo-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px 15px 25px;
	background-color: #f6f6f6;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
	border: 1px solid #f6f6f6;
}

.wc-shippo-rate-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border: 1px solid #000;
}

.wc-shippo-rate-info {
    flex: 1;
}

.wc-shippo-rate-carrier {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.wc-shippo-rate-service {
    color: #666;
}

.wc-shippo-rate-delivery {
    font-size: 13px;
    color: #24bd4f;
    margin-top: 2px;
}

.wc-shippo-rate-price {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-top: 5px;
}

.wc-shippo-rate-discount {
    margin-top: 5px;
}

.wc-shippo-discount-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #e3f2fd;
    color: #0288d1;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.wc-shippo-rate-action {
    margin-left: 15px;
}

.wc-shippo-btn-select {
    min-width: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-shippo-form-col-left,
    .wc-shippo-form-col-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .wc-shippo-form-col-right {
        margin-top: 20px;
    }
    
    .wc-shippo-stepper-summary {
        position: static;
    }
    
    .wc-shippo-form-field-half,
    .wc-shippo-form-field-third {
        width: 100%;
    }
    
    .wc-shippo-rate-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wc-shippo-rate-action {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .wc-shippo-btn-select {
        width: 100%;
    }
}
