diff --git a/css/dc_ajax_add_cart.css b/css/dc_ajax_add_cart.css
index 079296f..d95ad1e 100644
--- a/css/dc_ajax_add_cart.css
+++ b/css/dc_ajax_add_cart.css
@@ -1,38 +1,35 @@
 .add-to-cart-overlay {
-  background: transparent url(../images/overlay.png) repeat top left;
-  bottom: 0px;
-  left: 0px;
   position: fixed;
-  right: 0px;
-  top: 0px;
   z-index: 100;
+  top: 0;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  background-image: url(../images/overlay.png);
 }
 
 .add-cart-message-wrapper {
-  background-color: #fff;
-  border: 2px solid #ccc;
-  color: #7f7f7f;
-  -khtml-border-radius: 20px;
-  left: 30%;
-  padding: 20px;
   position: fixed;
-  -moz-box-shadow: 0 1px 5px #333;
-  -moz-border-radius: 20px;
-  right: 30%;
-  top: 100px;
-  -webkit-box-shadow: 0 1px 5px #333;
-  -webkit-border-radius: 20px;
   z-index: 101;
+  top: 100px;
+  right: 30%;
+  left: 30%;
+  padding: 20px;
+  color: #7f7f7f;
+  border: 2px solid #ccc;
+  border-radius: 20px;
+  background-color: #fff;
+  box-shadow: 0 1px 5px #333;
 }
 
-a.add-to-cart-close {
-  background: transparent url(../images/cancel.png) repeat top left;
-  cursor: pointer;
+.add-to-cart-close {
   float: right;
+  width: 26px;
   height: 26px;
-  margin-right: -30px;
   margin-top: -30px;
-  width: 26px;
+  margin-right: -30px;
+  cursor: pointer;
+  background: url(../images/cancel.png) no-repeat;
 }
 
 .shopping-cart-header th {
@@ -45,28 +42,25 @@ a.add-to-cart-close {
 }
 
 .option-button {
-  cursor: pointer;
   margin-bottom: 20px;
   padding: 5px 10px;
+  cursor: pointer;
   text-align: center;
 }
 
 .option-button.checkout {
-  background: none repeat scroll 0 0 #bbdcff;
+  background-color: #bbdcff;
 }
 
 .option-button.continue {
-  background: none repeat scroll 0 0 #969696;
-}
-
-.option-button.checkout a {
-  color: #626262;
+  background-color: #969696;
   font-weight: bold;
+  color: #fff;
 }
 
-.option-button.continue span {
-  color: #ffffff;
+.option-button.checkout a {
   font-weight: bold;
+  color: #626262;
 }
 
 .new-item-details {
@@ -79,7 +73,7 @@ a.add-to-cart-close {
 }
 
 .new-item-details p {
-  display: inline;
+  display: inline-block;
   margin-bottom: 0;
 }
 
@@ -107,7 +101,7 @@ a.add-to-cart-close {
 }
 
 .ajax-shopping-cart-shipping {
-  clear: both;
   float: left;
+  clear: both;
   margin-bottom: 10px;
 }
diff --git a/js/dc_ajax_add_cart.js b/js/dc_ajax_add_cart.js
index a2b7919..eaf2566 100644
--- a/js/dc_ajax_add_cart.js
+++ b/js/dc_ajax_add_cart.js
@@ -1,7 +1,7 @@
 (function ($, Drupal, window, document, undefined) {
   Drupal.behaviors.dcAjaxAddCart = {
     attach: function (context, settings) {
-      $('body').delegate('.add-to-cart-close', 'click', function() {
+      $('body').delegate('[data-dismiss="add-cart-message"]', 'click', function() {
         $('#add-to-cart-overlay').fadeOut('fast');
         $('.add-cart-message-wrapper').css('display', 'none');
       });
diff --git a/templates/dc-ajax-add-to-cart-message.tpl.php b/templates/dc-ajax-add-to-cart-message.tpl.php
index ad95a7b..e549bbd 100644
--- a/templates/dc-ajax-add-to-cart-message.tpl.php
+++ b/templates/dc-ajax-add-to-cart-message.tpl.php
@@ -46,7 +46,7 @@
 <div class="add-to-cart-overlay" id="add-to-cart-overlay"></div>
 <div class="add-cart-message-wrapper">
   <!-- Close button. -->
-  <a class="add-to-cart-close">
+  <a class="add-to-cart-close" data-dismiss="add-cart-message">
     <span class="element-invisible">
       <?php print t('Close'); ?>
     </span>
@@ -60,10 +60,8 @@
       <?php print $checkout_link; ?>
     </div>
     <!-- Continue shopping. -->
-    <div class="option-button continue">
-      <span class="add-to-cart-close">
-        <?php print $configuration['popup_continue_shopping']; ?>
-      </span>
+    <div class="option-button continue" data-dismiss="add-cart-message">
+      <?php print $configuration['popup_continue_shopping']; ?>
     </div>
   </div>
   <div class="new-item-details">
