/* ShippingGuard Admin Styles */

.shippingguard-admin-container {
    padding: 20px;
}

/* Fix double arrow in Chakra Select within WP Admin */
.chakra-select__wrapper select {
    appearance: none !important;
    background-image: none !important;
}

.shippingguard-premium-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0 0 0;
}

.sg-icon-container {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 12px;
}

.sg-icon-container img, 
.sg-icon-container svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.sg-content {
    flex: 1;
    min-width: 0;
}

.sg-title {
    font-weight: 700;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.2;
    margin-bottom: 2px;
}

.sg-price {
    font-weight: 800;
    font-size: 17px;
    color: #2f855a;
    margin-bottom: 1px;
}

.sg-subtext {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
    font-weight: 500;
}

.sg-action {
    margin-left: 8px;
}

.sg-powered {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sg-powered a {
    color: #48bb78;
    text-decoration: none;
    font-weight: 700;
}

/* Toggle Switch Styles */
.sg-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
    flex-shrink: 0;
}

.sg-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.sg-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
    z-index: 1;
}

.sg-slider:hover {
    background-color: #cbd5e0;
}

.sg-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

input:checked + .sg-slider {
    background-color: #48bb78 !important;
}

input:checked + .sg-slider:before {
    transform: translateX(24px);
}

/* Cart Table Specific Styles */
.shippingguard-protection-row .shippingguard-premium-card {
    padding: 0px;
    margin-bottom: 0;
    box-shadow: none;
    border-color: #edf2f7;
    background: #fdfdfd;
}

.shippingguard-protection-row .sg-icon-container {
    width: 40px;
    height: 40px;
}

.shippingguard-protection-row .sg-icon-container img,
.shippingguard-protection-row .sg-icon-container svg {
    width: 24px;
    height: 24px;
}

.shippingguard-protection-row .sg-title {
    font-size: 14px;
}

.shippingguard-protection-row .sg-price {
    font-size: 15px;
}
